Copy OIDC settings to app.config on init
So we avoid locking the settings file at runtime.
This commit is contained in:
parent
0dc2563b31
commit
02059e5043
2 changed files with 14 additions and 15 deletions
|
@ -17,7 +17,8 @@ def create_app(test_config=None):
|
|||
'ldap_pass': '',
|
||||
'ldap_base_dn': '',
|
||||
'user_group': '',
|
||||
'oidc_tenant': '',
|
||||
'oidc_url_discovery': '',
|
||||
'oidc_url_logout': '',
|
||||
'oidc_client_id': '',
|
||||
'oidc_client_secret': '',
|
||||
'admin_group': '',
|
||||
|
@ -35,6 +36,10 @@ def create_app(test_config=None):
|
|||
db.write('settings', settings)
|
||||
|
||||
app.config['SECRET_KEY'] = settings.get('secret_key', '')
|
||||
app.config['OIDC_URL_DISCOVERY'] = settings.get('oidc_url_discovery', '')
|
||||
app.config['OIDC_URL_LOGOUT'] = settings.get('oidc_url_logout', '')
|
||||
app.config['OIDC_CLIENT_ID'] = settings.get('oidc_client_id', '')
|
||||
app.config['OIDC_CLIENT_SECRET'] = settings.get('oidc_client_secret', '')
|
||||
|
||||
from . import auth
|
||||
auth.init_app(app)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue