atlas-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apoorvn...@apache.org
Subject atlas git commit: ATLAS-1951: Fix for error code for unauthenticated REST API call.
Date Thu, 27 Jul 2017 04:50:59 GMT
Repository: atlas
Updated Branches:
  refs/heads/0.8-incubating de60a6560 -> 1ad295875


ATLAS-1951: Fix for error code for unauthenticated REST API call.

Change-Id: Id52e330f6e51fb4c90a1954bd47f0faf59518307

Signed-off-by: apoorvnaik <apoorvnaik@apache.org>

(cherry picked from commit c97275c)


Project: http://git-wip-us.apache.org/repos/asf/atlas/repo
Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/1ad29587
Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/1ad29587
Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/1ad29587

Branch: refs/heads/0.8-incubating
Commit: 1ad2958758045a02ac4a3f01c426c5b37ac1b59e
Parents: de60a65
Author: nixonrodrigues <nixon@apache.org>
Authored: Wed Jul 26 07:13:43 2017 -0700
Committer: apoorvnaik <apoorvnaik@apache.org>
Committed: Wed Jul 26 21:50:50 2017 -0700

----------------------------------------------------------------------
 .../org/apache/atlas/web/security/AtlasSecurityConfig.java  | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/atlas/blob/1ad29587/webapp/src/main/java/org/apache/atlas/web/security/AtlasSecurityConfig.java
----------------------------------------------------------------------
diff --git a/webapp/src/main/java/org/apache/atlas/web/security/AtlasSecurityConfig.java b/webapp/src/main/java/org/apache/atlas/web/security/AtlasSecurityConfig.java
index 6b512af..3bec838 100644
--- a/webapp/src/main/java/org/apache/atlas/web/security/AtlasSecurityConfig.java
+++ b/webapp/src/main/java/org/apache/atlas/web/security/AtlasSecurityConfig.java
@@ -138,6 +138,9 @@ public class AtlasSecurityConfig extends WebSecurityConfigurerAdapter
{
                     .sessionFixation()
                     .newSession()
                 .and()
+                .httpBasic()
+                .authenticationEntryPoint(getDelegatingAuthenticationEntryPoint())
+                .and()
                     .formLogin()
                         .loginPage("/login.jsp")
                         .loginProcessingUrl("/j_spring_security_check")
@@ -149,10 +152,8 @@ public class AtlasSecurityConfig extends WebSecurityConfigurerAdapter
{
                     .logout()
                         .logoutSuccessUrl("/login.jsp")
                         .deleteCookies("ATLASSESSIONID")
-                        .logoutUrl("/logout.html")
-                .and()
-                    .httpBasic()
-                    .authenticationEntryPoint(getDelegatingAuthenticationEntryPoint());
+                        .logoutUrl("/logout.html");
+
         //@formatter:on
 
         if (configuration.getBoolean("atlas.server.ha.enabled", false)) {


Mime
View raw message