with_oidc#
- ApiClientFactory.with_oidc(idp_session_configuration=None, oidc_configuration=None)#
Set up client authentication for use with OpenID Connect.
- Parameters:
- idp_session_configuration
SessionConfiguration,optional Additional configuration settings for the requests session when connected to the OpenID identity provider.
- oidc_configuration
OIDCConfiguration,optional OpenID Connect provider settings. When omitted, authentication parameters are discovered from the API
401response. When provided, explicitauthorization_endpointandtoken_endpointvalues are used if set; otherwisewell_known_urlis used to discover them.
- idp_session_configuration
- Returns:
OIDCSessionBuilderBuilder object to authenticate via OIDC.
Notes
OIDC Authentication requires the
[oidc]extra to be installed.