List Info

Thread: Login module reworked




Login module reworked
country flaguser name
France
2007-03-29 08:03:39
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
ECMlists.nuxeo.com
http://li
sts.nuxeo.com/mailman/listinfo/ecm

Re: Login module reworked
country flaguser name
France
2007-03-29 09:40:34
The system login is now working from remote too.

Bogdan

Bogdan Stefanescu wrote:
>
> 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
> ECMlists.nuxeo.com
> http://li
sts.nuxeo.com/mailman/listinfo/ecm
>

_______________________________________________
ECM mailing list
ECMlists.nuxeo.com
http://li
sts.nuxeo.com/mailman/listinfo/ecm

Re: Login module reworked
country flaguser name
France
2007-03-29 14:03:09
ok hooked on workflow and search components. Works just
fine. Thanks !

	J.

Bogdan Stefanescu wrote:
> 
> 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
> ECMlists.nuxeo.com
> http://li
sts.nuxeo.com/mailman/listinfo/ecm
> 


-- 
Julien Anguenot | Nuxeo R&D (Paris, France)
Open Source ECM - http://www.nuxeo.com
Nuxeo 5 : http://www.nuxeo.org
Mobile: +33 (0) 6 72 57 57 66


_______________________________________________
ECM mailing list
ECMlists.nuxeo.com
http://li
sts.nuxeo.com/mailman/listinfo/ecm

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )