Improve CMS start up and status reporting.
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / auth / RemoteAuthUtils.java
index e6c425f692f6455069953968fe99e57144e24014..1f2ea73a75cebb04a3eb65ef0cbed5e7a3dd997e 100644 (file)
@@ -131,7 +131,7 @@ public class RemoteAuthUtils {
                // anonymous
                ClassLoader currentContextClassLoader = Thread.currentThread().getContextClassLoader();
                try {
-                       Thread.currentThread().setContextClassLoader(CmsAuthenticator.class.getClassLoader());
+                       Thread.currentThread().setContextClassLoader(RemoteAuthUtils.class.getClassLoader());
                        LoginContext lc = CmsAuth.ANONYMOUS
                                        .newLoginContext(new RemoteAuthCallbackHandler(remoteAuthRequest, remoteAuthResponse));
                        lc.login();