我正在尝试探索WSO2 APIM 3.1.0的JWT功能,该功能将特定的属性(如最终用户/订户和应用程序详细信息)从WSO2 API网关传递到后端。我想知道在哪里可以找到默认的JWT生成器jar或类:“ org.wso2.carbon.apimgt.keymgt.token.JWTGenerator”。我检查了
默认的JWT生成器类发送详细信息,如下所示。我想知道,我们是否可以自定义发送用户/订户角色以及以下详细信息。需要有关此功能的建议。
{
"http://wso2.org/claims/applicationtier": "Unlimited",
"http://wso2.org/claims/version": "1.0.0",
"http://wso2.org/claims/keytype": "PRODUCTION",
"iss": "wso2.org/products/am",
"http://wso2.org/claims/applicationname": "DefaultApplication",
"keytype": "PRODUCTION",
"http://wso2.org/claims/enduser": "john@carbon.super",
"http://wso2.org/claims/enduserTenantId": "-1234",
"http://wso2.org/claims/subscriber": "john",
"http://wso2.org/claims/tier": "Unlimited",
"scope": "order_pizza",
"exp": "1597753868867",
"http://wso2.org/claims/applicationid": "4",
"http://wso2.org/claims/usertype": "Application_User",
"consumerKey": "e5syg4saM5hAxDZkUYA1gy2hyy0a",
"http://wso2.org/claims/apicontext": "/pizzashack/1.0.0"
}
答案 0 :(得分:1)