Class ExternalLoginProvisioningContext
- Namespace
- Stratara.Identity.AspNetCore.Authentication
- Assembly
- Stratara.Identity.AspNetCore.dll
The facts a JIT external-login provisioning attempt is evaluated against — passed to the optional invitation gate so a host can accept or reject a first-time external sign-in based on a pending invitation, an allow-list, or any other policy.
[ExcludeFromCodeCoverage]
public sealed record ExternalLoginProvisioningContext : IEquatable<ExternalLoginProvisioningContext>
- Inheritance
-
ExternalLoginProvisioningContext
- Implements
- Inherited Members
- Extension Methods
Constructors
ExternalLoginProvisioningContext(string, string, string?, bool, ClaimsPrincipal)
The facts a JIT external-login provisioning attempt is evaluated against — passed to the optional invitation gate so a host can accept or reject a first-time external sign-in based on a pending invitation, an allow-list, or any other policy.
public ExternalLoginProvisioningContext(string LoginProvider, string ProviderKey, string? Email, bool EmailVerifiedByProvider, ClaimsPrincipal Principal)
Parameters
LoginProviderstringThe external scheme/issuer (for example
OpenIdConnect,Entra).ProviderKeystringThe issuer's stable subject identifier (
sub) — the account is linked on this, never on email.EmailstringThe email the provider asserted, or
nullwhen none was present.EmailVerifiedByProviderboolWhether the provider asserted the email as verified (
email_verified/xms_edov).PrincipalClaimsPrincipalThe full external principal, for any additional claim the gate needs.
Properties
The email the provider asserted, or null when none was present.
public string? Email { get; init; }
Property Value
EmailVerifiedByProvider
Whether the provider asserted the email as verified (email_verified/xms_edov).
public bool EmailVerifiedByProvider { get; init; }
Property Value
LoginProvider
The external scheme/issuer (for example OpenIdConnect, Entra).
public string LoginProvider { get; init; }
Property Value
Principal
The full external principal, for any additional claim the gate needs.
public ClaimsPrincipal Principal { get; init; }
Property Value
ProviderKey
The issuer's stable subject identifier (sub) — the account is linked on this, never on email.
public string ProviderKey { get; init; }