且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

尝试使用 wso2 登录 dockerized 应用程序时出现“提供的授权授予无效"错误

更新时间:2022-12-04 15:26:07

感谢所有评论并试图找出我提到的问题的解决方案的人.我得到了这个问题的解决方案.当我多次尝试通过在配置中进行排列和组合登录时,身份验证对我来说被阻止了.作为一个原因,我无法登录并生成访问令牌.我能够通过更改 identity.xml 文件中 IS 中的标志来解决它.将 UserOperationEventListener 启用从 'true' 更改为 'false' .

Thanks for everyone who commented and tried to figure out the solution for the issue i mentioned. I got the resolution for the issue . As i tried multiple times to login by doing permutations and combinations in configurations, authentication was blocked for me. As a reason, i couldn't login and generate access token . I was able to resolve it by changing a flag in identity.xml file inside IS . Changed the UserOperationEventListener enabling from 'true' to 'false' .

之前:

<EventListener enable="true" name="org.wso2.carbon.identity.governance.listener.IdentityMgtEventListener" orderId="95" type="org.wso2.carbon.user.core.listener.UserOperationEventListener"/>

之后:

<EventListener enable="false" name="org.wso2.carbon.identity.governance.listener.IdentityMgtEventListener" orderId="95" type="org.wso2.carbon.user.core.listener.UserOperationEventListener"/>

此更改允许我阻止无效的身份验证检查.无论如何,我们正在从我们的代码方面添加该检查.

This change allowed me to block the invalid authentication check. We are anyway adding that check from our code side.