Q:

Open id get username after successful authentication

I am using openid using openid4java. My return url is a servlet 
After authentication when the return url is invoked by the openid provider after successfully authentication  , i want the USERNAME from the open id url like
https://me.yahoo.com/USERNAME
the above url i am recieving from parameter openid.identity i cannot get username directly since user is entering user name on the openid provider site.
Please give any suggestion
 Regards, Zeeshan

A:

I'm not absolutely sure this is what you're asking, but if you want Yahoo to pass you a nickname or an email address for the user, you can add the Attribute Exchange extension to your OpenID request.

Y!'s blog post announcing AX support
a later post with an updated list of supported attributes

