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 {
.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)) {
......
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