Hi,

I have written a CredentialsManager to. I am not sure how this rife 
magic works but this is my configuration:

main.xml:

        <element id="AuthClient" extends="rife/authenticated/memory.xml">
            <property name="password_encryption">SHA</property>
            <property name="role">Client,Admin</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>       
       
            <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"/>
                <outbean name="customer" prefix="pre_"
                         
classname="de.sourcepark.ms2.rife.customer.CBCustomerActiveEdit"/>
                <autolink srcexit="ClientCustomerEdit"/>
                <autolink srcexit="CustomerChangePw"/>
               
            </element>

this works perfect for me.

Hope this helps.

Ciao
    Matthias

Rodrigue wrote:
> Hi,
>
> I am working on my first Rife project and I need to authenticate my
> users against a SOAP server. To do this, assuming I have understood
> the way it works, I have written a class that implements
> CredentialsManagerFactory to return my own CredentialsManager. I have
> added a credentialsmanagerfactory_class property to my authentication
> element. I have two questions though:
>
>   - Should I use the memory-based or the db authentication? Does it
> matter at all since I won't use either the users xml file or the user
> table? Or should I not add any participant for the authentication in
> my participants.xml?
>   - If I need to declare a participant, how should I declare it? No
> users.xml param or no datasource?
>
> Rodrigue
> >
>   


--~--~---------~--~----~------------~-------~--~----~
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