Keycloak url not getting concatenated correctly

Created on 15 March 2023, almost 2 years ago
Updated 29 March 2023, almost 2 years ago

Problem/Motivation

When trying the keycloak openid auth I get the following apache error. Looking at the error it is clearly an improperly configured keycloak url

[Wed Mar 15 19:24:47.775192 2023] [proxy_fcgi:error] [pid 160737:tid 140271568262720] [client 10.220.127.13:54510] AH01071: Got error 'PHP message: Uncaught PHP Exception InvalidArgumentException: "The URI '/realms//protocol/openid-connect/auth' is invalid. You must use a valid URI scheme." at /var/www/d10/web/core/lib/Drupal/Core/Url.php line 293', referer: https://www.domain.org/user/login

I set the

  • Client ID = my client name set in keycloak
  • Client secret
  • Allowed domains = domain.org \n www.domain.org
  • Keycloak base URL = https://keycloak.xxprivxxx.org (I am not using the path based approach so not using /auth)
  • Keycloak realm = = my realm name set in keycloak

Is there a setting somewhere that is causing the incorrectly assembled url as thrown in the error message?

πŸ› Bug report
Status

Fixed

Version

2.2

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States HeneryH

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

Comments & Activities

Production build 0.71.5 2024