Feel like i've been spinning in my wheels for a while. I read the docs (especially authorization) several times and tried following the example but can't get what i want to work as expected. So, here's the big picture.
I have an app that knows nothing about authn and authz that i want to make publicly accessible. So using traefik as a proxy and keycloak to handle authn. Everything works as expected. End user requests page, gets re-routed to keycloak authentication, and if username and password are valid, the user is redirected to the app and all is good. I now have a new requirement to satisfy. I have another similar application, however i want a subset of users to be able to access it. One idea was to create a new realm, but am trying to find having multiple user accounts. I came across the authz docs and figured that maybe i can leverage that. Here are my questions:
- Is it possible to restrict access to an application (app is a standalone app with no ability to do any authn or authz) using keycloak AND not modifying anything on the app side?
I followed the steps
here but i was still able to access the application. Not sure if i'm misunderstanding a major concept or whether it's a simple config that somehow i missed after staring at this for too long, but some confirmation of whether that's actually possible would be great.