Package com.atlassian.applinks.spi.auth
Interface AuthenticationProviderPluginModule
- All Known Subinterfaces:
AutoConfiguringAuthenticatorProviderPluginModule
public interface AuthenticationProviderPluginModule
This is the interface that must be implemented by the class that is used in
the authentication provider module descriptor. It's setters are used by the
module descriptor class to pass in the descriptor's configuration
properties.
- Since:
- 3.0
-
Method Summary
Modifier and TypeMethodDescriptionClass<? extends AuthenticationProvider>Gets the authentication provider class that this plugin module can create.getConfigUrl(ApplicationLink link, org.osgi.framework.Version applicationLinksVersion, AuthenticationDirection direction, javax.servlet.http.HttpServletRequest request) Called by AppLinks when it renders the inbound and outbound authentication configuration.
-
Method Details
-
getAuthenticationProvider
- Parameters:
link- anApplicationLinkto create anAuthenticationProviderfor- Returns:
- an
AuthenticationProviderinstance configured for the specifiedApplicationLink, or null if thisAuthenticationProvideris not configured for the specified link.
-
getConfigUrl
String getConfigUrl(ApplicationLink link, org.osgi.framework.Version applicationLinksVersion, AuthenticationDirection direction, javax.servlet.http.HttpServletRequest request) Called by AppLinks when it renders the inbound and outbound authentication configuration. The returned url is absolute. If the returned URL points to the local configuration servlet, it should respect the request url of the incoming request.- Parameters:
direction- the authentication direction (inbound or outbound)request- the incoming request- Returns:
- the url of the servlet used to configure the authenticator in the desired direction, null if there is no config screen for the given direction
-
getAuthenticationProviderClass
Class<? extends AuthenticationProvider> getAuthenticationProviderClass()Gets the authentication provider class that this plugin module can create.- Returns:
- authentication provider class
-