How to get OpenID user profile information?

After logging in to SO, my alias is displayed at the top.

When I install openid on my site, I do not receive any profile information.

I tried to implement OpenID using openid-selector and Zend Framework

The response options that I get:

openid.assoc_handle B2Jgsdf7jkDsdfUwWBGMHUshLmavymH... openid.claimed_id https://me.yahoo.com/MyYahooId#50a9f openid.identity https://me.yahoo.com/MyYahooId openid.mode id_res openid.ns http://specs.openid.net/auth/2.0 openid.ns.pape http://specs.openid.net/extensions/pape/1.0 openid.op_endpoint https://open.login.yahooapis.com/openid/op/auth openid.pape.auth_level.nist 0 openid.pape.auth_level.ns.nist http://csrc.nist.gov/publications/nistpubs/800-63/SP800-63V1_0_2.pdf openid.pape.auth_policies http://schemas.openid.net/pape/policies/2007/06/none openid.realm http://mywebsite.com/ openid.response_nonce 2009-10-28T18:23:05Zyj0aF9sdfsdfCmoegeAiQ-- openid.return_to http://mywebsite.com/ openid.sig U9O4UpuPsdfdsfsdfBHbVLdjiSyo= openid.signed assoc_handle,claimed_id,identity,mode,ns,op_endpoint,response_nonce,return_to,signed,ns.pape,pape.auth_level.ns.nist,pape.auth_level.nist,pape.auth_policies 

What is the reason I am not receiving profile information, such as an alias? When SO uses an openid selector, how does it get an alias?

+4
php zend-framework openid openid-selector
source share
1 answer

Any information other than the URL typed by the user and the URL of the endpoint must be obtained through the Simple Registration (SREG) or Attribute (AX) extensions for OpenID.

You must explicitly request them when requesting authentication.

Zend consumer SREG documentation can be found here: http://framework.zend.com/manual/en/zend.openid.consumer.html#zend.openid.consumer.sreg

Please note that this information is not guaranteed, and providers are given the freedom to decide (with or without user input) to retain any requested information or not directly support it.

+4
source share

All Articles