PHRAS-4007: Auth provider - add keycloak provider - openid (#4462)

* keycloak provider

* add readme

* comment regenarete password

* add exclusive option to provider an column can_renew_passwor to user

* default exclusive false

* always compatible with psauth

* bump image tag .env

* bump Version to 4.1.8-rc9

* bump version to rc12

* add autoconnect
This commit is contained in:
Aina Sitraka
2024-04-30 15:15:56 +03:00
committed by GitHub
parent b0eba5217c
commit d6849fd580
32 changed files with 1421 additions and 369 deletions

View File

@@ -209,7 +209,8 @@ class PSExposeController extends Controller
if (!$session->has($passSessionName) && $providerId != null) {
try {
$provider = $this->getAuthenticationProviders()->get($providerId);
if ($provider->getType() == 'PsAuth' && $exposeConfiguration['auth_provider_name'] == $providerId) {
// class name
if (($provider->getType() == 'Openid' || $provider->getType() == 'PsAuth') && $exposeConfiguration['auth_provider_name'] == $providerId) {
$session->set($passSessionName, ['access_token' => $provider->getAccessToken()]);
$session->set($this->getLoginSessionName($exposeName), $provider->getUserName());