Hi Rodrigue,

my Factory is really simple:

package de.sourcepark.ms2.rife;

import com.uwyn.rife.authentication.CredentialsManager;
import 
com.uwyn.rife.authentication.credentialsmanagers.CredentialsManagerFactory;
import com.uwyn.rife.ioc.HierarchicalProperties;
import com.uwyn.rife.ioc.exceptions.PropertyValueException;


No Id on have a Manager that implementes the interface you mentioned my 
decalaration is:

    public class MS2CredentialsManager implements CredentialsManager, 
RoleUsersManager


What I have copied from some examples and not really understand is this 
main.xml element:

        <element id="IDENTIFIED" 
extends="rife/authenticated/identified.xml">
            <property name="authElementId">AuthClient</property>
            <childtrigger name="authid"/>
        </element>

May be this creates the things you need on the fly.

Ciao
   Matthias


Rodrigue wrote:
> Hi Matthias,
>
> thank you again for your reply. I still have some trouble though.
>
> When I call
>
> RoleUserIdentity identity =
> (RoleUserIdentity)getRequestAttribute(Identified.IDENTITY_ATTRIBUTE_NAME);
>
> the identity is null. After looking at the rife source code I found
> out that this is because my credentials manager does not implement
> IdentifiableUsersManager. So I am now wondering what does your
> de.sourcepark.ms2.rife.MS2CredentialsManagerFactory return in
> getCredentialsManager?
> Have you written your own CredentialsManager that also implements
> IdentifiableUsersManager?
>
> Rodrigue
>
>
>
> On Jun 19, 9:57 am, Matthias Barmeier
> <[EMAIL PROTECTED]> wrote:
>   
>> Hi Rodrigue,
>>
>> I use an entry element class as arrival:
>>
>> <arrival destid="EntryElement"/>
>>
>> The EntryElement is configured like:
>>
>>         <element id="Entry"
>> implementation="de.sourcepark.ms2.rife.EntryElement" inherits="AuthClient">
>>             <outbean name="customer" prefix="pre_"
>>
>> classname="de.sourcepark.ms2.rife.customer.CBCustomerActiveEdit"/>
>>             <autolink srcexit="ClientCustomerEdit"/>
>>             <autolink srcexit="CustomerChangePw"/>
>>         </element>
>>
>> In the class I can call:
>>
>>     RoleUserIdentity identity =
>> (RoleUserIdentity)getRequestAttribute(Identified.IDENTITY_ATTRIBUTE_NAME);
>>
>> to get the identity object and then:
>>
>>     identity.getLogin()
>>
>> To get the username. In the EntryElement you can set if you like a
>> global var to reflect the logged in user and his role.
>>
>> Hope this helps.
>>
>> Ciao
>>     Matthias
>>
>> Rodrigue wrote:
>>     


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