Interface AuthenticatorPluginDescriptor<C extends Configuration>
- All Superinterfaces:
CanSupportHaapi,PluginDescriptor<C>
An Authenticator Plugin provides the necessary functionality to authenticate users and, optionally, register new users and serve related, anonymous pages.
To let the server find an implementation of this plugin descriptor, create a file within the plugin jar at
META-INF/services/se.curity.identityserver.sdk.plugin.descriptor.AuthenticatorPluginDescriptor.
This file must be a text file containing the name(s) of the implementation(s) of this interface, one per line.
- Since:
- 2.1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault RequestHandlerSetDefines the cross-site policy.default Map<String,Class<? extends AnonymousRequestHandler<?>>> Returns a Map from the anonymous handler's root URI path to the type of theAnonymousRequestHandlerhandler.Map<String,Class<? extends AuthenticatorRequestHandler<?>>> Returns a Map from the authenticator's root URI path to the type of theAuthenticatorRequestHandlerauthenticator.default Map<String,Class<? extends RegistrationRequestHandler<?>>> Returns a Map from the registration handler's root URI path to the type of theRegistrationRequestHandlerhandler.Methods inherited from interface se.curity.identityserver.sdk.plugin.descriptor.CanSupportHaapi
getRepresentationFunctionsMethods inherited from interface se.curity.identityserver.sdk.plugin.PluginDescriptor
createManagedObject, getConfigurationType, getPluginImplementationType
-
Method Details
-
getAuthenticationRequestHandlerTypes
Map<String,Class<? extends AuthenticatorRequestHandler<?>>> getAuthenticationRequestHandlerTypes()Returns a Map from the authenticator's root URI path to the type of theAuthenticatorRequestHandlerauthenticator.In the example below, considering a plugin with implementation type
htmlPluginType, a handler of typeHtmlFormAuthenticateRequestHandlerwill be invoked when thehttps://www.example.com/authenticate/htmlPluginTypeorhttps://www.example.com/authenticate/htmlPluginType/indexURIs are hit, whileHtmlFormForgotAccountIdRequestHandleris invoked when thehttps://www.example.com/authenticate/htmlPluginType/forgot-account-idgets called.ImmutableMap.of( "index", HtmlFormAuthenticateRequestHandler.class, "forgot-account-id", HtmlFormForgotAccountIdRequestHandler.class );- Returns:
- A map from URI path to handler type
-
getAnonymousRequestHandlerTypes
Returns a Map from the anonymous handler's root URI path to the type of theAnonymousRequestHandlerhandler.In the example below, considering a plugin with implementation type
htmlPluginType, a handler of typeHtmlAnonymousRequestHandlerwill be invoked when thehttps://www.example.com/authenticationProfilePath/anonymous/htmlPluginTypeorhttps://www.example.com/authenticationProfilePath/anonymous/htmlPluginType/indexURIs are hit, whileHtmlInfoRequestHandleris invoked when thehttps://www.example.com/authenticationProfilePath/anonymous/htmlPluginType/infogets called.ImmutableMap.of( "index", HtmlAnonymousRequestHandler.class, "info", HtmlInfoRequestHandler.class );- Returns:
- A map from URI path to handler type
-
getRegistrationRequestHandlerTypes
default Map<String,Class<? extends RegistrationRequestHandler<?>>> getRegistrationRequestHandlerTypes()Returns a Map from the registration handler's root URI path to the type of theRegistrationRequestHandlerhandler.In the example below, considering a plugin with implementation type
htmlPluginType, a handler of typeHtmlRegistrationRequestHandlerwill be invoked when thehttps://www.example.com/authenticationProfilePath/register/htmlPluginTypeorhttps://www.example.com/authenticationProfilePath/register/htmlPluginType/indexURIs are hit.ImmutableMap.of( "index", HtmlRegistrationRequestHandler.class );- Returns:
- A map from URI path to handler type
-
allowedHandlersForCrossSiteNonSafeRequests
Defines the cross-site policy.- Returns:
- the handlers allowed to be accessed on non-safe requests from a cross-origin.
- Since:
- 4.0.0
-