agent foundation

This commit is contained in:
2026-03-06 00:44:52 +01:00
parent 9819cba733
commit 9a08f96c11
199 changed files with 8522 additions and 1880 deletions

View File

@@ -35,6 +35,8 @@ class SsoUserLinkService
}
$providerKey = $this->tenantSsoGateway->microsoftProviderKey();
// Look up by OID first (stable Microsoft object ID), fall back to issuer+subject
// to handle tenants that migrated from an older OIDC setup without OID.
$identity = $this->externalIdentityGateway->findByProviderTidOid(
$providerKey,
$tid,
@@ -257,6 +259,8 @@ class SsoUserLinkService
return $locale;
}
// SSO users never log in with a password, but the DB column is NOT NULL.
// The suffix ensures the hash satisfies any strength validators.
private function randomPassword(): string
{
return 'sso-' . bin2hex(random_bytes(24)) . '-A1!';