Keycloak provider error

System Information
  • Strapi Version: 4.22.1
  • Operating System: ubuntu 22.04
  • Database: postgres
  • Node Version: 20.11
  • NPM Version:
  • Yarn Version:

I set up a keyclock in the admin of ​​the strapi. Next, I make a request to the http://strapi/api/auth/keycloak/callback?access_token=keycloakToken endpoint. In response, I receive an error that the certificate has expired, although there are no problems with the certificate. Ok, I disabled certificate verification on the node. I run the request again and get a 404 error. As far as I have found out, this happens at the stage of sending a request to keycloak to obtain userinfo. The purest library does it. If I send such a request via Postman, then everything works without problems. What can be done about this problem?
The same request to http://strapi/api/auth/google/callback?access_token=googleToken works well.

1 Like