mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-11-21 17:16:54 +02:00
[Web] fix identity_provider get-redirect
This commit is contained in:
parent
e8c122029d
commit
3848a6dae2
@ -2403,7 +2403,7 @@ function identity_provider($_action, $_data = null, $_extra = null) {
|
||||
break;
|
||||
case "get-redirect":
|
||||
$iam_settings = identity_provider('get');
|
||||
if ($iam_settings['authsource'] !== 'keycloak' || $iam_settings['authsource'] !== 'generic-oidc')
|
||||
if ($iam_settings['authsource'] != 'keycloak' && $iam_settings['authsource'] != 'generic-oidc')
|
||||
return false;
|
||||
$provider = $_data['iam_provider'];
|
||||
$authUrl = $provider->getAuthorizationUrl();
|
||||
|
@ -30,7 +30,11 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/header.inc.php';
|
||||
$_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
|
||||
$_SESSION['index_query_string'] = $_SERVER['QUERY_STRING'];
|
||||
|
||||
$has_iam_sso = identity_provider("get-redirect") ? true : false;
|
||||
$has_iam_sso = false;
|
||||
if ($iam_provider){
|
||||
$has_iam_sso = identity_provider("get-redirect", array('iam_provider' => $iam_provider)) ? true : false;
|
||||
}
|
||||
|
||||
|
||||
$template = 'index.twig';
|
||||
$template_data = [
|
||||
|
Loading…
Reference in New Issue
Block a user