After installing the OpenID Connect and Keycloak OpenID Copnnect modules, I want to add a Keycloak login service.

When navigating to admin/config/people/openid-connect/add/keycloak, I get a HTTP error 500. Anyone having this issue?

Drupal version: 10.0.3
OpenID Connect version: 3.0.0-alpha2
Keycloak OpenId Connect version: 2.2.0-beta5

Issue fork keycloak-3347727

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

robbe03 created an issue. See original summary.

bramdriesen’s picture

Priority: Normal » Major

Quickly tested this and got following error:

Fatal error: Declaration of Drupal\keycloak\Plugin\OpenIDConnectClient\Keycloak::defaultConfiguration() must be compatible with Drupal\openid_connect\Plugin\OpenIDConnectClientBase::defaultConfiguration(): array in /var/www/html/repos/keycloak/src/Plugin/OpenIDConnectClient/Keycloak.php on line 59

Seems like something changed in the latest OpenID Connect Client Base.

bramdriesen’s picture

Status: Active » Needs work

Still some other things here to fix:

Symfony\Component\Routing\Exception\MissingMandatoryParametersException: Some mandatory parameters are missing ("openid_connect_client") to generate a URL for route "openid_connect.redirect_controller_redirect". in Drupal\Core\Routing\UrlGenerator->doGenerate() (line 181 of core/lib/Drupal/Core/Routing/UrlGenerator.php).

bramdriesen’s picture

Credit for LudwigJP

  • BramDriesen committed d2a80666 on 2.2.x
    Issue #3347727: Error 500 when adding Keycloak Open ID
    
bramdriesen’s picture

Status: Needs work » Fixed

I fixed the errors here, would appreciate you testing the latest tagged release: 2.2.0-beta6

I spotted a few more issues in other files, will work on those in separate issues, so it might be there is a higher beta when you come back to this.

Please re-open or create a new ticket when you have tested it again.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.