ExternalIdentityRepositoryInterface
interface ExternalIdentityRepositoryInterface (View source)
Persistence for the OIDC and SAML identity links that tie a provider subject to a local user.
Methods
The user id linked to an OIDC subject at a provider, matched byte-exact.
The user id linked to a SAML NameID at a provider, matched byte-exact.
Create the OIDC link for a user at a provider, or refresh it when one exists.
Create the SAML link for a user at a provider, or refresh it when one exists.
OIDC links whose user no longer exists.
Delete every OIDC link whose user no longer exists.
Ids of the OIDC links for this subject whose user no longer exists.
Ids of the SAML links for this subject whose user no longer exists.
No description
No description
Details
int|null
findUserIdByOidcSubject(string $subject, string $providerId)
The user id linked to an OIDC subject at a provider, matched byte-exact.
int|null
findUserIdBySamlSubject(string $subject, string $providerId)
The user id linked to a SAML NameID at a provider, matched byte-exact.
void
linkOidc(int $userId, string $providerId, string $subject, string $username, string $email)
Create the OIDC link for a user at a provider, or refresh it when one exists.
void
linkSaml(int $userId, string $providerId, string $subject, string $username, string $email)
Create the SAML link for a user at a provider, or refresh it when one exists.
array
findOrphanedOidcLinks()
OIDC links whose user no longer exists.
int
deleteOrphanedOidcLinks()
Delete every OIDC link whose user no longer exists.
array
findOrphanedOidcLinkIds(string $subject, string $providerId)
Ids of the OIDC links for this subject whose user no longer exists.
array
findOrphanedSamlLinkIds(string $subject, string $providerId)
Ids of the SAML links for this subject whose user no longer exists.
void
deleteOidcLinks(array $ids)
No description
void
deleteSamlLinks(array $ids)
No description