Hi,

My CredentialsManager works perfect evrything looked good but now I am 
stuck again. I have an Element that can be used from admins and users. I 
defined this with:

        <element id="AuthClient" extends="rife/authenticated/memory.xml">
            <property name="password_encryption">SHA</property>
            <property name="role">Client</property>
            <property name="role">Admin</property>
            <property name="authvar_type">cookie</property>
            <property name="template_name">authentication.admin</property>
            <property 
name="credentialsmanagerfactory_class">de.sourcepark.ms2.rife.MS2CredentialsManagerFactory</property>
            <submission name="credentials">
                <param name="login"/>
                <param name="password"/>
            </submission>
           
            <childtrigger name="authid"/>
        </element>       

and

            <element id="CustomerChangePw"
                     
implementation="de.sourcepark.ms2.rife.customer.EditCustomerPw"
                     url="/customerchangepw" inherits="AuthClient">
                <inbean name="customer" prefix="pre_"
                        
classname="de.sourcepark.ms2.rife.customer.CBCustomerPwEdit"/>
                <autolink srcexit="CustomerList"/>
            </element>

Everything works fine when I login with accounts that have the admin 
rolle assigned to. When I try to login as normal user I always get an 
invalid credentials error.

When debugging my CredentialsManager I checked the credentials I get as 
parameter in the verifyCredentials method the credentials with password 
and username as expected but the role is always set to Admin. When I 
remove the Admin role form the AuthClient element the role is always set 
to Client. Shouldn' t the credentials given containing all the roles 
allowed for the element ?

Where is my fault ?

Ciao
    Matthias

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"rife-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to