Enterprise SSO & Audit
Configure DNS-verified OIDC (PKCE) and SAML 2.0 Single Sign-On, JIT role mapping, SHA-256 hash-chained Audit Logs, and live SIEM webhook streaming.
Domain discovery & DNS verification
On /login, typing a corporate email triggers POST /api/auth/discover. Automatic IdP discovery and enforcement activate only after domain ownership is verified via DNS TXT record:
Type: TXT
Host: _mtakit-sso.acme.com
Value: mtakit-sso-verify=<connection_verification_token>/api/v1/sso/{id}/verify-domainRequires sso:manageOIDC & SAML 2.0 setup
MTAKit supports Okta, Microsoft Entra ID, Google Workspace, Ping, and any standards-compliant OIDC or SAML 2.0 identity provider from Dashboard → Security & SSO.
| Protocol | Endpoint | Security |
|---|---|---|
| OIDC | /api/auth/sso/oidc/{id}/callback | Authorization Code + PKCE (S256), Redis single-use nonce, JWKS RS/ES/EdDSA check |
| SAML 2.0 ACS | /api/auth/sso/saml/{id}/acs | Signed XML assertion verification, RelayState AES-256-GCM + replay nonce guard |
| SAML Metadata | /api/auth/sso/saml/{id}/metadata | Auto-generated SP Entity ID & ACS XML metadata |
JIT provisioning & Break-Glass
With Just-in-Time provisioning enabled, verified logins automatically create workspace users and assign the highest-privileged MTAKit role matching your groupRoleMapping (owner > admin > developer > viewer), falling back to defaultRole.
Immutable SHA-256 Audit Log
Security events (logins, SSO updates, API keys, nodes, provider routes, and email.inspected previews) are written append-only in PostgreSQL under per-tenant advisory locks with sequential SHA-256 hash chaining (entry_hash = SHA256(prev_hash + "\n" + canonicalJson)).
/api/v1/audit/verifyRequires audit:readNDJSON export & SIEM streaming
Download compliance archives on demand via GET /api/v1/audit/export or configure persistent HTTPS collectors in Dashboard → Audit Log:
/api/v1/audit/siemRequires audit:manageThe worker ships chronological application/x-ndjson batches with encrypted Authorization headers, SSRF DNS-rebinding guards, and watermark cursor tracking.