Could not retrieve tokens. Details: cURL error 6: Could not resolve host:

Created on 1 June 2023, over 1 year ago
Updated 6 June 2023, over 1 year ago

Problem

After signing in with keycloak I get redirect back to my drupal site, but here I get the error that the tokens could not be retrieved. I'm using Traefik in combination with Docker. My host address is 'keycloak.localhost'
The error
Could not retrieve tokens. Details: cURL error 6: Could not resolve host: keycloak.localhost (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://keycloak.localhost/realms/vmvv/protocol/openid-connect/token

I also tried it with the localhost path, but here the connection gets refused.
Could not retrieve tokens. Details: cURL error 7: Failed to connect to 127.0.0.1 port 8180: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://127.0.0.1:8180/realms/vmvv/protocol/openid-connect/token

Any idea how to configure either Keycloak or Drupal to make this work locally?

💬 Support request
Status

Closed: works as designed

Version

2.2

Component

Miscellaneous

Created by

🇧🇪Belgium cedricl

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024