Skip to content

Commit

Permalink
Make deployments have OpenID Connect
Browse files Browse the repository at this point in the history
Fixes #81
  • Loading branch information
maxpatiiuk committed Sep 30, 2022
1 parent 620b5a2 commit 59362ff
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/lib/dockerCompose.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ ${deployments
volumes:
- "specify${deployment.schemaVersion}:/opt/Specify:ro"
- "${deployment.hostname}-static-files:/volumes/static-files"
- "./config/local_specify_settings.py:/opt/specify7/settings/local_specify_settings.py:ro"
environment:
- DATABASE_NAME=${deployment.database}
- DATABASE_HOST=${process.env.MYSQL_HOST}
Expand Down
10 changes: 10 additions & 0 deletions config/local_specify_settings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
OAUTH_LOGIN_PROVIDERS = {
# A working Phantauth config for test purposes only.
'phantauth': {
'title': "Phantauth",
'config': "https://phantauth.net",
'scope': "openid profile email",
'client_id': "latlux~mqs8zoig_5e",
'client_secret': "82yHd4XA",
},
}

0 comments on commit 59362ff

Please sign in to comment.