Class AbstractOIDCSSOConfiguration
java.lang.Object
net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
net.shibboleth.idp.profile.config.AbstractProfileConfiguration
net.shibboleth.idp.profile.config.AbstractConditionalProfileConfiguration
net.shibboleth.oidc.profile.oauth2.config.impl.AbstractOAuth2ClientAuthenticableProfileConfiguration
net.shibboleth.oidc.profile.oauth2.config.impl.AbstractOAuth2FlowAwareProfileConfiguration
net.shibboleth.oidc.profile.config.impl.AbstractOIDCSSOConfiguration
- All Implemented Interfaces:
AuthenticationProfileConfiguration,AttributeResolvingProfileConfiguration,ConditionalProfileConfiguration,OverriddenIssuerProfileConfiguration,ProfileConfiguration,OIDCFlowAwareProfileConfiguration,OIDCIDTokenProducingProfileConfiguration,OIDCProfileConfiguration,OIDCSSOProfileConfiguration,OIDCSSOProviderConfiguration,OIDCSSORelyingPartyConfiguration,OAuth2AccessTokenProducingProfileConfiguration,OAuth2ClientAuthenticableClientProfileConfiguration,OAuth2ClientAuthenticableProfileConfiguration,OAuth2FlowAwareProfileConfiguration,OAuth2ProfileConfiguration,OAuth2RefreshTokenProducingProfileConfiguration,OAuth2TokenEncryptionProfileConfiguration,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
- Direct Known Subclasses:
DefaultOAuth2TokenConfiguration,DefaultOIDCAuthorizationConfiguration
public abstract class AbstractOIDCSSOConfiguration
extends AbstractOAuth2FlowAwareProfileConfiguration
implements OIDCSSORelyingPartyConfiguration, OIDCSSOProviderConfiguration
Base class for profiles that support OIDC's concept of SSO, which spans multiple endpoints.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Function<ProfileRequestContext,BiFunction<ProfileRequestContext, Map<String, Object>, Map<String, Object>>> Lookup function to supply strategy bi-function for manipulating access token claims set.private Function<ProfileRequestContext,Duration> Lookup function to supply access token lifetime.private Function<ProfileRequestContext,String> Lookup function to supply access token type.private Predicate<ProfileRequestContext>Whether client is allowed to use PKCE code challenge method plain.private Function<ProfileRequestContext,Set<String>> Lookup function to supply attribute IDs to include in ID token regardless of response_type.private Function<ProfileRequestContext,Set<String>> Lookup function to supply additional audiences for ID token.private Predicate<ProfileRequestContext>Whether encryption is optional in the face of no key, etc.private Predicate<ProfileRequestContext>Whether client is required to use PKCE.private Function<ProfileRequestContext,Duration> Lookup function to supply ID token lifetime.private Function<ProfileRequestContext,BiFunction<ProfileRequestContext, Map<String, Object>, Map<String, Object>>> Lookup function to supply strategy bi-function for manipulating id_token claims.private Function<ProfileRequestContext,String> Lookup function to override issuer value.private Function<ProfileRequestContext,Duration> Lookup function to supply refresh token chain lifetime.private Function<ProfileRequestContext,Duration> Lookup function to supply refresh token lifetime.private Function<ProfileRequestContext,Duration> Lookup function to supply refresh token timeout.private Predicate<ProfileRequestContext>Whether attributes should be resolved in the course of the profile.Fields inherited from class net.shibboleth.idp.profile.config.AbstractProfileConfiguration
DEFAULT_DISALLOWED_FEATURESFields inherited from interface net.shibboleth.oidc.profile.config.OIDCSSOProfileConfiguration
PROFILE_ID -
Constructor Summary
ConstructorsConstructorDescriptionAbstractOIDCSSOConfiguration(String profileId) Creates a new configuration instance. -
Method Summary
Modifier and TypeMethodDescriptiongetAccessTokenClaimsSetManipulationStrategy(ProfileRequestContext profileRequestContext) Get the bi-function for manipulating access token claims set.getAccessTokenLifetime(ProfileRequestContext profileRequestContext) Get access token lifetime.getAccessTokenType(ProfileRequestContext profileRequestContext) Get access token type.getAdditionalAudiencesForIdToken(ProfileRequestContext profileRequestContext) Get the set of audiences, in addition to the relying party(ies) to which the IdP is issuing the ID Token, with which the token may be shared.getAlwaysIncludedAttributes(ProfileRequestContext profileRequestContext) Get the set of attribute IDs which should be included in the ID token regardless of response_type.getIDTokenLifetime(ProfileRequestContext profileRequestContext) Get ID token lifetime.getIDTokenManipulationStrategy(ProfileRequestContext profileRequestContext) Get the bi-function for manipulating id_token claims.getIssuer(ProfileRequestContext profileRequestContext) getRefreshTokenChainLifetime(ProfileRequestContext profileRequestContext) Get refresh token chain lifetime.getRefreshTokenLifetime(ProfileRequestContext profileRequestContext) Deprecated, for removal: This API element is subject to removal in a future version.getRefreshTokenTimeout(ProfileRequestContext profileRequestContext) Get refresh token timeout.booleanisAllowPKCEPlain(ProfileRequestContext profileRequestContext) Get whether client is allowed to use PKCE code challenge method plain.booleanisEncryptionOptional(ProfileRequestContext profileRequestContext) Get whether encryption is optional in the face of a missing key, etc.booleanisForcePKCE(ProfileRequestContext profileRequestContext) Get whether client is required to use PKCE.booleanisResolveAttributes(ProfileRequestContext profileRequestContext) voidsetAccessTokenClaimsSetManipulationStrategy(BiFunction<ProfileRequestContext, Map<String, Object>, Map<String, Object>> strategy) Set the bi-function for manipulating access token claims set.voidsetAccessTokenClaimsSetManipulationStrategyLookupStrategy(Function<ProfileRequestContext, BiFunction<ProfileRequestContext, Map<String, Object>, Map<String, Object>>> strategy) Set a lookup strategy for the bi-function for manipulating access token claims set.voidsetAccessTokenLifetime(Duration lifetime) Set the lifetime of an access token.voidSet a lookup strategy for the access token lifetime.voidsetAccessTokenType(String type) Set access token type.voidSet lookup strategy for access token type.voidsetAdditionalAudiencesForIdToken(Collection<String> audiences) Set the set of audiences, in addition to the relying party(ies) to which the IdP is issuing the ID Token, with which the token may be shared.voidsetAdditionalAudiencesForIdTokenLookupStrategy(Function<ProfileRequestContext, Set<String>> strategy) Set a lookup strategy for the set of audiences, in addition to the relying party(ies) to which the IdP is issuing the ID Token, with which the token may be shared.voidsetAllowPKCEPlain(boolean flag) Set whether client is allowed to use PKCE code challenge method plain.voidsetAllowPKCEPlainPredicate(Predicate<ProfileRequestContext> condition) Set condition for whether client is allowed to use PKCE code challenge method plain.voidsetAlwaysIncludedAttributes(Collection<String> attributes) Set the set of attribute IDs which should be included in the ID token regardless of response_type.voidSet a lookup strategy for the attribute IDs which should be included in the ID token regardless of response_type.voidsetEncryptionOptional(boolean flag) Set whether encryption is optional in the face of a missing key, etc.voidSet a condition to determine whether encryption is optional in the face of a missing key, etc.voidsetForcePKCE(boolean flag) Set whether client is required to use PKCE.voidsetForcePKCEPredicate(Predicate<ProfileRequestContext> condition) Set condition for whether client is required to use PKCE.voidsetIDTokenLifetime(Duration lifetime) Set the lifetime of an id token.voidSet a lookup strategy for the ID token lifetime.voidsetIDTokenManipulationStrategy(BiFunction<ProfileRequestContext, Map<String, Object>, Map<String, Object>> strategy) Set the bi-function for manipulating id_token claims.voidsetIDTokenManipulationStrategyLookupStrategy(Function<ProfileRequestContext, BiFunction<ProfileRequestContext, Map<String, Object>, Map<String, Object>>> strategy) Set a lookup strategy for the bi-function for manipulating id_token claims.voidSet overridden issuer value.voidSets lookup strategy for overridden issuer value.voidsetRefreshTokenChainLifetime(Duration lifetime) Set the lifetime of refresh token chain.voidSet a lookup strategy for the refresh token chain lifetime.voidsetRefreshTokenLifetime(Duration lifetime) Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.voidsetRefreshTokenTimeout(Duration timeout) Set the timeout of refresh token.voidSet a lookup strategy for the refresh token timeout.voidsetResolveAttributes(boolean flag) Set whether attributes should be resolved during the profile.voidSet a condition to determine whether attributes should be resolved during the profile.Methods inherited from class net.shibboleth.oidc.profile.oauth2.config.impl.AbstractOAuth2FlowAwareProfileConfiguration
isAuthorizationCodeFlowEnabled, isHybridFlowEnabled, isImplicitFlowEnabled, isRefreshTokensEnabled, setAuthorizationCodeFlowEnabled, setAuthorizationCodeFlowEnabledPredicate, setHybridFlowEnabled, setHybridFlowEnabledPredicate, setImplicitFlowEnabled, setImplicitFlowEnabledPredicate, setRefreshTokensEnabled, setRefreshTokensEnabledPredicateMethods inherited from class net.shibboleth.oidc.profile.oauth2.config.impl.AbstractOAuth2ClientAuthenticableProfileConfiguration
getAuthenticationFlows, getClaimsValidator, getClientCredential, getClientId, getDefaultAuthenticationMethods, getPostAuthenticationFlows, getProxyCount, getTokenEndpointAuthMethod, getTokenEndpointAuthMethods, isForceAuthn, setAuthenticationFlows, setAuthenticationFlowsLookupStrategy, setClaimsValidator, setClaimsValidatorLookupStrategy, setClientCredential, setClientCredentialLookupStrategy, setClientId, setClientIdLookupStrategy, setDefaultAuthenticationMethods, setDefaultAuthenticationMethodsLookupStrategy, setForceAuthn, setForceAuthnPredicate, setPostAuthenticationFlows, setPostAuthenticationFlowsLookupStrategy, setProxyCount, setProxyCountLookupStrategy, setTokenEndpointAuthMethod, setTokenEndpointAuthMethodLookupStrategy, setTokenEndpointAuthMethods, setTokenEndpointAuthMethodsLookupStrategyMethods inherited from class net.shibboleth.idp.profile.config.AbstractConditionalProfileConfiguration
getActivationCondition, setActivationConditionMethods inherited from class net.shibboleth.idp.profile.config.AbstractProfileConfiguration
equals, getDisallowedFeatures, getInboundInterceptorFlows, getOutboundInterceptorFlows, getSecurityConfiguration, hashCode, isFeatureDisallowed, setDisallowedFeatures, setDisallowedFeaturesLookupStrategy, setInboundFlowsLookupStrategy, setInboundInterceptorFlows, setInboundInterceptorFlowsLookupStrategy, setOutboundFlowsLookupStrategy, setOutboundInterceptorFlows, setOutboundInterceptorFlowsLookupStrategy, setSecurityConfiguration, setSecurityConfigurationLookupStrategyMethods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
doInitialize, getIdMethods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.idp.authn.config.AuthenticationProfileConfiguration
getAuthenticationFlows, getDefaultAuthenticationMethods, getPostAuthenticationFlows, getProxyCount, isForceAuthn, isLocalMethods inherited from interface net.shibboleth.idp.profile.config.ConditionalProfileConfiguration
getActivationConditionMethods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiedComponent
getIdMethods inherited from interface net.shibboleth.oidc.profile.oauth2.config.OAuth2ClientAuthenticableClientProfileConfiguration
getClientCredential, getClientId, getTokenEndpointAuthMethodMethods inherited from interface net.shibboleth.oidc.profile.oauth2.config.OAuth2ClientAuthenticableProfileConfiguration
getClaimsValidator, getTokenEndpointAuthMethodsMethods inherited from interface net.shibboleth.oidc.profile.oauth2.config.OAuth2FlowAwareProfileConfiguration
isAuthorizationCodeFlowEnabled, isImplicitFlowEnabled, isRefreshTokensEnabledMethods inherited from interface net.shibboleth.oidc.profile.config.OIDCFlowAwareProfileConfiguration
isHybridFlowEnabledMethods inherited from interface net.shibboleth.idp.profile.config.ProfileConfiguration
getInboundInterceptorFlows, getOutboundInterceptorFlows, getSecurityConfiguration
-
Field Details
-
issuerLookupStrategy
Lookup function to override issuer value. -
resolveAttributesPredicate
Whether attributes should be resolved in the course of the profile. -
encryptionOptionalPredicate
Whether encryption is optional in the face of no key, etc. -
forcePKCEPredicate
Whether client is required to use PKCE. -
allowPKCEPlainPredicate
Whether client is allowed to use PKCE code challenge method plain. -
idTokenLifetimeLookupStrategy
Lookup function to supply ID token lifetime. -
accessTokenTypeLookupStrategy
Lookup function to supply access token type. -
accessTokenLifetimeLookupStrategy
Lookup function to supply access token lifetime. -
refreshTokenLifetimeLookupStrategy
Lookup function to supply refresh token lifetime. -
refreshTokenTimeoutLookupStrategy
Lookup function to supply refresh token timeout. -
refreshTokenChainLifetimeLookupStrategy
Lookup function to supply refresh token chain lifetime. -
assertionAudiencesLookupStrategy
Lookup function to supply additional audiences for ID token. -
alwaysIncludedAttributesLookupStrategy
Lookup function to supply attribute IDs to include in ID token regardless of response_type. -
idTokenManipulationStrategyLookupStrategy
@Nonnull private Function<ProfileRequestContext,BiFunction<ProfileRequestContext, idTokenManipulationStrategyLookupStrategyMap<String, Object>, Map<String, Object>>> Lookup function to supply strategy bi-function for manipulating id_token claims. -
accessTokenClaimsSetManipulationStrategyLookupStrategy
@Nonnull private Function<ProfileRequestContext,BiFunction<ProfileRequestContext, accessTokenClaimsSetManipulationStrategyLookupStrategyMap<String, Object>, Map<String, Object>>> Lookup function to supply strategy bi-function for manipulating access token claims set.
-
-
Constructor Details
-
AbstractOIDCSSOConfiguration
Creates a new configuration instance.- Parameters:
profileId- Unique profile identifier.
-
-
Method Details
-
getIssuer
- Specified by:
getIssuerin interfaceOverriddenIssuerProfileConfiguration
-
setIssuer
Set overridden issuer value.- Parameters:
issuer- issuer value
-
setIssuerLookupStrategy
Sets lookup strategy for overridden issuer value.- Parameters:
strategy- lookup strategy
-
isResolveAttributes
- Specified by:
isResolveAttributesin interfaceAttributeResolvingProfileConfiguration
-
setResolveAttributes
public void setResolveAttributes(boolean flag) Set whether attributes should be resolved during the profile.- Parameters:
flag- flag to set
-
setResolveAttributesPredicate
Set a condition to determine whether attributes should be resolved during the profile.- Parameters:
condition- condition to set
-
isEncryptionOptional
Description copied from interface:OAuth2TokenEncryptionProfileConfigurationGet whether encryption is optional in the face of a missing key, etc.- Specified by:
isEncryptionOptionalin interfaceOAuth2TokenEncryptionProfileConfiguration- Parameters:
profileRequestContext- current profile request context- Returns:
- true iff encryption is optional
-
setEncryptionOptional
public void setEncryptionOptional(boolean flag) Set whether encryption is optional in the face of a missing key, etc.- Parameters:
flag- flag to set
-
setEncryptionOptionalPredicate
Set a condition to determine whether encryption is optional in the face of a missing key, etc.- Parameters:
condition- condition to set
-
isForcePKCE
Description copied from interface:OIDCSSOProfileConfigurationGet whether client is required to use PKCE.- Specified by:
isForcePKCEin interfaceOIDCSSOProfileConfiguration- Parameters:
profileRequestContext- profile request context- Returns:
- whether client is required to use PKCE
-
setForcePKCE
public void setForcePKCE(boolean flag) Set whether client is required to use PKCE.- Parameters:
flag- flag to set
-
setForcePKCEPredicate
Set condition for whether client is required to use PKCE.- Parameters:
condition- condition to set
-
isAllowPKCEPlain
Description copied from interface:OIDCSSOProfileConfigurationGet whether client is allowed to use PKCE code challenge method plain.- Specified by:
isAllowPKCEPlainin interfaceOIDCSSOProfileConfiguration- Parameters:
profileRequestContext- profile request context- Returns:
- whether client is allowed to use PKCE code challenge method plain
-
setAllowPKCEPlain
public void setAllowPKCEPlain(boolean flag) Set whether client is allowed to use PKCE code challenge method plain.- Parameters:
flag- flag to set
-
setAllowPKCEPlainPredicate
Set condition for whether client is allowed to use PKCE code challenge method plain.- Parameters:
condition- condition to set
-
getIDTokenLifetime
@Positive @Nonnull public Duration getIDTokenLifetime(@Nullable ProfileRequestContext profileRequestContext) Description copied from interface:OIDCIDTokenProducingProfileConfigurationGet ID token lifetime.Defaults to 1 hour.
- Specified by:
getIDTokenLifetimein interfaceOIDCIDTokenProducingProfileConfiguration- Parameters:
profileRequestContext- profile request context- Returns:
- ID token lifetime
-
setIDTokenLifetime
Set the lifetime of an id token.- Parameters:
lifetime- lifetime of an id token in milliseconds
-
setIDTokenLifetimeLookupStrategy
public void setIDTokenLifetimeLookupStrategy(@Nonnull Function<ProfileRequestContext, Duration> strategy) Set a lookup strategy for the ID token lifetime.- Parameters:
strategy- lookup strategy
-
getAccessTokenType
@Nullable @NotEmpty public String getAccessTokenType(@Nullable ProfileRequestContext profileRequestContext) Description copied from interface:OAuth2AccessTokenProducingProfileConfigurationGet access token type.- Specified by:
getAccessTokenTypein interfaceOAuth2AccessTokenProducingProfileConfiguration- Parameters:
profileRequestContext- profile request context- Returns:
- access token type, or null for unspecified/opaque
-
setAccessTokenType
Set access token type.- Parameters:
type- token type, or null for unspecified/opaque- Since:
- 2.1.0
-
setAccessTokenTypeLookupStrategy
public void setAccessTokenTypeLookupStrategy(@Nonnull Function<ProfileRequestContext, String> strategy) Set lookup strategy for access token type.- Parameters:
strategy- lookup strategy- Since:
- 2.1.0
-
getAccessTokenLifetime
@Positive @Nonnull public Duration getAccessTokenLifetime(@Nullable ProfileRequestContext profileRequestContext) Description copied from interface:OAuth2AccessTokenProducingProfileConfigurationGet access token lifetime.Defaults to 10 minutes.
- Specified by:
getAccessTokenLifetimein interfaceOAuth2AccessTokenProducingProfileConfiguration- Parameters:
profileRequestContext- profile request context- Returns:
- access token lifetime
-
setAccessTokenLifetime
Set the lifetime of an access token.- Parameters:
lifetime- lifetime of an access token in milliseconds
-
setAccessTokenLifetimeLookupStrategy
public void setAccessTokenLifetimeLookupStrategy(@Nullable Function<ProfileRequestContext, Duration> strategy) Set a lookup strategy for the access token lifetime.- Parameters:
strategy- lookup strategy
-
getRefreshTokenLifetime
@Nonnull @Positive @Deprecated(since="2.2.0", forRemoval=true) public Duration getRefreshTokenLifetime(@Nullable ProfileRequestContext profileRequestContext) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:OAuth2RefreshTokenProducingProfileConfigurationGet refresh token lifetime.Defaults to 2 hours.
- Specified by:
getRefreshTokenLifetimein interfaceOAuth2RefreshTokenProducingProfileConfiguration- Parameters:
profileRequestContext- profile request context- Returns:
- refresh token lifetime
-
setRefreshTokenLifetime
@Deprecated(since="2.2.0", forRemoval=true) public void setRefreshTokenLifetime(@Nonnull @Positive Duration lifetime) Deprecated, for removal: This API element is subject to removal in a future version.Set the lifetime of refresh token.- Parameters:
lifetime- lifetime of an refresh token
-
setRefreshTokenLifetimeLookupStrategy
@Deprecated(since="2.2.0", forRemoval=true) public void setRefreshTokenLifetimeLookupStrategy(@Nullable Function<ProfileRequestContext, Duration> strategy) Deprecated, for removal: This API element is subject to removal in a future version.Set a lookup strategy for the refresh token lifetime.- Parameters:
strategy- lookup strategy
-
getRefreshTokenTimeout
@Nonnull @Positive public Duration getRefreshTokenTimeout(@Nullable ProfileRequestContext profileRequestContext) Description copied from interface:OAuth2RefreshTokenProducingProfileConfigurationGet refresh token timeout. The expiration of a single refresh token is calculated based on this value.Defaults to 2 hours.
- Specified by:
getRefreshTokenTimeoutin interfaceOAuth2RefreshTokenProducingProfileConfiguration- Parameters:
profileRequestContext- profile request context- Returns:
- refresh token timeout
-
setRefreshTokenTimeout
Set the timeout of refresh token.- Parameters:
timeout- timeout of an refresh token- Since:
- 2.2.0
-
setRefreshTokenTimeoutLookupStrategy
public void setRefreshTokenTimeoutLookupStrategy(@Nullable Function<ProfileRequestContext, Duration> strategy) Set a lookup strategy for the refresh token timeout.- Parameters:
strategy- lookup strategy- Since:
- 2.2.0
-
getRefreshTokenChainLifetime
@Nonnull @Positive public Duration getRefreshTokenChainLifetime(@Nullable ProfileRequestContext profileRequestContext) Description copied from interface:OAuth2RefreshTokenProducingProfileConfigurationGet refresh token chain lifetime. The expiration of a single refresh token is calculated based on this value.Defaults to 2 hours.
- Specified by:
getRefreshTokenChainLifetimein interfaceOAuth2RefreshTokenProducingProfileConfiguration- Parameters:
profileRequestContext- profile request context- Returns:
- refresh token timeout
-
setRefreshTokenChainLifetime
Set the lifetime of refresh token chain.- Parameters:
lifetime- lifetime of a refresh token chain- Since:
- 2.2.0
-
setRefreshTokenChainLifetimeLookupStrategy
public void setRefreshTokenChainLifetimeLookupStrategy(@Nullable Function<ProfileRequestContext, Duration> strategy) Set a lookup strategy for the refresh token chain lifetime.- Parameters:
strategy- lookup strategy- Since:
- 2.2.0
-
getAdditionalAudiencesForIdToken
@Nonnull @NonnullElements @NotLive public Set<String> getAdditionalAudiencesForIdToken(@Nullable ProfileRequestContext profileRequestContext) Description copied from interface:OIDCIDTokenProducingProfileConfigurationGet the set of audiences, in addition to the relying party(ies) to which the IdP is issuing the ID Token, with which the token may be shared.- Specified by:
getAdditionalAudiencesForIdTokenin interfaceOIDCIDTokenProducingProfileConfiguration- Parameters:
profileRequestContext- profile request context- Returns:
- the additional audiences
-
setAdditionalAudiencesForIdToken
public void setAdditionalAudiencesForIdToken(@Nullable @NonnullElements Collection<String> audiences) Set the set of audiences, in addition to the relying party(ies) to which the IdP is issuing the ID Token, with which the token may be shared.- Parameters:
audiences- the additional audiences
-
setAdditionalAudiencesForIdTokenLookupStrategy
public void setAdditionalAudiencesForIdTokenLookupStrategy(@Nonnull Function<ProfileRequestContext, Set<String>> strategy) Set a lookup strategy for the set of audiences, in addition to the relying party(ies) to which the IdP is issuing the ID Token, with which the token may be shared.- Parameters:
strategy- lookup strategy
-
getAlwaysIncludedAttributes
@Nonnull @NonnullElements @NotLive public Set<String> getAlwaysIncludedAttributes(@Nullable ProfileRequestContext profileRequestContext) Description copied from interface:OIDCIDTokenProducingProfileConfigurationGet the set of attribute IDs which should be included in the ID token regardless of response_type.Default behavior is to include claims only with the implicit id_token type only, while any use of a back-channel relies on the user_info endpoint to get the claims. This setting forces certain attributes to be added to the ID token regardless of flow.
- Specified by:
getAlwaysIncludedAttributesin interfaceOIDCIDTokenProducingProfileConfiguration- Parameters:
profileRequestContext- profile request context- Returns:
- the attribute IDs to include in all cases
-
setAlwaysIncludedAttributes
Set the set of attribute IDs which should be included in the ID token regardless of response_type.Default behavior is to include claims only with the implicit id_token type only, while any use of a back-channel relies on the user_info endpoint to get the claims. This setting forces certain attributes to be added to the ID token regardless of flow.
- Parameters:
attributes- the attribute IDs to include in all cases
-
setAlwaysIncludedAttributesLookupStrategy
public void setAlwaysIncludedAttributesLookupStrategy(@Nonnull Function<ProfileRequestContext, Set<String>> strategy) Set a lookup strategy for the attribute IDs which should be included in the ID token regardless of response_type.- Parameters:
strategy- lookup strategy
-
getIDTokenManipulationStrategy
@Nonnull public BiFunction<ProfileRequestContext,Map<String, getIDTokenManipulationStrategyObject>, Map<String, Object>> (@Nullable ProfileRequestContext profileRequestContext) Description copied from interface:OIDCIDTokenProducingProfileConfigurationGet the bi-function for manipulating id_token claims.- Specified by:
getIDTokenManipulationStrategyin interfaceOIDCIDTokenProducingProfileConfiguration- Parameters:
profileRequestContext- profile request context- Returns:
- the bi-function for manipulating id_token claims
-
setIDTokenManipulationStrategy
public void setIDTokenManipulationStrategy(@Nullable BiFunction<ProfileRequestContext, Map<String, Object>, Map<String, Object>> strategy) Set the bi-function for manipulating id_token claims.- Parameters:
strategy- bi-function for manipulating id_token claims- Since:
- 2.1.0
-
setIDTokenManipulationStrategyLookupStrategy
public void setIDTokenManipulationStrategyLookupStrategy(@Nonnull Function<ProfileRequestContext, BiFunction<ProfileRequestContext, Map<String, Object>, Map<String, Object>>> strategy) Set a lookup strategy for the bi-function for manipulating id_token claims.- Parameters:
strategy- lookup strategy- Since:
- 2.1.0
-
getAccessTokenClaimsSetManipulationStrategy
@Nonnull public BiFunction<ProfileRequestContext,Map<String, getAccessTokenClaimsSetManipulationStrategyObject>, Map<String, Object>> (@Nullable ProfileRequestContext profileRequestContext) Description copied from interface:OAuth2AccessTokenProducingProfileConfigurationGet the bi-function for manipulating access token claims set.- Specified by:
getAccessTokenClaimsSetManipulationStrategyin interfaceOAuth2AccessTokenProducingProfileConfiguration- Parameters:
profileRequestContext- profile request context- Returns:
- the bi-function for manipulating access token claims set
-
setAccessTokenClaimsSetManipulationStrategy
public void setAccessTokenClaimsSetManipulationStrategy(@Nullable BiFunction<ProfileRequestContext, Map<String, Object>, Map<String, Object>> strategy) Set the bi-function for manipulating access token claims set.- Parameters:
strategy- bi-function for manipulating access token claims set- Since:
- 2.1.0
-
setAccessTokenClaimsSetManipulationStrategyLookupStrategy
public void setAccessTokenClaimsSetManipulationStrategyLookupStrategy(@Nonnull Function<ProfileRequestContext, BiFunction<ProfileRequestContext, Map<String, Object>, Map<String, Object>>> strategy) Set a lookup strategy for the bi-function for manipulating access token claims set.- Parameters:
strategy- lookup strategy- Since:
- 2.1.0
-
setRefreshTokenTimeout(Duration)