[英]WSO2 Identity Server JWT Access token
I'm trying to receive a JWT access_token from WSO2 Identity Server when logging in with password grant_type. 我尝试使用密码grant_type登录时从WSO2 Identity Server接收JWT access_token。 But I can't find any way to configure this. 但是我找不到任何配置方法。 When I sign in I get a guid as access_token. 登录后,我会得到一个名为access_token的GUID。
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时获取access_token guid的方法: https : //docs.wso2.com/display/ISCONNECTORS/Configuring+JWT+Grant+Type
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 我也使用本教程启用了JWT令牌生成功能,但是我仍然收到GUID: https : //docs.wso2.com/display/IS510/JWT+Token+Generation
When I set true in identity.xml I get a base64 hashed access_token, but this is not in JWT format. 当我在identity.xml中设置为true时,我得到了base64哈希的access_token,但这不是JWT格式。
Has anyone figured this out? 有人知道吗?
You can use OpenID connect to get a JWT. 您可以使用OpenID connect获取JWT。 [1] shows how to configure OIDC in Identity Server. [1]显示了如何在Identity Server中配置OIDC。 I think you already have done that. 我想您已经做到了。 So try sending scope=openid along with the token request. 因此,请尝试将scope = openid与令牌请求一起发送。
Also, check [2] for a known bug and workaround related to OIDC in Identity Server 5.2.0 另外,请检查[2]以获取与Identity Server 5.2.0中的OIDC相关的已知错误和解决方法
[1] https://docs.wso2.com/pages/viewpage.action?pageId=50514076 [1] https://docs.wso2.com/pages/viewpage.action?pageId=50514076
[2] WSO2 IS: OpenID Connect custom claims in 5.2.0? [2] WSO2是:5.2.0中的OpenID Connect自定义声明?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.