Skip to content

Commit

Permalink
Use app_key
Browse files Browse the repository at this point in the history
  • Loading branch information
J4bbi authored and cc-a committed Oct 3, 2024
1 parent 537d19a commit f2d0e11
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions site/ic_data_repo/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,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",
Expand All @@ -177,6 +176,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
Expand Down

0 comments on commit f2d0e11

Please sign in to comment.