Skip to content

Commit

Permalink
Don't override default OAuthenticator.scope if unset
Browse files Browse the repository at this point in the history
  • Loading branch information
manics committed Feb 23, 2018
1 parent aa64d94 commit 9b428f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion images/hub/jupyterhub_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,9 @@
else:
raise ValueError("Unhandled auth type: %r" % auth_type)

c.OAuthenticator.scope = get_config('auth.scopes', [])
auth_scopes = get_config('auth.scopes')
if auth_scopes:
c.OAuthenticator.scope = auth_scopes

c.Authenticator.enable_auth_state = get_config('auth.state.enabled', False)

Expand Down

0 comments on commit 9b428f1

Please sign in to comment.