【问题标题】:WSO2 Identity Server, Spring Security and OpenID attributesWSO2 Identity Server、Spring Security 和 OpenID 属性
【发布时间】:2013-11-12 12:52:28
【问题描述】:

我有一个使用 Spring Security 的 Web 应用程序。我想使用我在 WSO2 身份服务器上使用 OpenID 配置的帐户登录。

我可以正常登录,身份服务器要求输入密码并将我重定向回我的网络应用程序。到现在为止还挺好。但是,当我尝试使用属性交换请求其他属性时,我得到空值。

我尝试了几种不同的类型:

schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname
axschema.org/namePerson/first
urn:scim:schemas:core:1.0:name.givenName
schema.openid.net/2007/05/claims/nickname
wso2.org/claims/givenname

但它们似乎都没有产生任何结果。

我是否遗漏了一些明显的东西?

【问题讨论】:

    标签: spring-security wso2 openid wso2is attribute-exchange


    【解决方案1】:

    原因可能是字段也是空的。 您可以尝试使用以下声明 URI,http://wso2.org/claims/role。默认情况下,所有用户都具有所有人角色。所以应该返回这个值。

    【讨论】:

      猜你喜欢
      • 2013-10-05
      • 1970-01-01
      • 2015-05-21
      • 2016-06-28
      • 2020-04-25
      • 1970-01-01
      • 1970-01-01
      • 2015-02-09
      • 1970-01-01
      相关资源
      最近更新 更多