Skip to content

Commit

Permalink
Allow setting the LDAP configuration values using environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
mprahl committed Sep 16, 2019
1 parent 833183f commit 443d603
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion estuary/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ def load_config(app):
app.config['EMPLOYEE_TYPES'] = os.environ['EMPLOYEE_TYPES'].split(',')

for env_name in (
'NEO4J_URI', 'OIDC_CLIENT_ID', 'OIDC_CLIENT_SECRET', 'OIDC_INTROSPECT_URL', 'SECRET_KEY',
'LDAP_CA_CERTIFICATE', 'LDAP_GROUP_MEMBERSHIP_ATTRIBUTE', 'LDAP_URI',
'LDAP_EXCEPTIONS_GROUP_DN', 'NEO4J_URI', 'OIDC_CLIENT_ID', 'OIDC_CLIENT_SECRET',
'OIDC_INTROSPECT_URL', 'SECRET_KEY',
):
if os.environ.get(env_name):
app.config[env_name] = os.environ[env_name]
Expand Down

0 comments on commit 443d603

Please sign in to comment.