Interface DuoOIDCIntegration
-
- All Superinterfaces:
net.shibboleth.idp.authn.principal.PrincipalSupportingComponent
- All Known Implementing Classes:
DefaultDuoOIDCIntegration
public interface DuoOIDCIntegration extends net.shibboleth.idp.authn.principal.PrincipalSupportingComponentInterface to a particular Duo OIDC integration point. In part replaces OIDC metadata as that is not supported by Duo.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<String>getAllowedOrigins()Get a list of origins that allowed to appear in computed redirect URIs.StringgetAPIHost()Get the name of the API host to contact.StringgetAuthorizeEndpoint()Get the path of the authorization endpoint.StringgetClientId()Get the clientId key.StringgetHealthCheckEndpoint()Get the path of the health check endpoint.StringgetRedirectURI()Get the runtime redirectURI to direct the client to after authorisation.StringgetRegisteredRedirectURI()Get the static pre-registered redirect_uri.StringgetSecretKey()Get the secret key.StringgetTokenEndpoint()Get the path of the token endpoint.booleanisRedirectURIPreregistered()Has a redirectURI been pre-registered i.e.voidsetRedirectURIIfAbsent(String computedRedirectURI)Set the redirectURI from one in a thread-safe way.
-
-
-
Method Detail
-
getAPIHost
@Nonnull @NotEmpty String getAPIHost()
Get the name of the API host to contact.- Returns:
- name of API host
-
getClientId
@Nonnull @NotEmpty String getClientId()
Get the clientId key.- Returns:
- the integration key
-
getAllowedOrigins
@Nonnull @NotLive @Unmodifiable Set<String> getAllowedOrigins()
Get a list of origins that allowed to appear in computed redirect URIs.- Returns:
- a set of allowed origins. Never null but could be empty.
-
setRedirectURIIfAbsent
void setRedirectURIIfAbsent(@Nonnull @NotEmpty String computedRedirectURI)
Set the redirectURI from one in a thread-safe way.
This is a sate changing operation, and should be thread-safe in its operation, as the integration will be shared amongst threads e.g. syncrhonize the method call.
- Parameters:
computedRedirectURI- the runtime computed redirectURI.
-
getRedirectURI
@Nullable String getRedirectURI()
Get the runtime redirectURI to direct the client to after authorisation.- Returns:
- the redirectURI
-
getRegisteredRedirectURI
@Nullable String getRegisteredRedirectURI()
Get the static pre-registered redirect_uri.- Returns:
- the pre-registered redirect_uri.
-
isRedirectURIPreregistered
@Nullable boolean isRedirectURIPreregistered()
Has a redirectURI been pre-registered i.e. set in the properties file.- Returns:
- true iff
getRegisteredRedirectURI()is not null, false otherwise.
-
getHealthCheckEndpoint
@Nonnull @NotEmpty String getHealthCheckEndpoint()
Get the path of the health check endpoint.- Returns:
- the path of the health check endpoint
-
getAuthorizeEndpoint
@Nonnull @NotEmpty String getAuthorizeEndpoint()
Get the path of the authorization endpoint.- Returns:
- the path of the authorization endpoint
-
-