Skip to main content
Version: 4.25.x.x LTS

OIDCProviderMetadataFetcherState

Introduction and overview

OpenID providers have metadata describing their configuration such as the URL to their endpoints and URLs to key material (`http://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). The AuthState OIDCProviderMetadataFetcherState fetches this provider metadata from the given URL and propagates it in the configured scope for further processing by other AuthStates.

Description

The following table describes the characteristics of the AuthState.

TopicDescription
Classch.nevis.esauth.auth.states.oauth2.openid.rp.OIDCProviderMetadataFetcherState
LoggingOIDCRelyingParty
Auditingnone
Markernone
PropertiesproviderMetadataURL (string)The URL of the provider metadata document.
propagationScope (string, session)Value or variable containing the Access Token to use in the Userinfo Request being sent to the Userinfo Endpoint.
Methodsprocess: Requests the provider metadata from the configured URL.
Inputnone
Transitionsfailed: Error. If no valid provider metadata document could be retrieved.
ok: A valid metadata document could be retrieved.
Outputsession:[AuthStateName].providerMetadata The provider metadata retrieved from the configured URL.
Errorsnone
Notesnone

AuthState Config Example

<AuthState name="OIDCProviderMetadataFetcherState" class="ch.nevis.esauth.auth.states.oauth2.openid.rp.OIDCProviderMetadataFetcherState" authLevel="auth.test">
<ResultCond name="ok" next="RelyingParty"/>
<ResultCond name="failed" next="AuthError"/>
<property name="providerMetadataURL" value="https://accounts.google.com/.well-known/openid-configuration" />
</AuthState>