mariovalney / laravel-keycloak-web-guard

Simple Keycloak Guard to Laravel Web Routes - https://packagist.org/packages/vizir/laravel-keycloak-web-guard
146 stars 80 forks source link

Keycloak 21+ #99

Open alanbarcelos1998 opened 1 year ago

alanbarcelos1998 commented 1 year ago

Hello.

I'm using keycloak 21, I would like to know if this package has support for this version.

When I forward to the login route, it returns a problem that I identified as being in the URL.

In keycloak 21 the route does not start with /auth but with /realms/{nameRealm}/protocol/openid-connect/auth

AlexanderGabriel commented 1 year ago

Have you tried to adjust KEYCLOAK_BASE_URL in .env of you project or (ether or, not both) change "http-relative-path" to "/auth" in keycloak to match this again? See: https://www.keycloak.org/server/all-config