Skip to content

Commit

Permalink
Pass Canvas courses to spawner environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanlovett committed Oct 7, 2021
1 parent 8117b0e commit 439e1e0
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,7 @@ async def pre_spawn_start(self, user, spawner):
for k in ['login_id', 'name', 'sortable_name', 'primary_email']:
if k in auth_state['oauth_user']:
spawner.environment[f"OAUTH2_{k.upper()}"] = auth_state['oauth_user'][k]

# pass canvas courses to the environment
if 'courses' in auth_state:
spawner.environment["CANVAS_COURSES"] = auth_state['courses']

0 comments on commit 439e1e0

Please sign in to comment.