Class LoginResult
Result of a login attempt.
public sealed class LoginResult
Inheritance
Properties
ConflictEmail
H8 (gap (c)): conflicting email reported by the external IdP.
public string? ConflictEmail { get; }
ConflictExternalSub
H8 (gap (c)): external subject from the IdP for the pending link.
public string? ConflictExternalSub { get; }
ConflictProviderId
H8 (gap (c)): provider id that initiated the conflicting callback.
public string? ConflictProviderId { get; }
ErrorMessage
public string? ErrorMessage { get; }
IsEmailConflict
H8 (gap (c)): set when the federated callback discovered an existing local user
public bool IsEmailConflict { get; }
MfaRequired
True when password is valid but MFA verification is still required.
public bool MfaRequired { get; }
OidcProps
OIDC extension props (may be null if profile was never saved).
public UserProps? OidcProps { get; }
SubjectGuid
Public-facing GUID identity used for the OIDC sub claim. Pulled from
public Guid SubjectGuid { get; }
Succeeded
public bool Succeeded { get; }
UserId
public long UserId { get; }
Username
public string? Username { get; }
Methods
EmailConflict(string, string, string)
H8 (gap (c)): federated callback discovered an existing local user with this
public static LoginResult EmailConflict(string email, string providerId, string externalSub)
Failed(string)
public static LoginResult Failed(string message)
MfaChallenge(IRedbUser, string[])
Password verified, but MFA is required before session creation.
public static LoginResult MfaChallenge(IRedbUser user, string[] methods)
PasswordExpired(IRedbUser, RedbObject<UserProps>?)
H10 — password verified but expired. Caller must steer the user into the
public static LoginResult PasswordExpired(IRedbUser user, RedbObject<UserProps>? oidcObj)
Success(IRedbUser, RedbObject<UserProps>?)
public static LoginResult Success(IRedbUser user, RedbObject<UserProps>? oidcObj)