mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fixing authentication issues surfaced due to not properly configuring WebappAuthenticatorRepository
This commit is contained in:
parent
cdcb7d2546
commit
486d39e54d
@ -24,6 +24,7 @@ import org.osgi.framework.BundleActivator;
|
||||
import org.osgi.framework.BundleContext;
|
||||
import org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve;
|
||||
import org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer;
|
||||
import org.wso2.carbon.webapp.authenticator.framework.DataHolder;
|
||||
import org.wso2.carbon.webapp.authenticator.framework.WebappAuthenticator;
|
||||
import org.wso2.carbon.webapp.authenticator.framework.WebappAuthenticatorFrameworkValve;
|
||||
import org.wso2.carbon.webapp.authenticator.framework.WebappAuthenticatorRepository;
|
||||
@ -51,6 +52,7 @@ public class WebappAuthenticatorFrameworkBundleActivator implements BundleActiva
|
||||
(WebappAuthenticator) Class.forName(config.getClassName()).newInstance();
|
||||
repository.addAuthenticator(authenticator);
|
||||
}
|
||||
DataHolder.setWebappAuthenticatorRepository(repository);
|
||||
|
||||
List<CarbonTomcatValve> valves = new ArrayList<CarbonTomcatValve>();
|
||||
valves.add(new WebappAuthenticatorFrameworkValve());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user