mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
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:
@@ -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());
|
||||
|
Reference in New Issue
Block a user