Skip to main content
Table of Contents

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

LoginProvider string

The external scheme/issuer (for example OpenIdConnect, Entra).

ProviderKey string

The issuer's stable subject identifier (sub) — the account is linked on this, never on email.

Email string

The email the provider asserted, or null when none was present.

EmailVerifiedByProvider bool

Whether the provider asserted the email as verified (email_verified/xms_edov).

Principal ClaimsPrincipal

The full external principal, for any additional claim the gate needs.

Properties

Email

The email the provider asserted, or null when none was present.

public string? Email { get; init; }

Property Value

string

EmailVerifiedByProvider

Whether the provider asserted the email as verified (email_verified/xms_edov).

public bool EmailVerifiedByProvider { get; init; }

Property Value

bool

LoginProvider

The external scheme/issuer (for example OpenIdConnect, Entra).

public string LoginProvider { get; init; }

Property Value

string

Principal

The full external principal, for any additional claim the gate needs.

public ClaimsPrincipal Principal { get; init; }

Property Value

ClaimsPrincipal

ProviderKey

The issuer's stable subject identifier (sub) — the account is linked on this, never on email.

public string ProviderKey { get; init; }

Property Value

string