simple_openid_connect.client_authentication¶
Utilities and data types used when authenticating the relying party (client).
This should not be confused with authenticating a user as the user authentication at the OP is of no concern to us. Instead, these authenticate the relying party when e.g. exchanging tokens or requesting user information. It is a necessary process because while access tokens grant a relying party access to certain user information, the relying party must still identify itself to the OP when accessing that information.
For more information visit Section 9 of OpenID Connect Core 1.0 and Section 2.3 of OAuth 2.0 [RFC6749].
Classes
|
Authenticate requests using a given bearer token |
A base class for client authentication methods which describes the interface that each method implements to authenticate requests. |
|
|
Clients that have received a client_secret value from the Authorization Server authenticate with the Authorization Server using the HTTP Basic authentication scheme. |
|
The Client does not authenticate itself at the Token Endpoint, either because it uses only the Implicit Flow (and so does not use the Token Endpoint) or because it is a Public Client with no Client Secret or other authentication mechanism. |
- class simple_openid_connect.client_authentication.AccessTokenBearerAuth(access_token: str)[source]¶
Authenticate requests using a given bearer token
- class simple_openid_connect.client_authentication.ClientAuthenticationMethod[source]¶
A base class for client authentication methods which describes the interface that each method implements to authenticate requests.
This class also extends requests
AuthBase
so that all derived implementations can directly be used with requests to authenticate something.
- class simple_openid_connect.client_authentication.ClientSecretBasicAuth(client_id: str, client_secret: str)[source]¶
Clients that have received a client_secret value from the Authorization Server authenticate with the Authorization Server using the HTTP Basic authentication scheme.
- class simple_openid_connect.client_authentication.NoneAuth(client_id: str)[source]¶
The Client does not authenticate itself at the Token Endpoint, either because it uses only the Implicit Flow (and so does not use the Token Endpoint) or because it is a Public Client with no Client Secret or other authentication mechanism.