Commit c477a6f6 by nixonrodrigues

ATLAS-3116:- Changed bean scope to prototype to fix LDAP login, once a sign-on…

ATLAS-3116:- Changed bean scope to prototype to fix LDAP login, once a sign-on is made through knox SSO. Change-Id: Ia76852d1c4e13216c54d225e0cbcd1108fd2f402
parent 572c0b80
...@@ -21,6 +21,7 @@ import org.apache.atlas.ApplicationProperties; ...@@ -21,6 +21,7 @@ import org.apache.atlas.ApplicationProperties;
import org.apache.commons.configuration.Configuration; import org.apache.commons.configuration.Configuration;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.security.core.Authentication; import org.springframework.security.core.Authentication;
import org.springframework.security.core.AuthenticationException; import org.springframework.security.core.AuthenticationException;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
...@@ -29,6 +30,7 @@ import javax.annotation.PostConstruct; ...@@ -29,6 +30,7 @@ import javax.annotation.PostConstruct;
import javax.inject.Inject; import javax.inject.Inject;
@Component @Component
@Scope("prototype")
public class AtlasAuthenticationProvider extends AtlasAbstractAuthenticationProvider { public class AtlasAuthenticationProvider extends AtlasAbstractAuthenticationProvider {
private static final Logger LOG = LoggerFactory private static final Logger LOG = LoggerFactory
.getLogger(AtlasAuthenticationProvider.class); .getLogger(AtlasAuthenticationProvider.class);
......
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