Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to get UserPrincipalName if getUserPrincipalName() return null?

731625Jan 7 2010
Hi Everybody,

Issue like topic posted. This issue is directed related to 1010631

let me re-cap the use case: I have a web apps with security implemented. A welcome page with no ADF BC access is out of security as the main entry. All works fine until I need to add user registration functionality to the apps. I added a method binding to the welcome page to link to use registration page. The problem is I have custom codes in prepareSession() in application module to set the User Principle after security login as the current user. After I added the method binding to the welcome page. The AM was accessed at the first time in welcome page and the UserPriciple in user session is set to null. After login, the UserPriciple is not reset to the login user. So I get null when I call getUserPrincipalName(). So my problem is how could I get UserPrincipalName without use session from AM? Can I use JSF security and how?

thanks everyone!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 4 2010
Added on Jan 7 2010
0 comments
710 views