Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

Normalize course label for lti 13 #198

Merged
merged 2 commits into from
Jul 10, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/illumidesk/authenticators/authenticator.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,9 @@ async def authenticate( # noqa: C901
self.log.debug('Decoded JWT is %s' % jwt_decoded)

if validator.validate_launch_request(jwt_decoded):
course_id = jwt_decoded['https://purl.imsglobal.org/spec/lti/claim/context']['label']
course_id = lti_utils.normalize_name_for_containers(
jwt_decoded['https://purl.imsglobal.org/spec/lti/claim/context']['label']
)
self.log.debug('Normalized course label is %s' % course_id)
username = ''
if 'email' in jwt_decoded.keys() and jwt_decoded.get('email'):
Expand Down