simple_openid_connect.discovery#

Mechanisms for discovering information about an OpenID issuer

Functions

discover_configuration_from_issuer(issuer)

Retrieve configuration information about an OpenID provider (issuer)

simple_openid_connect.discovery.discover_configuration_from_issuer(issuer: str) ProviderMetadata#

Retrieve configuration information about an OpenID provider (issuer)

For more information about this process see Section 4 of OpenID Connect Discovery 1.0.

Parameters:

issuer – The base url of the provider This url will be appended with /.well-known/openid-configuration to retrieve the provider configuration so that must be a valid URL for your provider.

Returns:

The well-formed and validated configuration of the given issuer

Raises:

OpenidProtocolError – When the communication with the provider was not possible or the response was not in an expected format