Package com.pingidentity.sdk.clientauth
Interface ClientSideAuthenticator
- All Superinterfaces:
ConfigurablePlugin,DescribablePlugin,Plugin
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionauthenticate(ClientSideContext clientSideContext) Perform authentication based on the information provided in the request.default Optional<Class<? extends ClientSideAuthenticationAction>>getClientSideAttributes(ClientSideContext clientSideContext) These attributes will be added to the API response or the template that the associated adapter is rendering.The names of the JavaScript files that should be included on adapters page when this client side authenticator is enabled.booleanisClientSideRequest(ClientSideContext clientSideContext) Determine if this request is a client side request that should be handled by this authenticator.default booleanMethods inherited from interface com.pingidentity.sdk.ConfigurablePlugin
configureMethods inherited from interface com.pingidentity.sdk.DescribablePlugin
getPluginDescriptor
-
Field Details
-
AUTHENTICATOR_USERNAME_ATTRIBUTE
- See Also:
-
-
Method Details
-
getJavaScriptFiles
The names of the JavaScript files that should be included on adapters page when this client side authenticator is enabled. These can be filenames, relative paths or full URLsFor filenames, the javascript files must be placed in the folder:
/server/default/conf/template/assets/scripts/authenticators Relative paths will use
/server/default/conf/template as the base folder. Full URLs can also be provided.
- Returns:
- - A list of the javascript file. Null if no javascript is needed.
-
getClientSideAttributes
These attributes will be added to the API response or the template that the associated adapter is rendering. Include anything here that the client side needs as context for authentication.- Parameters:
clientSideContext- - Information on the current request.- Returns:
- - A map of attributes to add to the response or template.
-
authenticate
Perform authentication based on the information provided in the request. If this authentication results in a username for the user. The attributeAUTHENTICATOR_USERNAME_ATTRIBUTEshould be added to the resulting attribute map with the username value.- Parameters:
clientSideContext- Information on the current request.- Returns:
- - An AuthenticateResult object that contains the result of the authentication and
optionally an
AttributeMapcontaining user attributes.
-
isClientSideRequest
Determine if this request is a client side request that should be handled by this authenticator.- Parameters:
clientSideContext- Information on the current request.- Returns:
- - true if this is a request that should be authenticated by this class, false otherwise.
-
supportsAuthnApi
default boolean supportsAuthnApi() -
getAuthnApiAction
-