mozilla / mozilla-django-oidc

A django OpenID Connect library
https://mozilla-django-oidc.readthedocs.io
Mozilla Public License 2.0
453 stars 169 forks source link

Keycloak call https://<kercloak-server-url>/auth/realms/mmc/protocol/openid-connect/token with refresh token and fails with 400 #519

Open freaklearner opened 9 months ago

freaklearner commented 9 months ago

We have a react app and we're using keycloak for login. After login, Keycloak calling this api "POST https:///auth/realms/mmc/protocol/openid-connect/token" twice first with refresh token that fails with 400 and then with code, grant_type, client_id that return 200. Keycloak calling this after regular interval. This calling making application refresh after regulat interval. How to avoid this. If there's any keycloak settings to be set or is there's any way to handle it properly.