首页 > 解决方案 > 当 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。我在这里做错什么了吗?

标签: wso2wso2iswso2carbon

解决方案


提到的行为是预期的。声明处理程序在通过 IS 的身份验证框架组件的身份验证过程中执行。授权遵循上述authorization_code方法,而password授权遵循不同的方法来验证用户;它针对配置的用户存储进行身份验证。

由于流程不同,您观察到的是 WSO2 IS 平台中的预期行为。


推荐阅读