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_oauth_token(*, provider_id, extra_parameters=None)[source]#
Get an OAuth token for the specified provider.
- Parameters:
- Returns:
The token.
- Return type:
- put_oauth_token(*, provider_id, extra_parameters=None)[source]#
Get or create an OAuth token for the specified provider.
- Parameters:
- Returns:
The token.
- Return type:
- callback(*, provider_id, state=Nothing, code=Nothing, error=Nothing, error_description=Nothing, extra_parameters=None)[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.
- Parameters:
provider_id (
str
) – The id of the OAuthProvider that completed the flow.error_description (
Union
[Just
[str
],_Nothing
[str
]]) – The description of the error.extra_parameters (
Optional
[Mapping
[str
,Union
[str
,bool
,int
,float
]]]) – The extra query parameters you might want to add. By default no extra query parameters are added.
- Returns:
A response that is not in any defined format.
- Return type: