@Component public class AmbariProxiedUserDetailsService extends Object implements org.springframework.security.core.userdetails.UserDetailsService
UserDetailsService
that handles proxied users via the
Trusted Proxy protocol.
If trusted proxy support is enabled and a proxied user is declared, the proxy user and remote host is validated. If all criteria is met and a user account with the the proxied user's username exist, that user account will be set as the authenticated user.
Modifier and Type | Method and Description |
---|---|
org.springframework.security.core.userdetails.UserDetails |
loadProxiedUser(String proxiedUserName,
String proxyUserName,
TrustedProxyAuthenticationDetails trustedProxyAuthenticationDetails) |
org.springframework.security.core.userdetails.UserDetails |
loadUserByUsername(String proxiedUserName) |
public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String proxiedUserName) throws org.springframework.security.core.userdetails.UsernameNotFoundException
loadUserByUsername
in interface org.springframework.security.core.userdetails.UserDetailsService
org.springframework.security.core.userdetails.UsernameNotFoundException
public org.springframework.security.core.userdetails.UserDetails loadProxiedUser(String proxiedUserName, String proxyUserName, TrustedProxyAuthenticationDetails trustedProxyAuthenticationDetails) throws org.springframework.security.core.AuthenticationException
org.springframework.security.core.AuthenticationException
Copyright © 2022 Apache Software Foundation. All rights reserved.