mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-13 04:53:01 +00:00
implement admin-access with OAuth
This commit is contained in:
@@ -244,6 +244,7 @@ class User(HasTraits):
|
||||
|
||||
# create API and OAuth tokens
|
||||
spawner.api_token = api_token
|
||||
spawner.admin_access = self.settings.get('admin_access', False)
|
||||
spawner.oauth_client_id = client_id = 'user-%s-%s' % (self.escaped_name, server_name)
|
||||
client_store = self.settings['oauth_provider'].client_authenticator.client_store
|
||||
try:
|
||||
|
Reference in New Issue
Block a user