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 Error] User cannot be authenticated #41

Closed gorkagv closed 3 years ago

gorkagv commented 3 years ago

40

The hasExpired function (KeycloakAccessToken) was returning true if $exp was greater than time(). The hasExpired function only should returning true when the $exp is less than or equal time(), that is, when the token has expired.

lucca257 commented 3 years ago

i`m having the same problem

mariovalney commented 3 years ago

Hi! I'm really sorry for the inconvenience and thanks for your PR. It's already fixed in 2.3.1.

Note: Even with this problem the auth process should works, but will always refresh the access token.