Commit c97275ca by nixonrodrigues Committed by apoorvnaik

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

Change-Id: Id52e330f6e51fb4c90a1954bd47f0faf59518307 Signed-off-by: 's avatarapoorvnaik <apoorvnaik@apache.org>
parent 6547af2d
...@@ -138,6 +138,9 @@ public class AtlasSecurityConfig extends WebSecurityConfigurerAdapter { ...@@ -138,6 +138,9 @@ public class AtlasSecurityConfig extends WebSecurityConfigurerAdapter {
.sessionFixation() .sessionFixation()
.newSession() .newSession()
.and() .and()
.httpBasic()
.authenticationEntryPoint(getDelegatingAuthenticationEntryPoint())
.and()
.formLogin() .formLogin()
.loginPage("/login.jsp") .loginPage("/login.jsp")
.loginProcessingUrl("/j_spring_security_check") .loginProcessingUrl("/j_spring_security_check")
...@@ -149,10 +152,8 @@ public class AtlasSecurityConfig extends WebSecurityConfigurerAdapter { ...@@ -149,10 +152,8 @@ public class AtlasSecurityConfig extends WebSecurityConfigurerAdapter {
.logout() .logout()
.logoutSuccessUrl("/login.jsp") .logoutSuccessUrl("/login.jsp")
.deleteCookies("ATLASSESSIONID") .deleteCookies("ATLASSESSIONID")
.logoutUrl("/logout.html") .logoutUrl("/logout.html");
.and()
.httpBasic()
.authenticationEntryPoint(getDelegatingAuthenticationEntryPoint());
//@formatter:on //@formatter:on
if (configuration.getBoolean("atlas.server.ha.enabled", false)) { if (configuration.getBoolean("atlas.server.ha.enabled", false)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment