Interface DuoOIDCIntegration
- All Superinterfaces:
PrincipalSupportingComponent
- All Known Subinterfaces:
DynamicDuoOIDCIntegration
- All Known Implementing Classes:
DefaultDuoOIDCIntegration,SimpleDuoOIDCIntegration
Interface to a particular Duo OIDC integration point. In part replaces
OIDC metadata, as that is not supported by Duo. Implementations must override
the equality and hashcode methods appropriately (e.g., using the clientId as
the object's identity).
-
Method Summary
Modifier and TypeMethodDescriptionGets the set of allowable factors to enforce during validation.Get the name of the API host to contact.Get the path of the authorization endpoint.Get the clientId key.default Function<ProfileRequestContext,Collection<Principal>> Get a context to principal mapping strategy for mapping context information into principal collections to insert intoSubject.Get the path of the health check endpoint.Get the runtime redirectURI to direct the client to after authorisation.Get the secret key.Get the path of the token endpoint.default booleanGets whether the integration is suitable for use as a passwordless single factor.Methods inherited from interface net.shibboleth.idp.authn.principal.PrincipalSupportingComponent
getSupportedPrincipals
-
Method Details
-
getAPIHost
Get the name of the API host to contact.- Returns:
- name of API host
-
getClientId
Get the clientId key.- Returns:
- the integration key
-
getSecretKey
Get the secret key.- Returns:
- the secret key
-
getRedirectURI
Get the runtime redirectURI to direct the client to after authorisation.- Returns:
- the redirectURI
-
getHealthCheckEndpoint
Get the path of the health check endpoint.- Returns:
- the path of the health check endpoint
-
getAuthorizeEndpoint
Get the path of the authorization endpoint.- Returns:
- the path of the authorization endpoint
-
getTokenEndpoint
Get the path of the token endpoint.- Returns:
- the path of the token endpoint;
-
isPasswordless
default boolean isPasswordless()Gets whether the integration is suitable for use as a passwordless single factor.Defaults to false.
- Returns:
- true iff the integration limits methods to passwordless
- Since:
- 2.1.0
-
getAllowedFactors
Gets the set of allowable factors to enforce during validation.- Returns:
- allowable factors, or null for any
- Since:
- 2.1.0
-
getContextToPrincipalMappingStrategy
@Nullable default Function<ProfileRequestContext,Collection<Principal>> getContextToPrincipalMappingStrategy()Get a context to principal mapping strategy for mapping context information into principal collections to insert intoSubject.- Returns:
- the mapping hook or null
- Since:
- 2.1.0
-