Class DefaultOIDCAuthorizationConfiguration
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
net.shibboleth.profile.config.AbstractProfileConfiguration
net.shibboleth.profile.config.AbstractConditionalProfileConfiguration
net.shibboleth.idp.profile.config.AbstractInterceptorAwareProfileConfiguration
net.shibboleth.oidc.profile.oauth2.config.impl.AbstractOAuth2InterceptorAwareProfileConfiguration
net.shibboleth.oidc.profile.oauth2.config.impl.AbstractOAuth2ClientAuthenticableProfileConfiguration
net.shibboleth.oidc.profile.oauth2.config.impl.AbstractOAuth2FlowAwareProfileConfiguration
net.shibboleth.oidc.profile.config.impl.AbstractOIDCSSOConfiguration
net.shibboleth.oidc.profile.config.impl.DefaultOIDCAuthorizationConfiguration
- All Implemented Interfaces:
AuthenticationProfileConfiguration,InterceptorAwareProfileConfiguration,OIDCAuthenticationProfileConfiguration,OIDCAuthenticationRelyingPartyProfileConfiguration,OIDCAuthorizationConfiguration,OIDCFlowAwareProfileConfiguration,OIDCIDTokenProducingProfileConfiguration,OIDCProfileConfiguration,OIDCSSOProfileConfiguration,OIDCSSOProviderConfiguration,OIDCSSORelyingPartyConfiguration,OAuth2AccessTokenProducingProfileConfiguration,OAuth2AuthorizationCodeProducingProfileConfiguration,OAuth2AuthorizationProfileConfiguration,OAuth2ClientAuthenticableClientProfileConfiguration,OAuth2ClientAuthenticableProfileConfiguration,OAuth2DPoPProofValidatingProfileConfiguration,OAuth2FlowAwareProfileConfiguration,OAuth2InterceptorAwareProfileConfiguration,OAuth2ProfileConfiguration,OAuth2RefreshTokenProducingProfileConfiguration,OAuth2ScopeValidatingProfileConfiguration,OAuth2TokenEncryptionProfileConfiguration,AttributeResolvingProfileConfiguration,ConditionalProfileConfiguration,OverriddenIssuerProfileConfiguration,ProfileConfiguration,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
- Direct Known Subclasses:
DefaultOAuth2PushedAuthorizationRequestConfiguration
public class DefaultOIDCAuthorizationConfiguration
extends AbstractOIDCSSOConfiguration
implements OIDCAuthenticationRelyingPartyProfileConfiguration, OIDCAuthorizationConfiguration
Implementation of a profile configuration for the OpenID Connect authorization endpoint.
It is also usable as a Token endpoint configuration if no non-OIDC use cases are needed.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.shibboleth.oidc.profile.oauth2.config.OAuth2AuthorizationProfileConfiguration
OAuth2AuthorizationProfileConfiguration.HttpRequestMethod -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Predicate<ProfileRequestContext>Whether all acr claim requests should be treated as Essential.private Function<ProfileRequestContext,Function<Collection<String>, Collection<Principal>>> Lookup function to supply the strategy function for translating OIDC ACR claims.private Function<ProfileRequestContext,Function<Collection<String>, Collection<Principal>>> Lookup function to supply the strategy function for translating OIDC ACR claims.private Function<ProfileRequestContext,BiFunction<ProfileRequestContext, Map<String, Object>, Map<String, Object>>> Lookup function to supply strategy bi-function for manipulating authorization code claims set.private Function<ProfileRequestContext,Duration> Lookup function to supply lifetime of authz code.private Function<ProfileRequestContext,Set<String>> Lookup function to supply attribute IDs to omit from UserInfo token.private Function<ProfileRequestContext,String> Lookup function to determine the optional display parameter value of an authentication request.private Predicate<ProfileRequestContext>Whether to encode consent in authorization code and access/refresh tokens.private Function<ProfileRequestContext,Set<String>> Lookup function to supply attribute IDs to embed in authorization code or access token.private Predicate<ProfileRequestContext>Predicate used to determine if the generated request object should be encrypted.private Function<ProfileRequestContext,String> Which HTTP method should be used to issue OIDC authentication requests.private Predicate<ProfileRequestContext>Whether to include iss parameter in the authentication response.private Function<ProfileRequestContext,String> Lookup function to determine the login_hint of an authentication request.private Function<ProfileRequestContext,Duration> Lookup function to determine the max_age of an authentication request.static final StringOIDC authorization profile counter name.private Predicate<ProfileRequestContext>Whether authentication results should carry the proxied auth_time in the id_token.private Function<ProfileRequestContext,String> An override to specify a specific redirect_uri to use over the normally computed one.Whether client is required to use OIDC authentication request vs plain OAuth2 authorization request.private Predicate<ProfileRequestContext>Whether client is required to include dpop_jkt in authorization request.private Predicate<ProfileRequestContext>Whether client is required to use pushed authorization request.private Function<ProfileRequestContext,String> Lookup function to override the default response_mode for a given response_type.private Function<ProfileRequestContext,Set<String>> Lookup function to supply the response_modes that are allowed to be used in authorization request.private Function<ProfileRequestContext,String> Lookup function to retrieve the response_type.private Predicate<ProfileRequestContext>Whether to make a UserInfo Endpoint request for End-User claims.private Function<ProfileRequestContext,Set<String>> Lookup function to retrieve the scopes requested during authentication.private Predicate<ProfileRequestContext>Predicate used to determine if the generated request object should be signed.private Predicate<ProfileRequestContext>Whether TLS server validation alone is sufficient to verify the id_token (true), or whether the id_token's signature should be validated (false).private Predicate<ProfileRequestContext>Whether to encode authentication request parameters inside a JWT request object .private Function<ProfileRequestContext,String> Which HTTP method should be used to issue the UserInfo requests.Fields inherited from interface net.shibboleth.oidc.profile.config.OIDCAuthenticationProfileConfiguration
PROFILE_IDFields inherited from interface net.shibboleth.oidc.profile.config.OIDCAuthorizationConfiguration
PROFILE_IDFields inherited from interface net.shibboleth.oidc.profile.config.OIDCSSOProfileConfiguration
PROFILE_IDFields inherited from interface net.shibboleth.profile.config.ProfileConfiguration
DEFAULT_DISALLOWED_FEATURES -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.DefaultOIDCAuthorizationConfiguration(String profileId) Creates a new configuration instance. -
Method Summary
Modifier and TypeMethodDescriptionGet the function used to translate ACRs in the id_token into an appropriate set of customPrincipalobjects to populate into the subject.Get the function used to translate AMRs in the id_token into an appropriate set of customPrincipalobjects to populate into the subject.getAuthorizationCodeClaimsSetManipulationStrategy(ProfileRequestContext profileRequestContext) Get the bi-function for manipulating authorization code claims set.getAuthorizeCodeLifetime(ProfileRequestContext profileRequestContext) Get authz code lifetime.getDeniedUserInfoAttributes(ProfileRequestContext profileRequestContext) Get the set of attribute IDs which should be omitted from the UserInfo token.getDisplay(ProfileRequestContext profileRequestContext) Get the display parameter to use.getEncodedAttributes(ProfileRequestContext profileRequestContext) Get the set of attribute IDs which should be encoded in encrypted form into the authorization code and/or access/refresh tokens to enable recovery on the back-channel.getHttpRequestMethod(ProfileRequestContext profileRequestContext) Get the HTTP request method for an authentication request.getLoginHint(ProfileRequestContext profileRequestContext) Get the login_hint to use.getMaxAuthenticationAge(ProfileRequestContext profileRequestContext) Get the max authentication age.getRedirectUriOverride(ProfileRequestContext profileRequestContext) Get the redirect_uri override if set.getResponseMode(ProfileRequestContext profileRequestContext) Get the response_mode to use for authorization requests.getResponseModes(ProfileRequestContext profileRequestContext) Get the response_modes that are allowed to be used in authorization requests.getResponseType(ProfileRequestContext profileRequestContext) Get the response_type to use for authorization requests.getScopes(ProfileRequestContext profileRequestContext) Get the scopes to use in authentication requests.getUserInfoHttpRequestMethod(ProfileRequestContext profileRequestContext) Get the HTTP request method for the UserInfo request.booleanisAcrRequestAlwaysEssential(ProfileRequestContext profileRequestContext) Get whether all acr claim requests should be treated as Essential.booleanisEncodeConsentInTokens(ProfileRequestContext profileRequestContext) Get whether to encode consent in authorization code and access/refresh tokens.booleanisEncryptRequestObject(ProfileRequestContext profileRequestContext) Should the RequestObject (if configured) be encrypted?booleanisIncludeIssuerInResponse(ProfileRequestContext profileRequestContext) Get whether to include iss parameter in the authentication response.booleanisProxiedAuthnInstant(ProfileRequestContext profileRequestContext) Gets whether authentication results produced by use of this profile should carry the proxied assertion's auth_time from the id_token, rather than the current time.booleanisRequireAuthenticationRequest(ProfileRequestContext profileRequestContext) Get whether client is required to use OIDC authentication request vs plain OAuth2 authorization request.booleanisRequireDpopJkt(ProfileRequestContext profileRequestContext) Get whether client is required to include jkt parameter in authorization requests.booleanisRequirePushedAuthorizationRequest(ProfileRequestContext profileRequestContext) Get whether client is required to use pushed authorization requests.booleanisRetrieveUserInfoEndpointClaims(ProfileRequestContext profileRequestContext) Get whether to make a request to the UserInfo Endpoint to obtain authenticated End-User claims.booleanisSignRequestObject(ProfileRequestContext profileRequestContext) Should the RequestObject (if configured) be signed?booleanisTlsServerValidationSufficient(ProfileRequestContext profileRequestContext) Is TLS server validation of the token endpoint sufficient to verify an id_token without checking the id_token signature.booleanisUseRequestObject(ProfileRequestContext profileRequestContext) Should OpenID specific authentication request parameters should be passed in a single, self contained, JWT?voidsetAcrRequestAlwaysEssential(boolean flag) Set whether all acr claim requests should be treated as Essential.voidSet condition for whether all acr claim requests should be treated as Essential.voidsetAuthenticationContextClassReferenceTranslationStrategyLookupStrategy(Function<ProfileRequestContext, Function<Collection<String>, Collection<Principal>>> strategy) Set the lookup function to locate the Authentication Context Class Reference strategy used to translate between an inbound proxied OIDC ACR into an appropriate set of customPrincipalobjects to populate the subject.voidsetAuthenticationMethodsReferencesTranslationStrategyLookupStrategy(Function<ProfileRequestContext, Function<Collection<String>, Collection<Principal>>> strategy) Set the lookup function to locate the Authentication Methods References strategy used to translate between an inbound proxied OIDC AMR into an appropriate set of customPrincipalobjects to populate the subject.voidsetAuthorizationCodeClaimsSetManipulationStrategy(BiFunction<ProfileRequestContext, Map<String, Object>, Map<String, Object>> strategy) Set the bi-function for manipulating authorization code claims set.voidsetAuthorizationCodeClaimsSetManipulationStrategyLookupStrategy(Function<ProfileRequestContext, BiFunction<ProfileRequestContext, Map<String, Object>, Map<String, Object>>> strategy) Set a lookup strategy for the bi-function for manipulating authorization code claims set.voidsetAuthorizeCodeLifetime(Duration lifetime) Set the lifetime of authz code.voidSet a lookup strategy for the authz code lifetime.voidsetDeniedUserInfoAttributes(Collection<String> attributes) Set the set of attribute IDs which should be omitted from the UserInfo token.voidSet a lookup strategy for the set of attribute IDs which should be omitted from the UserInfo token.voidsetDisplay(String display) Set the display parameter value to use.voidSet the lookup strategy to determine the display parameter value for authorization requests.voidsetEncodeConsentInTokens(boolean flag) Set whether to encode consent in authorization code and access/refresh tokens.voidSet condition for whether to encode consent in authorization code and access/refresh tokens.voidsetEncodedAttributes(Collection<String> attributes) Set the set of attribute IDs which should be encoded in encrypted form into the authorization code and/or access/refresh tokens to enable recovery on the back-channel.voidSet a lookup strategy for the attribute IDs which should be encoded in encrypted form into the authorization code and/or access/refresh tokens to enable recovery on the back-channel.voidsetEncryptRequestObject(boolean flag) Set whether the RequestObject should be encrypted.voidSet the predicate to determine if the RequestObject should be encrypted.voidSet the HTTP request method for an authentication request.voidSet a lookup strategy to determine the HTTP request method for an authentication request.voidsetIncludeIssuerInResponse(boolean flag) Set whether to include iss parameter in the authentication response.voidSet condition for whether to include iss parameter in the authentication response.voidsetLoginHint(String fixedLoginHint) Set a fixed login_hint.voidSet the lookup strategy for setting the login_hint.voidSet the max authentication age.voidSet a lookup strategy for the max authentication age.voidsetProxiedAuthnInstant(boolean flag) Sets whether authentication results produced by use of this profile should carry the proxied assertion's auth_time from the id_token, rather than the current time.voidSet the override redirect_uri.voidSet the redirect_uri lookup strategy used to locate an overridden redirect.voidsetRequireAuthenticationRequest(boolean flag) Set whether client is required to use OIDC authentication request vs plain OAuth2 authorization request.voidSet condition for whether client is required to use OIDC authentication request vs plain OAuth2 authorization request.voidsetRequireAuthenticationRequestPredicateLookupStrategy(Function<ProfileRequestContext, Predicate<ProfileRequestContext>> strategy) Set the lookup strategy to determine whether client is required to use OIDC authentication request vs plain OAuth2 authorization request.voidsetRequireDpopJkt(boolean flag) Set whether client is required to include dpop_jkt in authorization request.voidsetRequireDpopJktPredicate(Predicate<ProfileRequestContext> condition) Set condition for whether client is required to include dpop_jkt in authorization request.voidsetRequirePushedAuthorizationRequest(boolean flag) Set whether client is required to use pushed authorization request.voidSet condition for whether client is required to use pushed authorization request.voidsetResponseMode(String responseMode) Set the response_mode to use for authorization requests.voidSet the lookup strategy to determine the response_mode for authorization requests.voidsetResponseModes(Collection<String> responseModes) Set the set of response modes that are allowed to be used in authorization request.voidSet a lookup strategy for the set of response modes that are allowed to be used in authorization request.voidsetResponseType(String responseType) Set the response_type to use for authentication requests.voidSet the lookup strategy to determine the response_type for authentication requests.voidsetRetrieveUserInfoEndpointClaims(boolean flag) Set whether to make a request to the UserInfo Endpoint to obtain authenticated End-User claims.voidSet condition for whether to make a request to the UserInfo Endpoint to obtain authenticated End-User claims.voidSet the scopes to use for authentication requests.voidsetScopesLookupStrategy(Function<ProfileRequestContext, Set<String>> strategy) Set the lookup strategy to determine the scopes to use for authentication requests.voidsetSignRequestObject(boolean flag) Set whether the RequestObject should be signed.voidSet the predicate to determine if the RequestObject should be signed.voidsetTlsServerValidationSufficient(boolean flag) Set whether TLS server validation alone is sufficient to verify the id_token (true), or whether the id_token's signature should be validated (false).voidSet the predicate to determine whether TLS server validation alone is sufficient to verify the id_token (true), or whether the id_token's signature should be validated (false).voidsetUseRequestObject(boolean flag) Set whether the authentication request parameters should be passed in a single, self contained, JWT.voidSet condition for whether the authentication request parameters should be passed in a single, self contained, JWT.voidSet the HTTP request method for an UserInfo request.voidSet a lookup strategy to determine the HTTP request method for an UserInfo request.Methods inherited from class net.shibboleth.oidc.profile.config.impl.AbstractOIDCSSOConfiguration
getAccessTokenClaimsSetManipulationStrategy, getAccessTokenLifetime, getAccessTokenType, getAdditionalAudiencesForIdToken, getAlwaysIncludedAttributes, getCustomRedirectUriValidationStrategy, getIDTokenLifetime, getIDTokenManipulationStrategy, getIssuer, getRefreshTokenChainLifetime, getRefreshTokenTimeout, getRefreshTokenType, isAllowPKCEPlain, isAlwaysIssueBearerAccessToken, isEncryptionOptional, isForcePKCE, isResolveAttributes, isStrictScopeValidation, setAccessTokenClaimsSetManipulationStrategy, setAccessTokenClaimsSetManipulationStrategyLookupStrategy, setAccessTokenLifetime, setAccessTokenLifetimeLookupStrategy, setAccessTokenType, setAccessTokenTypeLookupStrategy, setAdditionalAudiencesForIdToken, setAdditionalAudiencesForIdTokenLookupStrategy, setAllowPKCEPlain, setAllowPKCEPlainPredicate, setAlwaysIncludedAttributes, setAlwaysIncludedAttributesLookupStrategy, setAlwaysIssueBearerAccessToken, setAlwaysIssueBearerAccessTokenPredicate, setCustomRedirectUriValidationStrategy, setCustomRedirectUriValidationStrategyLookupStrategy, setEncryptionOptional, setEncryptionOptionalPredicate, setForcePKCE, setForcePKCEPredicate, setIDTokenLifetime, setIDTokenLifetimeLookupStrategy, setIDTokenManipulationStrategy, setIDTokenManipulationStrategyLookupStrategy, setIssuer, setIssuerLookupStrategy, setRefreshTokenChainLifetime, setRefreshTokenChainLifetimeLookupStrategy, setRefreshTokenTimeout, setRefreshTokenTimeoutLookupStrategy, setRefreshTokenType, setRefreshTokenTypeLookupStrategy, setResolveAttributes, setResolveAttributesPredicate, setStrictScopeValidation, setStrictScopeValidationPredicateMethods 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, getDpopProofClaimsValidator, getDpopProofNonceGenerator, getDpopProofSignatureValidationConfiguration, getPostAuthenticationFlows, getProxyCount, getTokenEndpointAuthMethod, getTokenEndpointAuthMethods, getUnregisteredClientPolicy, isForceAuthn, isRequireDpopProof, setAuthenticationFlows, setAuthenticationFlowsLookupStrategy, setClaimsValidator, setClaimsValidatorLookupStrategy, setClientCredential, setClientCredentialLookupStrategy, setClientId, setClientIdLookupStrategy, setDefaultAuthenticationMethods, setDefaultAuthenticationMethodsLookupStrategy, setDpopProofClaimsValidator, setDpopProofClaimsValidatorLookupStrategy, setDpopProofNonceGenerator, setDpopProofNonceGeneratorLookupStrategy, setDpopProofSignatureValidationConfiguration, setDpopProofSignatureValidationConfigurationLookupStrategy, setForceAuthn, setForceAuthnPredicate, setPostAuthenticationFlows, setPostAuthenticationFlowsLookupStrategy, setProxyCount, setProxyCountLookupStrategy, setRequireDpopProof, setRequireDpopProofPredicate, setTokenEndpointAuthMethod, setTokenEndpointAuthMethodLookupStrategy, setTokenEndpointAuthMethods, setTokenEndpointAuthMethodsLookupStrategy, setUnregisteredClientPolicy, setUnregisteredClientPolicyLookupStrategyMethods inherited from class net.shibboleth.oidc.profile.oauth2.config.impl.AbstractOAuth2InterceptorAwareProfileConfiguration
getMessageHandler, setMessageHandler, setMessageHandlerLookupStrategyMethods inherited from class net.shibboleth.idp.profile.config.AbstractInterceptorAwareProfileConfiguration
getInboundInterceptorFlows, getOutboundInterceptorFlows, setInboundInterceptorFlows, setInboundInterceptorFlowsLookupStrategy, setOutboundInterceptorFlows, setOutboundInterceptorFlowsLookupStrategyMethods inherited from class net.shibboleth.profile.config.AbstractConditionalProfileConfiguration
getActivationCondition, setActivationConditionMethods inherited from class net.shibboleth.profile.config.AbstractProfileConfiguration
equals, getDisallowedFeatures, getSecurityConfiguration, hashCode, isFeatureDisallowed, setDisallowedFeatures, setDisallowedFeaturesLookupStrategy, setSecurityConfiguration, setSecurityConfigurationLookupStrategyMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
doInitialize, ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentExceptionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, 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.profile.config.AttributeResolvingProfileConfiguration
isResolveAttributesMethods inherited from interface net.shibboleth.idp.authn.config.AuthenticationProfileConfiguration
getAuthenticationFlows, getDefaultAuthenticationMethods, getPostAuthenticationFlows, getProxyCount, isForceAuthn, isLocalMethods inherited from interface net.shibboleth.profile.config.ConditionalProfileConfiguration
getActivationConditionMethods inherited from interface net.shibboleth.shared.component.IdentifiedComponent
getIdMethods inherited from interface net.shibboleth.idp.profile.config.InterceptorAwareProfileConfiguration
getInboundInterceptorFlows, getOutboundInterceptorFlowsMethods inherited from interface net.shibboleth.oidc.profile.oauth2.config.OAuth2AccessTokenProducingProfileConfiguration
getAccessTokenClaimsSetManipulationStrategy, getAccessTokenLifetime, getAccessTokenType, isAlwaysIssueBearerAccessTokenMethods inherited from interface net.shibboleth.oidc.profile.oauth2.config.OAuth2ClientAuthenticableClientProfileConfiguration
getClientCredential, getClientId, getTokenEndpointAuthMethodMethods inherited from interface net.shibboleth.oidc.profile.oauth2.config.OAuth2ClientAuthenticableProfileConfiguration
getClaimsValidator, getTokenEndpointAuthMethods, getUnregisteredClientPolicyMethods inherited from interface net.shibboleth.oidc.profile.oauth2.config.OAuth2DPoPProofValidatingProfileConfiguration
getDpopProofClaimsValidator, getDpopProofNonceGenerator, getDpopProofSignatureValidationConfiguration, isRequireDpopProofMethods inherited from interface net.shibboleth.oidc.profile.oauth2.config.OAuth2FlowAwareProfileConfiguration
isAuthorizationCodeFlowEnabled, isImplicitFlowEnabled, isRefreshTokensEnabledMethods inherited from interface net.shibboleth.oidc.profile.oauth2.config.OAuth2RefreshTokenProducingProfileConfiguration
getRefreshTokenChainLifetime, getRefreshTokenTimeout, getRefreshTokenTypeMethods inherited from interface net.shibboleth.oidc.profile.oauth2.config.OAuth2ScopeValidatingProfileConfiguration
isStrictScopeValidationMethods inherited from interface net.shibboleth.oidc.profile.oauth2.config.OAuth2TokenEncryptionProfileConfiguration
isEncryptionOptionalMethods inherited from interface net.shibboleth.oidc.profile.config.OIDCFlowAwareProfileConfiguration
isHybridFlowEnabledMethods inherited from interface net.shibboleth.oidc.profile.config.OIDCIDTokenProducingProfileConfiguration
getAdditionalAudiencesForIdToken, getAlwaysIncludedAttributes, getIDTokenLifetime, getIDTokenManipulationStrategyMethods inherited from interface net.shibboleth.oidc.profile.config.OIDCSSOProfileConfiguration
getCustomRedirectUriValidationStrategy, isAllowPKCEPlain, isForcePKCEMethods inherited from interface net.shibboleth.profile.config.OverriddenIssuerProfileConfiguration
getIssuerMethods inherited from interface net.shibboleth.profile.config.ProfileConfiguration
getDisallowedFeatures, getSecurityConfiguration, isFeatureDisallowed
-
Field Details
-
PROFILE_COUNTER
OIDC authorization profile counter name.- See Also:
-
acrRequestAlwaysEssentialPredicate
Whether all acr claim requests should be treated as Essential. -
encodeConsentInTokensPredicate
Whether to encode consent in authorization code and access/refresh tokens. -
authorizeCodeLifetimeLookupStrategy
Lookup function to supply lifetime of authz code. -
encodedAttributesLookupStrategy
Lookup function to supply attribute IDs to embed in authorization code or access token. -
useRequestObjectPredicate
Whether to encode authentication request parameters inside a JWT request object . -
signRequestObjectPredicate
Predicate used to determine if the generated request object should be signed. Default returns true. -
encryptRequestObjectPredicate
Predicate used to determine if the generated request object should be encrypted. Default returns false. -
deniedUserInfoAttributesLookupStrategy
Lookup function to supply attribute IDs to omit from UserInfo token. -
includeIssuerInResponsePredicate
Whether to include iss parameter in the authentication response. -
retrieveUserInfoEndpointClaims
Whether to make a UserInfo Endpoint request for End-User claims. -
redirectUriOverrideLookupStrategy
An override to specify a specific redirect_uri to use over the normally computed one. -
responseTypeLookupStrategy
Lookup function to retrieve the response_type. -
scopesLookupStrategy
Lookup function to retrieve the scopes requested during authentication. -
acrTranslationStrategyLookupStrategy
@Nonnull private Function<ProfileRequestContext,Function<Collection<String>, acrTranslationStrategyLookupStrategyCollection<Principal>>> Lookup function to supply the strategy function for translating OIDC ACR claims. -
amrTranslationStrategyLookupStrategy
@Nonnull private Function<ProfileRequestContext,Function<Collection<String>, amrTranslationStrategyLookupStrategyCollection<Principal>>> Lookup function to supply the strategy function for translating OIDC ACR claims. -
proxiedAuthnInstantPredicate
Whether authentication results should carry the proxied auth_time in the id_token. -
httpRequestMethodLookupStrategy
Which HTTP method should be used to issue OIDC authentication requests. Supported values are POST and GET. The default is GET. -
authorizationCodeClaimsSetManipulationStrategyLookupStrategy
@Nonnull private Function<ProfileRequestContext,BiFunction<ProfileRequestContext, authorizationCodeClaimsSetManipulationStrategyLookupStrategyMap<String, Object>, Map<String, Object>>> Lookup function to supply strategy bi-function for manipulating authorization code claims set. -
maxAuthenticationAgeLookupStrategy
Lookup function to determine the max_age of an authentication request. -
loginHintLookupStrategy
Lookup function to determine the login_hint of an authentication request. -
userInfoHttpRequestMethodLookupStrategy
Which HTTP method should be used to issue the UserInfo requests. Supported values are POST and GET. The default is GET. -
responseModeLookupStrategy
Lookup function to override the default response_mode for a given response_type. -
tlsServerValidationOnlyPredicate
Whether TLS server validation alone is sufficient to verify the id_token (true), or whether the id_token's signature should be validated (false). The default is false, the id_token signature should be validated. -
displayLookupStrategy
Lookup function to determine the optional display parameter value of an authentication request. -
responseModesLookupStrategy
Lookup function to supply the response_modes that are allowed to be used in authorization request. -
requireAuthenticationRequestPredicateLookupStrategy
@Nonnull private Function<ProfileRequestContext,Predicate<ProfileRequestContext>> requireAuthenticationRequestPredicateLookupStrategyWhether client is required to use OIDC authentication request vs plain OAuth2 authorization request. -
requireDpopJktPredicate
Whether client is required to include dpop_jkt in authorization request. -
requirePushedAuthorizationRequestPredicate
Whether client is required to use pushed authorization request.
-
-
Constructor Details
-
DefaultOIDCAuthorizationConfiguration
public DefaultOIDCAuthorizationConfiguration()Constructor. -
DefaultOIDCAuthorizationConfiguration
Creates a new configuration instance.- Parameters:
profileId- Unique profile identifier.
-
-
Method Details
-
isAcrRequestAlwaysEssential
Get whether all acr claim requests should be treated as Essential.- Specified by:
isAcrRequestAlwaysEssentialin interfaceOIDCAuthorizationConfiguration- Parameters:
profileRequestContext- profile request context- Returns:
- whether all acr claim requests should be treated as Essential
-
setAcrRequestAlwaysEssential
public void setAcrRequestAlwaysEssential(boolean flag) Set whether all acr claim requests should be treated as Essential.- Parameters:
flag- flag to set
-
setAcrRequestAlwaysEssentialPredicate
public void setAcrRequestAlwaysEssentialPredicate(@Nonnull Predicate<ProfileRequestContext> condition) Set condition for whether all acr claim requests should be treated as Essential.- Parameters:
condition- condition to set
-
isUseRequestObject
Should OpenID specific authentication request parameters should be passed in a single, self contained, JWT?- Specified by:
isUseRequestObjectin interfaceOIDCAuthenticationProfileConfiguration- Parameters:
profileRequestContext- the profile request context- Returns:
- whether authentication request parameters should be passed in a single, self contained, JWT
-
setUseRequestObject
public void setUseRequestObject(boolean flag) Set whether the authentication request parameters should be passed in a single, self contained, JWT.- Parameters:
flag- flag to set
-
setUseRequestObjectPredicate
Set condition for whether the authentication request parameters should be passed in a single, self contained, JWT.- Parameters:
condition- condition to set
-
isEncodeConsentInTokens
Get whether to encode consent in authorization code and access/refresh tokens.- Specified by:
isEncodeConsentInTokensin interfaceOIDCAuthorizationConfiguration- Parameters:
profileRequestContext- profile request context- Returns:
- whether to encode consent in authorization code and access/refresh tokens
-
setEncodeConsentInTokens
public void setEncodeConsentInTokens(boolean flag) Set whether to encode consent in authorization code and access/refresh tokens.- Parameters:
flag- flag to set
-
setEncodeConsentInTokensPredicate
Set condition for whether to encode consent in authorization code and access/refresh tokens.- Parameters:
condition- condition to set
-
isRetrieveUserInfoEndpointClaims
public boolean isRetrieveUserInfoEndpointClaims(@Nonnull ProfileRequestContext profileRequestContext) Get whether to make a request to the UserInfo Endpoint to obtain authenticated End-User claims.- Specified by:
isRetrieveUserInfoEndpointClaimsin interfaceOIDCAuthenticationRelyingPartyProfileConfiguration- Parameters:
profileRequestContext- current profile request context- Returns:
- whether to make a request to the UserInfo Endpoint
-
setRetrieveUserInfoEndpointClaims
public void setRetrieveUserInfoEndpointClaims(boolean flag) Set whether to make a request to the UserInfo Endpoint to obtain authenticated End-User claims.- Parameters:
flag- flag to set- Since:
- 2.2.0
-
setRetrieveUserInfoEndpointClaims
Set condition for whether to make a request to the UserInfo Endpoint to obtain authenticated End-User claims.- Parameters:
condition- condition to set- Since:
- 2.2.0
-
isSignRequestObject
Should the RequestObject (if configured) be signed?- Specified by:
isSignRequestObjectin interfaceOIDCAuthenticationRelyingPartyProfileConfiguration- Parameters:
profileRequestContext- the profile request context- Returns:
- true iff the RequestObject should be signed, false otherwise.
-
setSignRequestObject
public void setSignRequestObject(boolean flag) Set whether the RequestObject should be signed.- Parameters:
flag- flag to set- Since:
- 2.2.0
-
setSignRequestObjectPredicate
Set the predicate to determine if the RequestObject should be signed.- Parameters:
condition- the condition- Since:
- 2.2.0
-
isEncryptRequestObject
Should the RequestObject (if configured) be encrypted?- Specified by:
isEncryptRequestObjectin interfaceOIDCAuthenticationRelyingPartyProfileConfiguration- Parameters:
profileRequestContext- the profile request context- Returns:
- true iff the RequestObject should be encrypted, false otherwise.
-
setEncryptRequestObject
public void setEncryptRequestObject(boolean flag) Set whether the RequestObject should be encrypted.- Parameters:
flag- flag to set- Since:
- 2.2.0
-
setEncryptRequestObjectPredicate
Set the predicate to determine if the RequestObject should be encrypted.- Parameters:
condition- the condition- Since:
- 2.2.0
-
setRedirectUriOverrideLookupStrategy
public void setRedirectUriOverrideLookupStrategy(@Nonnull Function<ProfileRequestContext, String> strategy) Set the redirect_uri lookup strategy used to locate an overridden redirect.- Parameters:
strategy- the strategy to use.- Since:
- 2.2.0
-
setRedirectUriOverride
Set the override redirect_uri.- Parameters:
uri- the redirect_uri- Since:
- 2.2.0
-
getRedirectUriOverride
Get the redirect_uri override if set.- Specified by:
getRedirectUriOverridein interfaceOIDCAuthenticationRelyingPartyProfileConfiguration- Parameters:
profileRequestContext- profile request context- Returns:
- the redirect_uri override
-
getAuthorizeCodeLifetime
@Positive @Nonnull public Duration getAuthorizeCodeLifetime(@Nullable ProfileRequestContext profileRequestContext) Get authz code lifetime.Defaults to 5 minutes.
- Specified by:
getAuthorizeCodeLifetimein interfaceOAuth2AuthorizationCodeProducingProfileConfiguration- Parameters:
profileRequestContext- profile request context- Returns:
- authz code lifetime
-
setAuthorizeCodeLifetime
Set the lifetime of authz code.- Parameters:
lifetime- lifetime of authz code
-
setAuthorizeCodeLifetimeLookupStrategy
public void setAuthorizeCodeLifetimeLookupStrategy(@Nonnull Function<ProfileRequestContext, Duration> strategy) Set a lookup strategy for the authz code lifetime.- Parameters:
strategy- lookup strategy
-
setHttpRequestMethodLookupStrategy
public void setHttpRequestMethodLookupStrategy(@Nonnull Function<ProfileRequestContext, String> strategy) Set a lookup strategy to determine the HTTP request method for an authentication request.- Parameters:
strategy- the strategy to set.
-
setHttpRequestMethod
public void setHttpRequestMethod(@Nullable OAuth2AuthorizationProfileConfiguration.HttpRequestMethod method) Set the HTTP request method for an authentication request.- Parameters:
method- the HTTP method to set, either POST or GET.
-
getHttpRequestMethod
public OAuth2AuthorizationProfileConfiguration.HttpRequestMethod getHttpRequestMethod(@Nullable ProfileRequestContext profileRequestContext) Get the HTTP request method for an authentication request.- Specified by:
getHttpRequestMethodin interfaceOAuth2AuthorizationProfileConfiguration- Parameters:
profileRequestContext- profile request context- Returns:
- the HTTP request method
-
getEncodedAttributes
@Nonnull @NonnullElements @NotLive public Set<String> getEncodedAttributes(@Nullable ProfileRequestContext profileRequestContext) Get the set of attribute IDs which should be encoded in encrypted form into the authorization code and/or access/refresh tokens to enable recovery on the back-channel.- Specified by:
getEncodedAttributesin interfaceOIDCAuthorizationConfiguration- Parameters:
profileRequestContext- profile request context- Returns:
- the attribute IDs to encode
-
setEncodedAttributes
Set the set of attribute IDs which should be encoded in encrypted form into the authorization code and/or access/refresh tokens to enable recovery on the back-channel.- Parameters:
attributes- the attribute IDs to encode
-
setEncodedAttributesLookupStrategy
public void setEncodedAttributesLookupStrategy(@Nonnull Function<ProfileRequestContext, Set<String>> strategy) Set a lookup strategy for the attribute IDs which should be encoded in encrypted form into the authorization code and/or access/refresh tokens to enable recovery on the back-channel.- Parameters:
strategy- lookup strategy
-
getDeniedUserInfoAttributes
@Nonnull @NonnullElements @NotLive public Set<String> getDeniedUserInfoAttributes(@Nullable ProfileRequestContext profileRequestContext) Get the set of attribute IDs which should be omitted from the UserInfo token.Default behavior is to include all claims, but omiited claims also affect the set that may need to be embedded for recovery into the access/refresh tokens.
- Specified by:
getDeniedUserInfoAttributesin interfaceOIDCAuthorizationConfiguration- Parameters:
profileRequestContext- profile request context- Returns:
- the attribute IDs to omit from UserInfo token
-
setDeniedUserInfoAttributes
Set the set of attribute IDs which should be omitted from the UserInfo token.Default behavior is to include all claims, but omiited claims also affect the set that may need to be embedded for recovery into the access/refresh tokens.
- Parameters:
attributes- the attribute IDs to omit from UserInfo token
-
setDeniedUserInfoAttributesLookupStrategy
public void setDeniedUserInfoAttributesLookupStrategy(@Nonnull Function<ProfileRequestContext, Set<String>> strategy) Set a lookup strategy for the set of attribute IDs which should be omitted from the UserInfo token.- Parameters:
strategy- lookup strategy
-
isIncludeIssuerInResponse
Get whether to include iss parameter in the authentication response.- Specified by:
isIncludeIssuerInResponsein interfaceOIDCAuthorizationConfiguration- Parameters:
profileRequestContext- profile request context- Returns:
- whether to include iss parameter in the authentication response
-
setIncludeIssuerInResponse
public void setIncludeIssuerInResponse(boolean flag) Set whether to include iss parameter in the authentication response.- Parameters:
flag- flag to set- Since:
- 2.1.0
-
setIncludeIssuerInResponsePredicate
public void setIncludeIssuerInResponsePredicate(@Nonnull Predicate<ProfileRequestContext> condition) Set condition for whether to include iss parameter in the authentication response.- Parameters:
condition- condition to set- Since:
- 2.1.0
-
setResponseTypeLookupStrategy
Set the lookup strategy to determine the response_type for authentication requests.- Parameters:
strategy- the strategy to use- Since:
- 2.2.0
-
setResponseType
Set the response_type to use for authentication requests.- Parameters:
responseType- the response_type to use- Since:
- 2.2.0
-
getResponseType
Get the response_type to use for authorization requests.- Specified by:
getResponseTypein interfaceOAuth2AuthorizationProfileConfiguration- Parameters:
profileRequestContext- the profile request context- Returns:
- the response_type
-
getAuthorizationCodeClaimsSetManipulationStrategy
@Nullable public BiFunction<ProfileRequestContext,Map<String, getAuthorizationCodeClaimsSetManipulationStrategyObject>, Map<String, Object>> (@Nullable ProfileRequestContext profileRequestContext) Get the bi-function for manipulating authorization code claims set.- Specified by:
getAuthorizationCodeClaimsSetManipulationStrategyin interfaceOAuth2AuthorizationCodeProducingProfileConfiguration- Parameters:
profileRequestContext- profile request context- Returns:
- the bi-function for manipulating authorization code claims set
-
setAuthorizationCodeClaimsSetManipulationStrategy
public void setAuthorizationCodeClaimsSetManipulationStrategy(@Nullable BiFunction<ProfileRequestContext, Map<String, Object>, Map<String, Object>> strategy) Set the bi-function for manipulating authorization code claims set.- Parameters:
strategy- bi-function for manipulating authorization code claims set- Since:
- 2.1.0
-
setAuthorizationCodeClaimsSetManipulationStrategyLookupStrategy
public void setAuthorizationCodeClaimsSetManipulationStrategyLookupStrategy(@Nonnull Function<ProfileRequestContext, BiFunction<ProfileRequestContext, Map<String, Object>, Map<String, Object>>> strategy) Set a lookup strategy for the bi-function for manipulating authorization code claims set.- Parameters:
strategy- lookup strategy- Since:
- 2.1.0
-
setScopesLookupStrategy
Set the lookup strategy to determine the scopes to use for authentication requests.- Parameters:
strategy- the strategy to use- Since:
- 2.2.0
-
setScopes
Set the scopes to use for authentication requests.- Parameters:
scopes- the scopes- Since:
- 2.2.0
-
getScopes
Get the scopes to use in authentication requests.- Specified by:
getScopesin interfaceOAuth2AuthorizationProfileConfiguration- Parameters:
profileRequestContext- the profile request context- Returns:
- the scopes
-
setAuthenticationMethodsReferencesTranslationStrategyLookupStrategy
public void setAuthenticationMethodsReferencesTranslationStrategyLookupStrategy(@Nonnull Function<ProfileRequestContext, Function<Collection<String>, Collection<Principal>>> strategy) Set the lookup function to locate the Authentication Methods References strategy used to translate between an inbound proxied OIDC AMR into an appropriate set of customPrincipalobjects to populate the subject.- Parameters:
strategy- translation function- Since:
- 2.2.0
-
getAuthenticationMethodsReferencesTranslationStrategy
@Nullable public Function<Collection<String>,Collection<Principal>> getAuthenticationMethodsReferencesTranslationStrategy(@Nullable ProfileRequestContext prc) Get the function used to translate AMRs in the id_token into an appropriate set of customPrincipalobjects to populate into the subject.- Specified by:
getAuthenticationMethodsReferencesTranslationStrategyin interfaceOIDCAuthenticationProfileConfiguration- Parameters:
prc- current profile request context- Returns:
- translation function
-
setAuthenticationContextClassReferenceTranslationStrategyLookupStrategy
public void setAuthenticationContextClassReferenceTranslationStrategyLookupStrategy(@Nullable Function<ProfileRequestContext, Function<Collection<String>, Collection<Principal>>> strategy) Set the lookup function to locate the Authentication Context Class Reference strategy used to translate between an inbound proxied OIDC ACR into an appropriate set of customPrincipalobjects to populate the subject.- Parameters:
strategy- translation function- Since:
- 2.2.0
-
getAuthenticationContextClassReferenceTranslationStrategy
@Nullable public Function<Collection<String>,Collection<Principal>> getAuthenticationContextClassReferenceTranslationStrategy(@Nullable ProfileRequestContext prc) Get the function used to translate ACRs in the id_token into an appropriate set of customPrincipalobjects to populate into the subject.- Specified by:
getAuthenticationContextClassReferenceTranslationStrategyin interfaceOIDCAuthenticationProfileConfiguration- Parameters:
prc- current profile request context- Returns:
- translation function
-
isProxiedAuthnInstant
Gets whether authentication results produced by use of this profile should carry the proxied assertion's auth_time from the id_token, rather than the current time.Defaults to true.
- Specified by:
isProxiedAuthnInstantin interfaceOIDCAuthenticationRelyingPartyProfileConfiguration- Parameters:
profileRequestContext- current profile request context- Returns:
- whether to proxy across the inbound auth_time
-
setProxiedAuthnInstant
public void setProxiedAuthnInstant(boolean flag) Sets whether authentication results produced by use of this profile should carry the proxied assertion's auth_time from the id_token, rather than the current time.- Parameters:
flag- flag to set- Since:
- 2.2.0
-
getMaxAuthenticationAge
@Nullable public Duration getMaxAuthenticationAge(@Nullable ProfileRequestContext profileRequestContext) Get the max authentication age.- Specified by:
getMaxAuthenticationAgein interfaceOIDCAuthenticationProfileConfiguration- Parameters:
profileRequestContext- profile request context- Returns:
- max authentication age
-
setMaxAuthenticationAge
Set the max authentication age.- Parameters:
age- the max authentication age- Since:
- 2.2.0
-
setMaxAuthenticationAgeLookupStrategy
public void setMaxAuthenticationAgeLookupStrategy(@Nonnull Function<ProfileRequestContext, Duration> strategy) Set a lookup strategy for the max authentication age.- Parameters:
strategy- lookup strategy- Since:
- 2.2.0
-
setLoginHintLookupStrategy
Set the lookup strategy for setting the login_hint.- Parameters:
strategy- lookup strategy- Since:
- 2.2.0
-
setLoginHint
Set a fixed login_hint. Will apply to all requests.- Parameters:
fixedLoginHint- the login_hint- Since:
- 2.2.0
-
getLoginHint
Get the login_hint to use.- Specified by:
getLoginHintin interfaceOIDCAuthenticationProfileConfiguration- Parameters:
profileRequestContext- profile request context- Returns:
- the login_hint to use
-
setUserInfoHttpRequestMethodLookupStrategy
public void setUserInfoHttpRequestMethodLookupStrategy(@Nonnull Function<ProfileRequestContext, String> strategy) Set a lookup strategy to determine the HTTP request method for an UserInfo request.- Parameters:
strategy- the strategy to set.- Since:
- 2.2.0
-
setUserInfoHttpRequestMethod
public void setUserInfoHttpRequestMethod(@Nullable OAuth2AuthorizationProfileConfiguration.HttpRequestMethod method) Set the HTTP request method for an UserInfo request.- Parameters:
method- the HTTP method to set, either POST or GET.- Since:
- 2.2.0
-
getUserInfoHttpRequestMethod
@Nullable public OAuth2AuthorizationProfileConfiguration.HttpRequestMethod getUserInfoHttpRequestMethod(@Nullable ProfileRequestContext profileRequestContext) Get the HTTP request method for the UserInfo request. Both GET and POST are supported.- Specified by:
getUserInfoHttpRequestMethodin interfaceOIDCAuthenticationRelyingPartyProfileConfiguration- Parameters:
profileRequestContext- current profile request context- Returns:
- the UserInfo HTTP request method
-
setResponseModeLookupStrategy
Set the lookup strategy to determine the response_mode for authorization requests.- Parameters:
strategy- the strategy to use- Since:
- 2.2.0
-
setResponseMode
Set the response_mode to use for authorization requests.- Parameters:
responseMode- the response_mode to use- Since:
- 2.2.0
-
getResponseMode
Get the response_mode to use for authorization requests.- Specified by:
getResponseModein interfaceOAuth2AuthorizationProfileConfiguration- Parameters:
profileRequestContext- the profile request context- Returns:
- the response_mode
-
setTlsServerValidationSufficient
public void setTlsServerValidationSufficient(boolean flag) Set whether TLS server validation alone is sufficient to verify the id_token (true), or whether the id_token's signature should be validated (false).- Parameters:
flag- flag to set- Since:
- 2.2.0
-
setTlsServerValidationSufficient
Set the predicate to determine whether TLS server validation alone is sufficient to verify the id_token (true), or whether the id_token's signature should be validated (false).- Parameters:
condition- condition to set- Since:
- 2.2.0
-
isTlsServerValidationSufficient
public boolean isTlsServerValidationSufficient(@Nullable ProfileRequestContext profileRequestContext) Is TLS server validation of the token endpoint sufficient to verify an id_token without checking the id_token signature.- Specified by:
isTlsServerValidationSufficientin interfaceOIDCAuthenticationRelyingPartyProfileConfiguration- Parameters:
profileRequestContext- profile request context- Returns:
- true if TLS server validation is required to verify the id_token. False if the token signature should be validated.
-
setDisplay
Set the display parameter value to use.- Parameters:
display- the display parameter value- Since:
- 3.1.0
-
setDisplayLookupStrategy
Set the lookup strategy to determine the display parameter value for authorization requests.- Parameters:
strategy- the strategy to use- Since:
- 3.1.0
-
getDisplay
Get the display parameter to use.- Specified by:
getDisplayin interfaceOIDCAuthenticationProfileConfiguration- Parameters:
profileRequestContext- profile request context- Returns:
- the display parameter value
-
getResponseModes
@Nonnull @NonnullElements @NotLive public Set<String> getResponseModes(@Nullable ProfileRequestContext profileRequestContext) Get the response_modes that are allowed to be used in authorization requests.- Specified by:
getResponseModesin interfaceOAuth2AuthorizationProfileConfiguration- Parameters:
profileRequestContext- the profile request context- Returns:
- the response_mode
-
setResponseModes
Set the set of response modes that are allowed to be used in authorization request.- Parameters:
responseModes- the allowed response modes- Since:
- 3.1.0
-
setResponseModesLookupStrategy
public void setResponseModesLookupStrategy(@Nonnull Function<ProfileRequestContext, Set<String>> strategy) Set a lookup strategy for the set of response modes that are allowed to be used in authorization request.- Parameters:
strategy- lookup strategy- Since:
- 3.1.0
-
isRequireAuthenticationRequest
public boolean isRequireAuthenticationRequest(@Nullable ProfileRequestContext profileRequestContext) Get whether client is required to use OIDC authentication request vs plain OAuth2 authorization request.- Specified by:
isRequireAuthenticationRequestin interfaceOAuth2AuthorizationProfileConfiguration- Parameters:
profileRequestContext- profile request context- Returns:
- whether client is required to use OIDC authentication request vs plain OAuth2 authorization request
-
setRequireAuthenticationRequest
public void setRequireAuthenticationRequest(boolean flag) Set whether client is required to use OIDC authentication request vs plain OAuth2 authorization request.- Parameters:
flag- flag to set- Since:
- 3.1.0
-
setRequireAuthenticationRequestPredicate
public void setRequireAuthenticationRequestPredicate(@Nonnull Predicate<ProfileRequestContext> condition) Set condition for whether client is required to use OIDC authentication request vs plain OAuth2 authorization request.- Parameters:
condition- condition to set- Since:
- 3.1.0
-
setRequireAuthenticationRequestPredicateLookupStrategy
public void setRequireAuthenticationRequestPredicateLookupStrategy(@Nonnull Function<ProfileRequestContext, Predicate<ProfileRequestContext>> strategy) Set the lookup strategy to determine whether client is required to use OIDC authentication request vs plain OAuth2 authorization request.- Parameters:
strategy- the strategy to use- Since:
- 3.1.0
-
isRequireDpopJkt
Get whether client is required to include jkt parameter in authorization requests.- Specified by:
isRequireDpopJktin interfaceOAuth2AuthorizationProfileConfiguration- Parameters:
profileRequestContext- the profile request context- Returns:
- whether client is required to include jkt parameter in authorization requests
-
setRequireDpopJkt
public void setRequireDpopJkt(boolean flag) Set whether client is required to include dpop_jkt in authorization request.- Parameters:
flag- flag to set- Since:
- 3.2.0
-
setRequireDpopJktPredicate
Set condition for whether client is required to include dpop_jkt in authorization request.- Parameters:
condition- condition to set- Since:
- 3.2.0
-
isRequirePushedAuthorizationRequest
public boolean isRequirePushedAuthorizationRequest(@Nullable ProfileRequestContext profileRequestContext) Get whether client is required to use pushed authorization requests. If enabled, then the client needs to call pushed authorization endpoint before authorization endpoint in order to fetch the request_uri to be included in the authorization request.- Specified by:
isRequirePushedAuthorizationRequestin interfaceOAuth2AuthorizationProfileConfiguration- Parameters:
profileRequestContext- the profile request context- Returns:
- whether client is required to use pushed authorization requests.
-
setRequirePushedAuthorizationRequest
public void setRequirePushedAuthorizationRequest(boolean flag) Set whether client is required to use pushed authorization request.- Parameters:
flag- flag to set- Since:
- 3.2.0
-
setRequirePushedAuthorizationRequestPredicate
public void setRequirePushedAuthorizationRequestPredicate(@Nonnull Predicate<ProfileRequestContext> condition) Set condition for whether client is required to use pushed authorization request.- Parameters:
condition- condition to set- Since:
- 3.2.0
-