You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by ni...@apache.org on 2019/04/09 09:20:56 UTC
[atlas] branch branch-1.0 updated: ATLAS-3116:- Changed bean scope
to prototype to fix LDAP login, once a sign-on is made through knox SSO.
This is an automated email from the ASF dual-hosted git repository.
nixon pushed a commit to branch branch-1.0
in repository https://gitbox.apache.org/repos/asf/atlas.git
The following commit(s) were added to refs/heads/branch-1.0 by this push:
new 7e86cb3 ATLAS-3116:- Changed bean scope to prototype to fix LDAP login, once a sign-on is made through knox SSO.
7e86cb3 is described below
commit 7e86cb30841b1ff9683fd121e3f8a17d2638e6e8
Author: nixonrodrigues <ni...@apache.org>
AuthorDate: Fri Apr 5 12:34:16 2019 +0530
ATLAS-3116:- Changed bean scope to prototype to fix LDAP login, once a sign-on is made through knox SSO.
Change-Id: Ia76852d1c4e13216c54d225e0cbcd1108fd2f402
---
.../java/org/apache/atlas/web/security/AtlasAuthenticationProvider.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/webapp/src/main/java/org/apache/atlas/web/security/AtlasAuthenticationProvider.java b/webapp/src/main/java/org/apache/atlas/web/security/AtlasAuthenticationProvider.java
index 6827aec..fb21d75 100644
--- a/webapp/src/main/java/org/apache/atlas/web/security/AtlasAuthenticationProvider.java
+++ b/webapp/src/main/java/org/apache/atlas/web/security/AtlasAuthenticationProvider.java
@@ -21,6 +21,7 @@ import org.apache.atlas.ApplicationProperties;
import org.apache.commons.configuration.Configuration;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+import org.springframework.context.annotation.Scope;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.AuthenticationException;
import org.springframework.stereotype.Component;
@@ -29,6 +30,7 @@ import javax.annotation.PostConstruct;
import javax.inject.Inject;
@Component
+@Scope("prototype")
public class AtlasAuthenticationProvider extends AtlasAbstractAuthenticationProvider {
private static final Logger LOG = LoggerFactory
.getLogger(AtlasAuthenticationProvider.class);