robsontenorio / laravel-keycloak-guard

🔑 Simple Keycloak Guard for Laravel
MIT License
419 stars 137 forks source link

TokenException #62

Closed gvalmana closed 2 years ago

gvalmana commented 2 years ago

Hello how can I avoid that mi API Restfull return KeycloakGuard\Exceptions\TokenException: [Keycloak Guard] Expired token in file and error 500 when the keycloak access token is expired, I attached below the screen of postman answer, sorry for my bad english and thanks for your help imagen

pierrevensy commented 2 years ago

Hello how can I avoid that mi API Restfull return KeycloakGuard\Exceptions\TokenException: [Keycloak Guard] Expired token in file and error 500 when the keycloak access token is expired, I attached below the screen of postman answer, sorry for my bad english and thanks for your help imagen

I have the same issue

robsontenorio commented 2 years ago

Every token issued on Keycloak has a TTL (expiration). You can change this setting on Keycloak for your client. This package only validates if it has expired.