diff --git a/site/ic_data_repo/config/settings.py b/site/ic_data_repo/config/settings.py index 70265ae..0cc0e45 100644 --- a/site/ic_data_repo/config/settings.py +++ b/site/ic_data_repo/config/settings.py @@ -166,8 +166,7 @@ access_token_url="https://login.microsoftonline.com/2b897507-ee8c-4575-830b-4f8267c3d307/oauth2/v2.0/token", # noqa: E501 access_token_method="POST", authorize_url="https://login.microsoftonline.com/2b897507-ee8c-4575-830b-4f8267c3d307/oauth2/v2.0/authorize", # noqa: E501 - consumer_key=ICL_OAUTH_CLIENT_ID, - consumer_secret=ICL_OAUTH_CLIENT_SECRET, + app_key="ICL_APP_CREDENTIALS", ), authorized_handler="invenio_oauthclient.handlers:authorized_signup_handler", disconnect_handler="invenio_oauthclient.handlers:disconnect_handler", @@ -176,6 +175,10 @@ ), signup_options=dict(auto_confirm=True, send_register_msg=False), ) + ICL_APP_CREDENTIALS = { + "consumer_key": ICL_OAUTH_CLIENT_ID, + "consumer_secret": ICL_OAUTH_CLIENT_SECRET, + } ACCOUNTS_LOGIN_VIEW_FUNCTION = ( auto_redirect_login # autoredirect to external login if enabled