WSO2 身份服务器 JWT 访问令牌 [英] WSO2 Identity Server JWT Access token

查看:31
本文介绍了WSO2 身份服务器 JWT 访问令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用密码 grant_type 登录时尝试从 WSO2 身份服务器接收 JWT access_token.但我找不到任何方法来配置它.当我登录时,我会得到一个 guid 作为 access_token.

I'm trying to receive a JWT access_token from WSO2 Identity Server when logging in with password grant_type. But I can't find any way to configure this. When I sign in I get a guid as access_token.

我找到了这个,但是当你有 JWT 时,这是获取 access_token guid 的方法:https://docs.wso2.com/display/ISCONNECTORS/Configuring+JWT+Grant+Type

I found this, but this is the way to get the access_token guid when you have a JWT: https://docs.wso2.com/display/ISCONNECTORS/Configuring+JWT+Grant+Type

我还使用本教程启用了 JWT 令牌生成,但我仍然收到 guid:https://docs.wso2.com/display/IS510/JWT+Token+Generation

Also I enable JWT Token generation using this tutorial, but I'm still receiving the guid: https://docs.wso2.com/display/IS510/JWT+Token+Generation

当我在 identity.xml 中设置为 true 时,我得到一个 base64 散列的 access_token,但这不是 JWT 格式.

When I set true in identity.xml I get a base64 hashed access_token, but this is not in JWT format.

有人知道吗?

推荐答案

你可能想关注 此博客 使用 WSO2 IS 生成 JWT 访问令牌

you may want to follow this blog to generate JWT access token with WSO2 IS

另外,您可能需要关注 此链接 推送数据库架构更改生效

also, you might want to follow this link to push the database schema changes into effect

这篇关于WSO2 身份服务器 JWT 访问令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆