Class ExternalAuthResult

Assembly: redb.Identity.Core.dll

Result of an external authentication attempt.

public sealed class ExternalAuthResult

Inheritance

Object→ExternalAuthResult

Properties

AdditionalClaims

Additional claims from the external system (department, title, etc.).

public Dictionary<string, string>? AdditionalClaims { get; set; }

DisplayName

Display name from the external directory.

public string? DisplayName { get; }

Email

Email from the external directory.

public string? Email { get; }

ErrorMessage

Error message for failed authentication.

public string? ErrorMessage { get; }

ExternalId

Unique identifier in the external system (DN, sub, UPN, etc.).

public string? ExternalId { get; }

FamilyName

Family name (last name).

public string? FamilyName { get; }

GivenName

Given name (first name).

public string? GivenName { get; }

Phone

Phone from the external directory.

public string? Phone { get; }

Succeeded

Whether the authentication succeeded.

public bool Succeeded { get; }

Methods

Failed(string)

public static ExternalAuthResult Failed(string message)

Success(string, string?, string?, string?, string?, string?, Dictionary<string, string>?)

public static ExternalAuthResult Success(string externalId, string? displayName = null, string? email = null, string? phone = null, string? givenName = null, string? familyName = null, Dictionary<string, string>? additionalClaims = null)