Make data admin log-in more robust and easier to use.
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / internal / kernel / jaas.cfg
index 9ce961b28c2f25fff87d9f32f3a904119a2d5e5e..e54277a3c73fcb1b9dbcc2a4fe5c1908db9f3ad1 100644 (file)
@@ -1,14 +1,20 @@
 USER {
     org.argeo.cms.auth.HttpSessionLoginModule sufficient;
-    org.argeo.cms.auth.UserAdminLoginModule requisite;
+    org.argeo.cms.auth.IdentLoginModule optional;
+    org.argeo.cms.auth.UserAdminLoginModule sufficient;
+};
+
+ANONYMOUS {
+    org.argeo.cms.auth.HttpSessionLoginModule sufficient;
+    org.argeo.cms.auth.AnonymousLoginModule sufficient;
 };
 
 DATA_ADMIN {
-    org.argeo.cms.auth.DataAdminLoginModule requisite;
+    org.argeo.node.DataAdminLoginModule requisite;
 };
 
 NODE {
-    org.argeo.cms.auth.DataAdminLoginModule requisite;
+    org.argeo.node.DataAdminLoginModule requisite;
 };
 
 KEYRING {
@@ -16,11 +22,6 @@ KEYRING {
 };
 
 SINGLE_USER {
-    com.sun.security.auth.module.Krb5LoginModule optional
-     principal="${user.name}"
-     storeKey=true
-     useTicketCache=true
-     debug=true;
     org.argeo.cms.auth.SingleUserLoginModule requisite;
 };