mirror of
https://github.com/itflow-org/itflow
synced 2026-12-02 00:59:03 +00:00
Add identity providers for agents and client contacts: Admin, Identity Providers under Integrations adds Microsoft 365, Google Workspace and Nextcloud (OIDC Identity Provider app) sign-in buttons and IMAP mail-password sign-in, each for agents, client contacts or both and for the email domains listed; no account is created by signing in; Microsoft, Google and Nextcloud stand in for ITFlow two-step sign-in while IMAP still asks for the code; a provider can be required, turning off password sign-in on its domains with passkeys and administrator passwords still working; credentials stay locked after a provider or mail password sign-in until the ITFlow password is typed; the client portal Microsoft Entra single sign-on moves to a Microsoft 365 provider keeping its redirect address; database 4.2.5 adds identity_providers and drops the old Entra settings; 26.12.3 changelog entries
This commit is contained in:
@@ -75,7 +75,7 @@ $portal_never_sql = "NOT EXISTS (SELECT 1 FROM logs WHERE log_user_id = users.us
|
||||
$portal_accesses = [
|
||||
'' => ['label' => 'Can sign in', 'icon' => 'fas fa-check-circle', 'where' => PORTAL_USER_ON_SQL],
|
||||
'local' => ['label' => 'Password', 'icon' => 'fas fa-key', 'where' => PORTAL_USER_ON_SQL . " AND user_auth_method = 'local'"],
|
||||
'azure' => ['label' => 'Microsoft 365', 'icon' => 'fab fa-microsoft', 'where' => PORTAL_USER_ON_SQL . " AND user_auth_method = 'azure'"],
|
||||
'azure' => ['label' => 'Identity provider', 'icon' => 'fas fa-id-badge', 'where' => PORTAL_USER_ON_SQL . " AND user_auth_method = 'azure'"],
|
||||
'nomfa' => ['label' => 'No two-step', 'icon' => 'fas fa-unlock', 'where' => PORTAL_USER_ON_SQL . " AND user_auth_method = 'local' AND (user_token IS NULL OR user_token = '')"],
|
||||
'never' => ['label' => 'Never signed in', 'icon' => 'fas fa-user-clock', 'where' => PORTAL_USER_ON_SQL . " AND $portal_never_sql"],
|
||||
'off' => ['label' => 'Access off', 'icon' => 'fas fa-ban', 'where' => 'NOT (' . PORTAL_USER_ON_SQL . ')'],
|
||||
@@ -446,8 +446,8 @@ $csrf = $_SESSION['csrf_token'];
|
||||
$login = $portal_logins[$user_id] ?? null;
|
||||
$remember_count = $portal_remembered[$user_id] ?? 0;
|
||||
$sign_in_pills = $is_on
|
||||
? '<span class="badge rounded-pill bg-success-subtle text-success-emphasis fw-normal" title="' . ($is_local ? 'Signs in with a password' : 'Signs in with their Microsoft 365 account') . '"><i class="'
|
||||
. ($is_local ? 'fas fa-key' : 'fab fa-microsoft') . ' me-1"></i>' . ($is_local ? 'Password' : 'Microsoft 365') . '</span>' . ($is_local ? ' ' . $portal_two_step($row) : '')
|
||||
? '<span class="badge rounded-pill bg-success-subtle text-success-emphasis fw-normal" title="' . ($is_local ? 'Signs in with a password' : 'Signs in only with ' . escapeHtml(identityProviderContactsWording())) . '"><i class="'
|
||||
. ($is_local ? 'fas fa-key' : 'fas fa-id-badge') . ' me-1"></i>' . ($is_local ? 'Password' : 'Identity provider') . '</span>' . ($is_local ? ' ' . $portal_two_step($row) : '')
|
||||
: '<span class="badge rounded-pill bg-secondary-subtle text-secondary-emphasis fw-normal" title="' . escapeHtml($off_why) . '"><i class="fas fa-ban me-1"></i>Access off</span>';
|
||||
?>
|
||||
<tr class="itflow-ticket-row" data-portal-user="<?= $user_id ?>">
|
||||
|
||||
Reference in New Issue
Block a user