hub¶
Classes
Hub (*args, **kwargs) |
Provides access to JupyterHub authenticator services. |
-
class
remoteappmanager.services.hub.
Hub
(*args, **kwargs)[source]¶ Bases:
remoteappmanager.logging.logging_mixin.LoggingMixin
,traitlets.traitlets.HasTraits
Provides access to JupyterHub authenticator services.
Initializes the hub connection object.
-
api_token
= Unicode¶ The api token to authenticate the request
a unicode string
-
endpoint_url
= Unicode¶ The url at which the Hub can be reached
a unicode string
-
verify_token
(cookie_name, encrypted_cookie)[source]¶ Verify the authentication token and grants access to the user if verified.
Parameters: Returns: user_data – If authentication is successful, user_data contains the user’s information from jupyterhub associated with the given encrypted cookie. Otherwise the dictionary is empty.
Return type:
-