Provider¶
- class gafaelfawr.providers.base.Provider¶
Bases:
object
Abstract base class for authentication providers.
Methods Summary
create_user_info
(code, state, session)Given the code from an authentication, create the user information.
get_redirect_url
(state)Get the login URL to which to redirect the user.
logout
(session)Log out user.
Methods Documentation
- abstract async create_user_info(code, state, session)¶
Given the code from an authentication, create the user information.
- Parameters:
- Returns:
The user information corresponding to that authentication.
- Return type:
- Raises:
httpx.HTTPError – Raised if an HTTP client error occurred trying to talk to the authentication provider.
ProviderError – Raised if the provider responded with an error to a request.
- abstract get_redirect_url(state)¶
Get the login URL to which to redirect the user.