From 59362ffff7f7fb95ae204385761736e5014634f7 Mon Sep 17 00:00:00 2001 From: Max Patiiuk Date: Fri, 30 Sep 2022 10:38:01 -0500 Subject: [PATCH] Make deployments have OpenID Connect Fixes #81 --- app/lib/dockerCompose.ts | 1 + config/local_specify_settings.py | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 config/local_specify_settings.py diff --git a/app/lib/dockerCompose.ts b/app/lib/dockerCompose.ts index d96be7d..f42cd08 100644 --- a/app/lib/dockerCompose.ts +++ b/app/lib/dockerCompose.ts @@ -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} diff --git a/config/local_specify_settings.py b/config/local_specify_settings.py new file mode 100644 index 0000000..ac6d555 --- /dev/null +++ b/config/local_specify_settings.py @@ -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", + }, +}