代码之家  ›  专栏  ›  技术社区  ›  Alex L

如何获取OpenID用户配置文件信息?

  •  4
  • Alex L  · 技术社区  · 15 年前

    登录SO后,我的昵称显示在顶部。

    当我在我的站点上设置openid时,我没有得到任何配置文件信息。

    openid-selector Zend Framework

    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
    

    当SO使用openid选择器时,它如何获得昵称?

    1 回复  |  直到 15 年前
        1
  •  4
  •   Yang Zhao    15 年前

    必须通过简单注册(SREG)或OpenID的属性交换(AX)扩展来检索除声明的\u id和端点URL之外的任何信息。

    Zend的消费者SREG文档可在以下位置找到: http://framework.zend.com/manual/en/zend.openid.consumer.html#zend.openid.consumer.sreg

    请注意,这些信息不受保障,提供商有权决定(有无用户输入)保留任何和所有请求的信息,或不直接支持这些信息。

    推荐文章