Class UserInfoEndpointLookup
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.sp.oidc.profile.impl.AbstractAuthorizationResponseAction
net.shibboleth.sp.oidc.profile.impl.AbstractHttpOAuthAction<com.nimbusds.openid.connect.sdk.UserInfoResponse>
net.shibboleth.sp.oidc.profile.impl.UserInfoEndpointLookup
- All Implemented Interfaces:
net.shibboleth.shared.component.Component,net.shibboleth.shared.component.DestructableComponent,net.shibboleth.shared.component.InitializableComponent,org.opensaml.profile.action.ProfileAction,Aware,MessageSource,MessageSourceAware,Action
public class UserInfoEndpointLookup
extends AbstractHttpOAuthAction<com.nimbusds.openid.connect.sdk.UserInfoResponse>
Request information from the UserInfo OAuth2.0 endpoint using the access_token already present
in the context. Return consented claims about the subject.
- Event:
EventIds.PROCEED_EVENT_ID,EventIds.INVALID_PROFILE_CTX,AuthnEventIds.AUTHN_EXCEPTION- Postcondition:
- Add a claims returned from the UserInfo endpoint to the
UserInfoResponseContext.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.LoggerClass logger.private Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.oidc.profile.context.UserInfoResponseContext> Strategy used to look up theAccessTokenResponseContextto set the parameters for. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext) voidsetUserInfoResponseContextLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext, net.shibboleth.oidc.profile.context.UserInfoResponseContext> strategy) Set the strategy used to look up aUserInfoResponseContext.Methods inherited from class net.shibboleth.sp.oidc.profile.impl.AbstractHttpOAuthAction
doInitialize, executeHttpRequest, getHttpRequestEncoderStrategy, getHttpResponseDecoderStrategy, handleRequest, setHttpClient, setHttpClientSecurityParameters, setHttpRequestEncoderStrategy, setHttpResponseDecoderStrategyMethods inherited from class net.shibboleth.sp.oidc.profile.impl.AbstractAuthorizationResponseAction
doPreExecute, getAuthenticationResponse, getProviderMetadataContext, setProviderMetadataLookupStrategyMethods 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, 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. -
userInfoResponseContextLookupStrategy
@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.oidc.profile.context.UserInfoResponseContext> userInfoResponseContextLookupStrategyStrategy used to look up theAccessTokenResponseContextto set the parameters for.
-
-
Constructor Details
-
UserInfoEndpointLookup
public UserInfoEndpointLookup()Constructor.
-
-
Method Details
-
setUserInfoResponseContextLookupStrategy
public void setUserInfoResponseContextLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext, net.shibboleth.oidc.profile.context.UserInfoResponseContext> strategy) Set the strategy used to look up aUserInfoResponseContext.- Parameters:
strategy- lookup strategy
-
doExecute
protected void doExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext) - Overrides:
doExecutein classorg.opensaml.profile.action.AbstractProfileAction
-