No, these are the credentials that are submitted by the form. If you want to know which roles an account is in, you have to look is up through the RoleUsersManager.

On 16-aug-05, at 15:46, F Baube wrote:

There was discussion of this a month or two ago, so ...

Surely sendmail reeled when thusly spake Geert Bevin:


On 15-aug-05, at 16:30, F Baube wrote:


In brief, my question is:

If (as I previously described) I have a "gateway" login page which
can redirect a logged-in user to his/her destination subsite, then
in this "gateway" page's authentication Element, how can I define
it to accept _all_ of the system's valid roles, and is there some
kind of wildcard ?


If you don't specify any value for the role property in the
authenticated element declaration, any valid user can login.


So it seems.  Altho this also means that when

    MemoryAuthenticated.acceptedCredentials(Credentials creds)

is called, there is no value for "role" in the Credentials,
since none was required.

    class MyAuth extends MemoryAuthenticated {

        protected void acceptedCredentials(Credentials C) {

        RoleUserCredentials RUC = (RoleUserCredentials) C;
        login = RUC.getLogin();
        paswd = RUC.getPassword();
        role  = RUC.getRole(); // returns (null)
        [..]


hth

fred



--
Geert Bevin                       Uwyn bvba
"Use what you need"               Avenue de Scailmont 34
http://www.uwyn.com               7170 Manage
gbevin[remove] at uwyn dot com    Tel +32 64 84 80 03

PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net

_______________________________________________
Rife-users mailing list
[email protected]
http://www.uwyn.com/mailman/listinfo/rife-users

Reply via email to