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()[source]#

Get all OAuth providers connected to this instance.

Returns:

All connected providers.

Return type:

Sequence[OAuthProvider]

get_oauth_token(*, provider_id)[source]#

Get an OAuth token for the specified provider.

Parameters:
Returns:

The token.

Return type:

OAuthToken

put_oauth_token(*, provider_id)[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)[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