OAuthProviderService#
- class OAuthProviderService[source]#
Methods
Get all OAuth providers connected to this instance.
Get an OAuth token for the specified provider.
Get or create an OAuth token for the specified provider.
The method that is used by OAuth providers after they completed the login flow.
- get_all()[source]#
Get all OAuth providers connected to this instance.
- Returns:
All connected providers.
- Return type:
- get_oauth_token(*, provider_id)[source]#
Get an OAuth token for the specified provider.
- Parameters:
provider_id (
str
) – The provider for which you want to get a token.self (OAuthProviderService[AuthenticatedClient]) –
- Returns:
The token.
- Return type:
- put_oauth_token(*, provider_id)[source]#
Get or create an OAuth token for the specified provider.
- Parameters:
provider_id (
str
) – The provider for which you want to get/create a token.self (OAuthProviderService[AuthenticatedClient]) –
- Returns:
The token.
- Return type:
- callback(*, provider_id, state=Nothing, code=Nothing, error=Nothing, error_description=Nothing)[source]#
The method that is used by OAuth providers after they completed the login flow.
For the precise meaning of the query parameters see RFC 6749.