Skip to content

Commit 3e54d82

Browse files
authored
Merge pull request #70 from ImperialCollegeLondon/feature/oauth
Use app_key
2 parents 537d19a + f2d0e11 commit 3e54d82

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

site/ic_data_repo/config/settings.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,7 @@
167167
access_token_url="https://login.microsoftonline.com/2b897507-ee8c-4575-830b-4f8267c3d307/oauth2/v2.0/token", # noqa: E501
168168
access_token_method="POST",
169169
authorize_url="https://login.microsoftonline.com/2b897507-ee8c-4575-830b-4f8267c3d307/oauth2/v2.0/authorize", # noqa: E501
170-
consumer_key=ICL_OAUTH_CLIENT_ID,
171-
consumer_secret=ICL_OAUTH_CLIENT_SECRET,
170+
app_key="ICL_APP_CREDENTIALS",
172171
),
173172
authorized_handler="invenio_oauthclient.handlers:authorized_signup_handler",
174173
disconnect_handler="invenio_oauthclient.handlers:disconnect_handler",
@@ -177,6 +176,10 @@
177176
),
178177
signup_options=dict(auto_confirm=True, send_register_msg=False),
179178
)
179+
ICL_APP_CREDENTIALS = {
180+
"consumer_key": ICL_OAUTH_CLIENT_ID,
181+
"consumer_secret": ICL_OAUTH_CLIENT_SECRET,
182+
}
180183

181184
ACCOUNTS_LOGIN_VIEW_FUNCTION = (
182185
auto_redirect_login # autoredirect to external login if enabled

0 commit comments

Comments
 (0)