- Issue created by @gogowitsch
- π¨π¦Canada joseph.olstad
Reports say that there was a regression in alpha6 of openid_connect
Temporary workaround :
composer require drupal/openid_connect:'3.0.0-alpha5'
see changelog in alpha6 to chase this down
- π¨π¦Canada joseph.olstad
As per comment #22 in this issue, reverting to Alpha5 is a temporary workaround to the above mentioned error.
#3382665-22: Replace Drupal login with Keycloak single sign-on (SSO) is not working β
- π¦πΊAustralia dpi Perth, Australia
The project doesnt utilise `openid_connect.openid_connect` in 2.2.1?
Are you sure its this project.
Can we get a stack trace from the error?
- π¦πΊAustralia mstrelan
Probably π Create and utilise autowiring aliases for OpenID Connect Active
- π¨π¦Canada joseph.olstad
@gogowitsch please test again alpha6 but apply this patch on openid_connect alpha6, possibly resolve the issue you reported.
https://www.drupal.org/files/issues/2025-02-17/openid_connect-revert-346... β
- π©πͺGermany gogowitsch
@joseph.olstad: Yes, applying the patch to alpha6 solves the error on rebuilding the cache. Thanks for the fast response.
- π¨π¦Canada joseph.olstad
@gogoswitch, ok can you please now remove the patch, update your build so that you get the full alpha6
now before you start using the site, run the hook updates
Ex:
drush updb -y;
or
visite update.php
Did the schema updates run without error?
Now test again.
- πΊπΈUnited States pfrilling Minster, OH
If @joseph.olstad's fix doesn't work. Can you also try the following drush commands after updating:
drush updatedb --no-cache-clear drush cache:rebuild
- π¦πΊAustralia dpi Perth, Australia
Also,
Which core version.
And are you running any patches with each/either of the OIDC / Keycloack modules. - πΊπΈUnited States pfrilling Minster, OH
Cross posting here, but there is a potential fix for the non-existent service error posted in this comment: https://www.drupal.org/project/openid_connect/issues/3462532#comment-159... π Create and utilise autowiring aliases for OpenID Connect Active . Please apply the patch from MR #144 to Alpha6 and report back on whether it starts working for you.
- π¨π¦Canada joseph.olstad
@gogositsch
I followed the link outlined by @pfrilling in comment #13
Basically you can re-try alpha6 vanilla but apply this patch over top of openid_connect
So basically, replace the patch from comment #6 with the patch from here.
If you confirm the results it will help the openid_connect project as per #3462532-28: Create and utilise autowiring aliases for OpenID Connect β
- π©πͺGermany gogowitsch
Okay, so here are the 3 ways an update from keycloak v1.8.0 => 2.2.1 works:
- explicitly require openid_connect 3.0.0-alpha5 first, then update to alpha6
- require drupal/externalauth:^2 and enable the module with
drush en externalauth
- Use the patch from #?.
Using the patch from #?? didnβt work on my install, because the module externalauth was not enabled. So clearing the Drupal cache with
drush cr
resulted in this error:In CheckExceptionOnInvalidReferenceBehaviorPass.php line 119:
The service "openid_connect.openid_connect" has a dependency on a non-existent service "externalauth.authmap".