-
1. Re: custom user and Jboss user
peterj Aug 18, 2008 12:06 PM (in response to amouradi)I will assume that your database is different from the portal's database. Then your code should get the user identity from the portal and use that identity within your own database.
-
2. Re: custom user and Jboss user
amouradi Aug 18, 2008 12:47 PM (in response to amouradi)Hi Peter,
Thanks for your response! Do you think storing portal username and mapping to our databse customerId is reasonable approach then?
I think I would either need to implement AuthenticationEventListener
so mapping between my customer and portal user gets created if it has not existed before, or have a custom portlet that does that.
What do you think?
Thanks!
Ann -
3. Re: custom user and Jboss user
peterj Aug 19, 2008 2:32 PM (in response to amouradi)Not having done this, I am not sure of the best approach (perhaps someone who has done this can provide some insight). But having a listener that gets invoked when a new user registers would be ideal.
-
4. Re: custom user and Jboss user
amouradi Aug 19, 2008 4:27 PM (in response to amouradi)Thanks, Peter!
I'll try with the listener and see how it goes.
Might even post code here if all goes well.
Ann