wso2 - 当 grant_type=password (WSO2 5.10) 时如何触发 CustomClaimHandler
问题描述
我们有外部声明,我们正在使用 CustomClaimHandler
[authentication.framework.extensions]
claim_handler="org.wso2.custom.claim.handler.CustomClaimHandler"
当大类型为 grant_type=authorization_code 时,它工作正常但是当我们使用 grant_type=password 运行时,不会触发 CustomClaimHandler。我在这里做错什么了吗?
解决方案
提到的行为是预期的。声明处理程序在通过 IS 的身份验证框架组件的身份验证过程中执行。授权遵循上述authorization_code
方法,而password
授权遵循不同的方法来验证用户;它针对配置的用户存储进行身份验证。
由于流程不同,您观察到的是 WSO2 IS 平台中的预期行为。
推荐阅读
- computer-science - 给定一个类似“树”的数据结构,打印出从叶子到根的所有路径
- c# - If 语句覆盖先前的 Setter
- dependency-injection - 如何在 Angular 9 中将对话框注入到服务中
- angular - 试图附加多个图像,但从角度数组中只得到一个
- jinja2 - 变量名称和值中的下划线
- wildfly - ManagedScheduledExecutorService 无法运行计划任务,因为容器已挂起
- amazon-web-services - 是否可以在将项目添加到 SQS 队列时触发 AWS Fargate 任务?
- kotlin - 遍历嵌套的 JsonObject
- node.js - 将 Express 与运行 PM2 的 NodeJS 一起使用:POST res 发送到 ARC 的问题
- wix - 尝试安装已安装应用程序的早期版本会导致错误