OAuthProviderService#

class OAuthProviderService[source]#

Methods

get_all

Get all OAuth providers connected to this instance.

get_oauth_token

Get an OAuth token for the specified provider.

put_oauth_token

Get or create an OAuth token for the specified provider.

callback

The method that is used by OAuth providers after they completed the login flow.

get_all(*, extra_parameters=None)[source]#

Get all OAuth providers connected to this instance.

Parameters:

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:

All connected providers.

Return type:

Sequence[OAuthProvider]

get_oauth_token(*, provider_id, extra_parameters=None)[source]#

Get an OAuth token for the specified provider.

Parameters:
Returns:

The token.

Return type:

OAuthToken

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:

OAuthToken | SetupOAuthResult

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:
Returns:

A response that is not in any defined format.

Return type:

bytes