public abstract class AbstractAuthenticationHandler<T extends IdpConfig> extends Object implements AuthenticationHandler<T>
| Modifier and Type | Field and Description |
|---|---|
protected com.atlassian.sal.api.ApplicationProperties |
applicationProperties |
protected ApplicationStateValidator |
applicationStateValidator |
protected SessionDataService |
sessionDataService |
protected com.atlassian.soy.renderer.SoyTemplateRenderer |
soyTemplateRenderer |
protected TargetUrlNormalizer |
targetUrlNormalizer |
protected com.atlassian.plugin.webresource.WebResourceUrlProvider |
webResourceUrlProvider |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAuthenticationHandler(com.atlassian.sal.api.ApplicationProperties applicationProperties,
ApplicationStateValidator applicationStateValidator,
SessionDataService sessionDataService,
TargetUrlNormalizer targetUrlNormalizer,
com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider,
com.atlassian.soy.renderer.SoyTemplateRenderer soyTemplateRenderer) |
| Modifier and Type | Method and Description |
|---|---|
String |
getIssuerUrl() |
boolean |
isCorrectlyConfigured(IdpConfig idpConfig) |
protected boolean |
isPermissionViolation(javax.servlet.http.HttpServletRequest request) |
protected abstract AuthenticationRequest |
prepareAuthenticationRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
T idpConfig) |
void |
processAuthenticationRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String destinationUrl,
T idpConfig)
Do provider-specific authentication.
|
void |
processAuthenticationRequestForRelativeDestinationUrl(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
URI relativeDestinationUri,
T idpConfig) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConsumerServletUrlprotected final com.atlassian.sal.api.ApplicationProperties applicationProperties
protected final ApplicationStateValidator applicationStateValidator
protected final SessionDataService sessionDataService
protected final TargetUrlNormalizer targetUrlNormalizer
protected final com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider
protected final com.atlassian.soy.renderer.SoyTemplateRenderer soyTemplateRenderer
protected AbstractAuthenticationHandler(com.atlassian.sal.api.ApplicationProperties applicationProperties,
ApplicationStateValidator applicationStateValidator,
SessionDataService sessionDataService,
TargetUrlNormalizer targetUrlNormalizer,
com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider,
com.atlassian.soy.renderer.SoyTemplateRenderer soyTemplateRenderer)
@Nonnull public String getIssuerUrl()
getIssuerUrl in interface AuthenticationHandler<T extends IdpConfig>public void processAuthenticationRequest(@Nonnull javax.servlet.http.HttpServletRequest request, @Nonnull javax.servlet.http.HttpServletResponse response, @Nullable String destinationUrl, T idpConfig) throws IOException
AuthenticationHandlerprocessAuthenticationRequest in interface AuthenticationHandler<T extends IdpConfig>IOExceptionpublic void processAuthenticationRequestForRelativeDestinationUrl(@Nonnull javax.servlet.http.HttpServletRequest request, @Nonnull javax.servlet.http.HttpServletResponse response, @Nullable URI relativeDestinationUri, T idpConfig) throws IOException
IOExceptionpublic boolean isCorrectlyConfigured(IdpConfig idpConfig)
isCorrectlyConfigured in interface AuthenticationHandler<T extends IdpConfig>protected abstract AuthenticationRequest prepareAuthenticationRequest(@Nonnull javax.servlet.http.HttpServletRequest request, @Nonnull javax.servlet.http.HttpServletResponse response, T idpConfig)
protected boolean isPermissionViolation(javax.servlet.http.HttpServletRequest request)
Copyright © 2023 Atlassian. All rights reserved.