class documentation
class OAuth2ClientInfo:
Constructor: OAuth2ClientInfo.from_oidc_endpoint(oidc_config_endpoint, client_id, scopes)
Metadata for Oauth2 client
Static Method | from |
Create client information object from well known endpoint in format as specified in https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata |
Class Variable | authorization |
Authorization URL to redirect the user to |
Class Variable | client |
Id of the client to request for |
Class Variable | scopes |
List of scopes to request |
Class Variable | token |
Token URL for fetching the access token |
@staticmethod
def from_oidc_endpoint(oidc_config_endpoint:
def from_oidc_endpoint(oidc_config_endpoint:
str
, client_id: str
, scopes: list[ str]
) -> OAuth2ClientInfo
:
¶
Create client information object from well known endpoint in format as specified in https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata
Parameters | |
oidcstr | Endpoint to load |
clientstr | Client ID to use |
scopes:list[ | Scopes to add to OAuth2 authorization requests |
Returns | |
OAuth2ClientInfo | OAuth2ClientInfo containing parsed information from endpoint |