Class AbstractOIDCAuthenticationResponseAction
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
org.opensaml.profile.action.AbstractProfileAction
org.opensaml.profile.action.AbstractConditionalProfileAction
net.shibboleth.idp.profile.AbstractProfileAction
net.shibboleth.idp.authn.AbstractAuthenticationAction
net.shibboleth.idp.plugin.authn.oidc.rp.impl.AbstractOIDCAuthenticationResponseAction
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
- Direct Known Subclasses:
AbstractHttpOIDCAuthenticationAction,ValidateResponseState
Abstract class for actions based on the
AuthenticationResponse located under
the InOutOperationContext.getInboundMessageContext() and the built OIDCAuthenticationRequest
located under the InOutOperationContext.getOutboundMessageContext().
Also makes available the OpenID Provider metadata context.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate OIDCAuthenticationRequestOIDC authentication request built by the IdP.private com.nimbusds.openid.connect.sdk.AuthenticationSuccessResponseOIDC authentication response from upstream OP.private final org.slf4j.LoggerClass logger.private OIDCProviderMetadataContextOIDC Metadata context.Lookup strategy to locate the OP metadata to use. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleandoPreExecute(ProfileRequestContext profileRequestContext, AuthenticationContext authenticationContext) protected OIDCAuthenticationRequestReturns the authentication request build by this IdP.protected com.nimbusds.openid.connect.sdk.AuthenticationSuccessResponseReturns the authentication response from the upstream OP.protected OIDCProviderMetadataContextReturns the OIDC provider metadata context.voidsetProviderMetadataLookupStrategy(Function<ProfileRequestContext, OIDCProviderMetadataContext> strategy) Set the lookup strategy to locate the OpenID providers metadata.Methods inherited from class net.shibboleth.idp.authn.AbstractAuthenticationAction
doExecute, doExecute, doPreExecute, setAuthenticationContextLookupStrategyMethods inherited from class net.shibboleth.idp.profile.AbstractProfileAction
doExecute, execute, getBean, getBean, getMessage, getMessage, getMessage, getParameter, getParameter, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategyMethods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
getActivationCondition, setActivationConditionMethods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, ensureHttpServletRequest, ensureHttpServletResponse, execute, getHttpServletRequest, getHttpServletRequestSupplier, getHttpServletResponse, getHttpServletResponseSupplier, getLogPrefix, isPreExecuteCalled, setHttpServletRequestSupplier, setHttpServletResponseSupplierMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, doInitialize, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
providerMetadataLookupStrategy
@Nonnull private Function<ProfileRequestContext,OIDCProviderMetadataContext> providerMetadataLookupStrategyLookup strategy to locate the OP metadata to use. -
authnResponse
@Nullable private com.nimbusds.openid.connect.sdk.AuthenticationSuccessResponse authnResponseOIDC authentication response from upstream OP. -
authnRequest
OIDC authentication request built by the IdP. -
providerMetadataContext
OIDC Metadata context.
-
-
Constructor Details
-
AbstractOIDCAuthenticationResponseAction
protected AbstractOIDCAuthenticationResponseAction()Constructor.
-
-
Method Details
-
setProviderMetadataLookupStrategy
public void setProviderMetadataLookupStrategy(@Nonnull Function<ProfileRequestContext, OIDCProviderMetadataContext> strategy) Set the lookup strategy to locate the OpenID providers metadata.- Parameters:
strategy- the strategy.
-
getAuthenticationResponse
@Nullable protected com.nimbusds.openid.connect.sdk.AuthenticationSuccessResponse getAuthenticationResponse()Returns the authentication response from the upstream OP. Should never benullafterAbstractAuthenticationAction.doPreExecute(ProfileRequestContext)has been called.- Returns:
- the authentication response.
-
getAuthenticationRequest
Returns the authentication request build by this IdP. Should never benullafterAbstractAuthenticationAction.doPreExecute(ProfileRequestContext)has been called.- Returns:
- the authentication request.
-
getProviderMetadataContext
Returns the OIDC provider metadata context. Should never benullafterAbstractAuthenticationAction.doPreExecute(ProfileRequestContext)has been called.- Returns:
- The provider metadata context.
-
doPreExecute
protected boolean doPreExecute(@Nonnull ProfileRequestContext profileRequestContext, @Nonnull AuthenticationContext authenticationContext) - Overrides:
doPreExecutein classAbstractAuthenticationAction
-