'keycloak and kong resource

I am using keycloak with kong openid. I can't login when I'm not logged in, so it works. But when I define a resource /admin, I want only users with admin role to enter.

/admin --> access just admin role

/ --> access all roles

/analiyst --> access just admin and analyst role.

No matter what I did, it didn't work, I changed everything and tried.

Kong does not see my resoures, every user can enter every endpoint.

users do not log in to every page

kong oidc

and keycloak realm myapp: get access token public, kong: only konga plugin connect confidental keycloak1

KEYCLOAK2

KEYCLOAK3



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source