Fix HTTP sesison auth
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / auth / NodeUserLoginModule.java
index 0b638bc2f1249d8716ee6a0e7fc167cc84a4a06e..03dacef931fa55044b94d15f86f46f90bb766abe 100644 (file)
@@ -9,7 +9,7 @@ import javax.security.auth.spi.LoginModule;
 
 import org.osgi.service.useradmin.Authorization;
 
-public class NodeUserLoginModule implements LoginModule, AuthConstants {
+public class NodeUserLoginModule implements LoginModule {
        private Subject subject;
        private Map<String, Object> sharedState = null;
 
@@ -55,7 +55,7 @@ public class NodeUserLoginModule implements LoginModule, AuthConstants {
 
        @Override
        public boolean commit() throws LoginException {
-               Authorization authorization = (Authorization) sharedState.get(SHARED_STATE_AUTHORIZATION);
+               Authorization authorization = (Authorization) sharedState.get(CmsAuthUtils.SHARED_STATE_AUTHORIZATION);
                if (authorization == null)
                        throw new LoginException("Authorization should not be null");
                CmsAuthUtils.addAuthentication(subject, authorization);