Class CustomSAMLAuthenticationProvider
- java.lang.Object
-
- org.springframework.security.saml.SAMLAuthenticationProvider
-
- de.trustable.ca3s.core.security.saml.CustomSAMLAuthenticationProvider
-
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean,org.springframework.security.authentication.AuthenticationProvider
public class CustomSAMLAuthenticationProvider extends org.springframework.security.saml.SAMLAuthenticationProvider
-
-
Constructor Summary
Constructors Constructor Description CustomSAMLAuthenticationProvider(UserPreferenceRepository userPreferenceRepository, UserRepository userRepository, AuthorityRepository authorityRepository, TenantRepository tenantRepository, SPeLUtil sPeLUtil, String availableLanguages, SAMLMappingConfig samlMappingConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.core.Authenticationauthenticate(org.springframework.security.core.Authentication authentication)Collection<? extends org.springframework.security.core.GrantedAuthority>getEntitlements(org.springframework.security.saml.SAMLCredential credential, Object userDetail)-
Methods inherited from class org.springframework.security.saml.SAMLAuthenticationProvider
afterPropertiesSet, getExpirationDate, getPrincipal, getUserDetails, getUserDetails, isExcludeCredential, isForcePrincipalAsString, setConsumer, setExcludeCredential, setForcePrincipalAsString, setHokConsumer, setSamlLogger, setUserDetails, supports
-
-
-
-
Constructor Detail
-
CustomSAMLAuthenticationProvider
public CustomSAMLAuthenticationProvider(UserPreferenceRepository userPreferenceRepository, UserRepository userRepository, AuthorityRepository authorityRepository, TenantRepository tenantRepository, SPeLUtil sPeLUtil, String availableLanguages, SAMLMappingConfig samlMappingConfig)
-
-
Method Detail
-
authenticate
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException- Specified by:
authenticatein interfaceorg.springframework.security.authentication.AuthenticationProvider- Overrides:
authenticatein classorg.springframework.security.saml.SAMLAuthenticationProvider- Throws:
org.springframework.security.core.AuthenticationException
-
getEntitlements
@Transactional public Collection<? extends org.springframework.security.core.GrantedAuthority> getEntitlements(org.springframework.security.saml.SAMLCredential credential, Object userDetail)
- Overrides:
getEntitlementsin classorg.springframework.security.saml.SAMLAuthenticationProvider
-
-