Hi all,

I've rewritten the login logic and also added a system login.

Now there are 3 security domains:

1. nuxeo-ecm - used to protect nuxeo5 beans access by authenticating against NuxeoLoginModule This domain is used internally by EJB3 container to protected Nuxeo5 beans.

2. nuxeo-system-login - used by clients to login as the security pseudo-user (the SystemLoginModule + ClientLoginModule is used)
   This domain can be used to login only from the local machine
I am trying to find a solution to be able to login as the system user from a remote machine

3. nuxeo-client-login - used by clients to login using regular users (the JBoss ClientLoginModule is used) This domain can be used to login either from a remote machine or from the local one


To login using nuxeo-client-login domain you can use:
UserSession us = new UserSession("username", "password");
us.login();
...
us.logout();


To login using nuxeo-system-login domain you can use:
SystemSession ss = new SystemSession();
ss.login();
...
ss.logout();


Bogdan

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to