Keycloak Provider login results in request-compose timeout error

Viewed 376

Setup:

  • We have a HTTPS strapi application and keycloak is configured as an identity provider with the corresponding client id and secret from the keycloak client. Both strapi and keycloak are behind nginx.
  • We have a keycloak server, where the strapi is added as a client with the necessary redirect URIs configured.
  • Also, the provider.js and bootstrap.js is setup as suggested in the reference:

Issue:

  • Strapi throws an error when trying to access the client:

{"statusCode":400,"error":"Bad Request","message":{"message":"No access_token."},"data":{"message":"No access_token."}}

https://our.website.domain/strapi/auth/keycloak/callback?error=request-compose%3A%20timeout

  • In the logs, we see that the access token is not received and hence the error is thrown from strapi end. example provider.js line

Verification:

Any inputs or advise on what could be the issue?

Thank you in advance.

0 Answers
Related