Fix HTTP sesison auth
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / auth / AuthConstants.java
index cd793332c9df769f7fcc40eaefc99a695a7dad8e..113e0830cf52136a6e399257c3ad9413059d8f73 100644 (file)
@@ -1,10 +1,10 @@
 package org.argeo.cms.auth;
 
 import org.argeo.node.NodeConstants;
-import org.osgi.service.http.HttpContext;
 
 /** Public properties of the CMS Kernel */
-public interface AuthConstants {
+@Deprecated
+interface AuthConstants {
        // LOGIN CONTEXTS
        /**
         * @deprecated Use {@link NodeConstants#LOGIN_CONTEXT_USER} instead
@@ -13,7 +13,7 @@ public interface AuthConstants {
        /**
         * @deprecated Use {@link NodeConstants#LOGIN_CONTEXT_ANONYMOUS} instead
         */
-       final static String LOGIN_CONTEXT_ANONYMOUS = NodeConstants.LOGIN_CONTEXT_ANONYMOUS;
+//     final static String LOGIN_CONTEXT_ANONYMOUS = NodeConstants.LOGIN_CONTEXT_ANONYMOUS;
        /**
         * @deprecated Use {@link NodeConstants#LOGIN_CONTEXT_DATA_ADMIN} instead
         */
@@ -24,11 +24,11 @@ public interface AuthConstants {
        final static String LOGIN_CONTEXT_SINGLE_USER = NodeConstants.LOGIN_CONTEXT_SINGLE_USER;
 
        // RESERVED ROLES
-       //      public final static String ROLE_KERNEL = "OU=node";
-               /**
-                * @deprecated Use {@link NodeConstants#ROLES_BASEDN} instead
-                */
-               public final static String ROLES_BASEDN = NodeConstants.ROLES_BASEDN;
+       // public final static String ROLE_KERNEL = "OU=node";
+       /**
+        * @deprecated Use {@link NodeConstants#ROLES_BASEDN} instead
+        */
+       public final static String ROLES_BASEDN = NodeConstants.ROLES_BASEDN;
        /**
         * @deprecated Use {@link NodeConstants#ROLE_ADMIN} instead
         */
@@ -49,10 +49,4 @@ public interface AuthConstants {
         */
        public final static String ROLE_ANONYMOUS = NodeConstants.ROLE_ANONYMOUS;
 
-       // SHARED STATE KEYS
-       // compatible with com.sun.security.auth.module.*LoginModule
-//     public static final String SHARED_STATE_USERNAME = "javax.security.auth.login.name";
-//     public static final String SHARED_STATE_PASSWORD = "javax.security.auth.login.password";
-       public static final String SHARED_STATE_AUTHORIZATION = HttpContext.AUTHORIZATION;
-
 }