问题描述
我们有外部声明,我们通过 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 平台中的预期行为。