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

Commit

Permalink
fix: Normalize course label for lti 13 (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgwerner authored Jul 10, 2020
1 parent 02c5b4d commit 4d5cffe
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit 4d5cffe

Please sign in to comment.