public class Saml2AuthenticationSuccessHandler
extends org.springframework.security.web.authentication.SimpleUrlAuthenticationSuccessHandler
| Modifier and Type | Field and Description |
|---|---|
private ApplicationCookieService |
applicationCookieService |
private BearerTokenProvider |
bearerTokenProvider |
private Duration |
expiration |
private List<IdentityMapping> |
groupIdentityMappings |
private org.springframework.core.convert.converter.Converter<org.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal,String> |
identityConverter |
private IdpUserGroupService |
idpUserGroupService |
private String |
issuer |
private static String |
ROOT_PATH |
private static String |
UI_PATH |
private List<IdentityMapping> |
userIdentityMappings |
| Constructor and Description |
|---|
Saml2AuthenticationSuccessHandler(BearerTokenProvider bearerTokenProvider,
IdpUserGroupService idpUserGroupService,
List<IdentityMapping> userIdentityMappings,
List<IdentityMapping> groupIdentityMappings,
Duration expiration,
String issuer)
SAML 2 Authentication Success Handler requires Bearer Token Provider and expiration for generated tokens
|
| Modifier and Type | Method and Description |
|---|---|
String |
determineTargetUrl(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.Authentication authentication)
Determine Redirect Target URL based on Request URL and add Session Cookie containing a Bearer Token
|
private String |
getBearerToken(String identity) |
private Set<String> |
getGroups(org.springframework.security.core.Authentication authentication) |
private String |
getIdentity(org.springframework.security.core.Authentication authentication) |
private void |
processAuthentication(javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.Authentication authentication,
URI resourceUri) |
void |
setIdentityConverter(org.springframework.core.convert.converter.Converter<org.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal,String> identityConverter)
Set Identity Converter for customized mapping of SAML 2 Authenticated Principal to user identity
|
clearAuthenticationAttributes, onAuthenticationSuccessdetermineTargetUrl, getDefaultTargetUrl, getRedirectStrategy, getTargetUrlParameter, handle, isAlwaysUseDefaultTargetUrl, setAlwaysUseDefaultTargetUrl, setDefaultTargetUrl, setRedirectStrategy, setTargetUrlParameter, setUseRefererprivate static final String UI_PATH
private static final String ROOT_PATH
private final ApplicationCookieService applicationCookieService
private final BearerTokenProvider bearerTokenProvider
private final IdpUserGroupService idpUserGroupService
private final List<IdentityMapping> userIdentityMappings
private final List<IdentityMapping> groupIdentityMappings
private final Duration expiration
private final String issuer
private org.springframework.core.convert.converter.Converter<org.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal,String> identityConverter
public Saml2AuthenticationSuccessHandler(BearerTokenProvider bearerTokenProvider, IdpUserGroupService idpUserGroupService, List<IdentityMapping> userIdentityMappings, List<IdentityMapping> groupIdentityMappings, Duration expiration, String issuer)
bearerTokenProvider - Bearer Token ProvideridpUserGroupService - User Group Service for persisting groups from the Identity ProvideruserIdentityMappings - User Identity MappingsgroupIdentityMappings - Group Identity Mappingsexpiration - Expiration for generated tokensissuer - Token Issuerpublic void setIdentityConverter(org.springframework.core.convert.converter.Converter<org.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal,String> identityConverter)
identityConverter - Identity Converter requiredpublic String determineTargetUrl(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication)
determineTargetUrl in class org.springframework.security.web.authentication.AbstractAuthenticationTargetUrlRequestHandlerrequest - HTTP Servlet Requestresponse - HTTP Servlet Responseauthentication - SAML 2 Authenticationprivate void processAuthentication(javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.Authentication authentication,
URI resourceUri)
private String getIdentity(org.springframework.security.core.Authentication authentication)
Copyright © 2023 Apache NiFi Project. All rights reserved.