Provider¶
-
class
gafaelfawr.providers.base.
Provider
¶ Bases:
object
Abstract base class for authentication providers.
Methods Summary
create_session
(code, state)Given the code from a successful authentication, create a session. get_redirect_url
(state)Get the login URL to which to redirect the user. Methods Documentation
-
create_session
(code: str, state: str) → Session¶ Given the code from a successful authentication, create a session.
Parameters: Returns: session – The new authentication session.
Return type: Raises: aiohttp.ClientResponseError
– An HTTP client error occurred trying to talk to the authentication provider.ProviderException
– The provider responded with an error to a request.
-