【问题标题】:Unable to get custom claims in JWT token无法在 JWT 令牌中获取自定义声明
【发布时间】:2019-02-06 20:08:54
【问题描述】:

我正在使用 WSO2 5.4.1 IDP 并将其配置为处理我的自定义声明。 当我使用 scope=openid 请求令牌时,它只返回 sub 声明。 我也想获得用户角色,但我无法在我的 id_token 中获得这些角色。

按照我已经完成的步骤

  1. 在 _system/conf/identity/oidc 中并添加声明

  2. 使用本地声明方言并为

  3. 定义自定义声明方言
  4. Service Providers 中的声明配置。

我想在我的 jwt 令牌中接收自定义声明。有人可以在这方面帮助我吗?

【问题讨论】:

    标签: wso2 jwt openid wso2is


    【解决方案1】:

    尝试将它们添加为requested claims

    参考:https://docs.wso2.com/display/IS541/Configuring+Claims+for+a+Service+Provider

    【讨论】:

    猜你喜欢
    • 2023-03-23
    • 2016-01-06
    • 2018-07-01
    • 1970-01-01
    • 2017-05-25
    • 1970-01-01
    • 2016-12-23
    • 2015-03-18
    • 2022-12-15
    相关资源
    最近更新 更多