[AMBARI-24985] Handle requests from a configured trusted proxy to identify a proxied...
authorRobert Levas <rlevas@users.noreply.github.com>
Mon, 3 Dec 2018 17:17:10 +0000 (12:17 -0500)
committerGitHub <noreply@github.com>
Mon, 3 Dec 2018 17:17:10 +0000 (12:17 -0500)
commitb6a33413e518a20e186609996b34671d33573c51
tree5ab1b36d0bb47cb38b5e77bb60ab2485932996bd
parent0ce508d9f4dd093cd2d0462149e30896f2fbfe6b
[AMBARI-24985] Handle requests from a configured trusted proxy to identify a proxied user using Kerberos

* [AMBARI-24985] Handle requests from a configured trusted proxy to identify a proxied user using Kerberos

* [AMBARI-24985] Handle requests from a configured trusted proxy to identify a proxied user using Kerberos
29 files changed:
ambari-server/src/main/java/org/apache/ambari/server/api/predicate/QueryLexer.java
ambari-server/src/main/java/org/apache/ambari/server/configuration/spring/ApiSecurityConfig.java
ambari-server/src/main/java/org/apache/ambari/server/security/authentication/AmbariBasicAuthenticationFilter.java
ambari-server/src/main/java/org/apache/ambari/server/security/authentication/AmbariLocalAuthenticationProvider.java
ambari-server/src/main/java/org/apache/ambari/server/security/authentication/AmbariProxiedUserDetailsImpl.java [new file with mode: 0644]
ambari-server/src/main/java/org/apache/ambari/server/security/authentication/AmbariProxyUserDetails.java [new file with mode: 0644]
ambari-server/src/main/java/org/apache/ambari/server/security/authentication/AmbariProxyUserDetailsImpl.java [new file with mode: 0644]
ambari-server/src/main/java/org/apache/ambari/server/security/authentication/AmbariUserDetails.java
ambari-server/src/main/java/org/apache/ambari/server/security/authentication/AmbariUserDetailsImpl.java [new file with mode: 0644]
ambari-server/src/main/java/org/apache/ambari/server/security/authentication/jwt/AmbariJwtAuthenticationProvider.java
ambari-server/src/main/java/org/apache/ambari/server/security/authentication/kerberos/AmbariAuthToLocalUserDetailsService.java
ambari-server/src/main/java/org/apache/ambari/server/security/authentication/kerberos/AmbariKerberosAuthenticationFilter.java
ambari-server/src/main/java/org/apache/ambari/server/security/authentication/kerberos/AmbariKerberosAuthenticationProvider.java [new file with mode: 0644]
ambari-server/src/main/java/org/apache/ambari/server/security/authentication/kerberos/AmbariProxiedUserDetailsService.java [new file with mode: 0644]
ambari-server/src/main/java/org/apache/ambari/server/security/authentication/kerberos/AmbariProxyUserKerberosDetailsImpl.java [new file with mode: 0644]
ambari-server/src/main/java/org/apache/ambari/server/security/authentication/pam/AmbariPamAuthenticationProvider.java
ambari-server/src/main/java/org/apache/ambari/server/security/authentication/tproxy/AmbariTProxyConfiguration.java
ambari-server/src/main/java/org/apache/ambari/server/security/authentication/tproxy/TrustedProxyAuthenticationDetails.java [new file with mode: 0644]
ambari-server/src/main/java/org/apache/ambari/server/security/authentication/tproxy/TrustedProxyAuthenticationDetailsSource.java [new file with mode: 0644]
ambari-server/src/main/java/org/apache/ambari/server/security/authentication/tproxy/TrustedProxyAuthenticationNotAllowedException.java [new file with mode: 0644]
ambari-server/src/main/java/org/apache/ambari/server/security/authorization/AmbariLdapAuthenticationProvider.java
ambari-server/src/main/java/org/apache/ambari/server/security/authorization/AmbariUserAuthorizationFilter.java
ambari-server/src/main/java/org/apache/ambari/server/utils/RequestUtils.java
ambari-server/src/test/java/org/apache/ambari/server/security/SecurityHelperImplTest.java
ambari-server/src/test/java/org/apache/ambari/server/security/TestAuthenticationFactory.java
ambari-server/src/test/java/org/apache/ambari/server/security/authentication/kerberos/AmbariKerberosAuthenticationFilterTest.java
ambari-server/src/test/java/org/apache/ambari/server/security/authentication/kerberos/AmbariProxiedUserDetailsServiceTest.java [new file with mode: 0644]
ambari-server/src/test/java/org/apache/ambari/server/security/authorization/AuthorizationHelperTest.java
ambari-server/src/test/java/org/apache/ambari/server/utils/RequestUtilsTest.java