与keycloak 403的wildfly集成禁止错误 [英] wildfly integration with keycloak 403 forbidden error

查看:126
本文介绍了与keycloak 403的wildfly集成禁止错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个与keycloak集成的应用程序.该应用程序在wildfly服务器上运行.我使用web.xml对keycloak进行身份验证(作为Login config).除此之外,我使用keycloak.json文件,在其中定义应用程序中的keycloak领域设置. 当我调用应用程序页面时,将打开keycloak登录页面,输入凭据后,它将返回到403禁止错误的状态.

I have an application integrated with keycloak. THe application runs on wildfly server. I use web.xml to authenticate keycloak(as Login config). Apart from that i use keycloak.json file, where i define the keycloak realm settings in application. When i invoke the application pages, the keycloak login pages opens, after entereing the credentials, it comes back to wildfly with 403 forbidden error.

以前,相同的设置可以正常工作,但是现在启用ssl后,我遇到了这个问题.

Previously, the same setup was working but now after enabling ssl, i'm facing this issue.

请帮助我解决此问题,它是否需要针对ssl进行任何其他附加设置.

Please help me in resolving the issue, does it require any other additional setup for ssl.

推荐答案

问题出在密钥斗篷配置上.为我的应用程序创建的角色没有作用域.启用角色的全部权限后,问题得到解决.

The problem was with the keycloak configuration. The roles created for my application did not have scope. after enabling the role to full scope, the issue got resolved.

这篇关于与keycloak 403的wildfly集成禁止错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆