Skip to content
Snippets Groups Projects
Unverified Commit 6f44841d authored by Thomas Tracy's avatar Thomas Tracy Committed by GitHub
Browse files

[feat] Add user_id scope to credentialsApiClient (#28737)

Now that we're actively using the LMS_USER_ID inside credentials to
identify users, we need to make sure that users created by
notify_credentials are including it in the jwt scopes when authenticated
with credentials.
parent b1b75094
Branches
Tags release-2020-03-20-08.43
No related merge requests found
......@@ -34,7 +34,8 @@ def get_credentials_api_client(user, org=None):
org (str): Optional organization to look up the site config for, rather than the current request
"""
jwt = create_jwt_for_user(user)
scopes = ['email', 'profile', 'user_id']
jwt = create_jwt_for_user(user, scopes=scopes)
if org is None:
url = CredentialsApiConfig.current().internal_api_url # by current request
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment