Thanks colin.eininger,
I have also tried to update the Code for Keycloak module in similar manner but i am also reciveing the same error in the authorize function of "/keycloak/src/Plugin/OpenIDConnectClient/Keycloak.php"
I have made this changes because I need my application to auto redirect to SSO server's login page when "user/login" page of the app has been called
Changes i made were following
File: keycloak/src/Service/KeycloakService.php >>
Replace return $this->config->get('enabled'); with return $this->config->get('status'); (in isEnabled function)
Replaced protected const OPENID_CONNECT_CONFIG_NAME = 'openid_connect.settings.keycloak'; with protected const OPENID_CONNECT_CONFIG_NAME = 'openid_connect.client.keycloak'
File: keycloak/src/Controller/KeycloakController.php
Replaced $configuration = $this->config('openid_connect.settings.keycloak')->get('settings'); with $configuration = $this->config('openid_connect.client.keycloak')->get('settings');
File: keycloak/src/Plugin/OpenIDConnectClient/Keycloak.php
Replaced 'openid_connect_client' => $this->parentEntityId, with 'openid_connect_client' => 'keycloak',
But i end up receiving following error
"LogicException: The controller result claims to be providing relevant cache metadata, but leaked metadata was detected. Please ensure you are not rendering content too early. Returned object class: Drupal\Core\Routing\TrustedRedirectResponse. in Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (line 154 of core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php)."
As i am new to Drupal I do not understand this what this error means though i tried the solution listed on internet for resolving such kind of erro but no luck.
Please help on this