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:
johnnyq
2026-11-29 20:13:10 -05:00
parent 626f472990
commit fffa5680db
32 changed files with 1671 additions and 340 deletions

33
db.sql
View File

@@ -1915,6 +1915,37 @@ CREATE TABLE `history` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `identity_providers`
--
DROP TABLE IF EXISTS `identity_providers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `identity_providers` (
`identity_provider_id` int(11) NOT NULL AUTO_INCREMENT,
`identity_provider_kind` varchar(20) NOT NULL,
`identity_provider_name` varchar(100) NOT NULL,
`identity_provider_enabled` tinyint(1) NOT NULL DEFAULT 1,
`identity_provider_agents` tinyint(1) NOT NULL DEFAULT 0,
`identity_provider_contacts` tinyint(1) NOT NULL DEFAULT 0,
`identity_provider_domains` varchar(1000) NOT NULL DEFAULT '',
`identity_provider_required` tinyint(1) NOT NULL DEFAULT 0,
`identity_provider_client_id` varchar(255) NOT NULL DEFAULT '',
`identity_provider_client_secret` varchar(1000) NOT NULL DEFAULT '',
`identity_provider_tenant` varchar(100) NOT NULL DEFAULT '',
`identity_provider_url` varchar(500) NOT NULL DEFAULT '',
`identity_provider_port` int(11) NOT NULL DEFAULT 0,
`identity_provider_security` varchar(10) NOT NULL DEFAULT '',
`identity_provider_username` varchar(10) NOT NULL DEFAULT '',
`identity_provider_redirect_path` varchar(100) NOT NULL DEFAULT '/login_provider.php',
`identity_provider_used_at` datetime DEFAULT NULL,
`identity_provider_created_at` datetime NOT NULL DEFAULT current_timestamp(),
`identity_provider_updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(),
PRIMARY KEY (`identity_provider_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `income_import_rules`
--
@@ -4116,8 +4147,6 @@ CREATE TABLE `settings` (
`config_statement_monthly` tinyint(1) NOT NULL DEFAULT 0,
`config_statement_day` tinyint(2) NOT NULL DEFAULT 1,
`config_billing_email_attach_pdf` tinyint(1) NOT NULL DEFAULT 1,
`config_azure_client_id` varchar(200) DEFAULT NULL,
`config_azure_client_secret` varchar(200) DEFAULT NULL,
`config_module_enable_itdoc` tinyint(1) NOT NULL DEFAULT 1,
`config_module_enable_accounting` tinyint(1) NOT NULL DEFAULT 1,
`config_client_portal_enable` tinyint(1) NOT NULL DEFAULT 1,