The authenticated user's distinguished name ( DN ) is a very important attribute. The DN can be used to pull out more information about the user from Oracle Internet Directory - e.g : the email address, the phone number, etc.
You can easily get the user dn of the authenticated user from the request , by using this code snippet :-
String strUserDN = request.getHeader(“Osso-User-Dn”);The DN can then be coupled with a simple JNDI Code to retrieve other attributes.
No comments:
Post a Comment