Class IdentityProviderResult
- Namespace
- Cratis.Applications.Identity
- Assembly
- Cratis.Applications.dll
Represents the result of providing identity.
public record IdentityProviderResult : IEquatable<IdentityProviderResult>
- Inheritance
-
IdentityProviderResult
- Implements
- Inherited Members
- Extension Methods
Constructors
IdentityProviderResult(IdentityId, IdentityName, bool, bool, object)
Represents the result of providing identity.
public IdentityProviderResult(IdentityId Id, IdentityName Name, bool IsAuthenticated, bool IsAuthorized, object Details)
Parameters
IdIdentityIdUnique identifier for the identity.
NameIdentityNameName of the identity.
IsAuthenticatedboolIndicates whether the user is authenticated.
IsAuthorizedboolIndicates whether the user is authorized.
DetailsobjectThe resolved details.
Fields
Anonymous
Represents an anonymous identity result.
public static readonly IdentityProviderResult Anonymous
Field Value
Unauthorized
Represents an unauthorized identity result.
public static readonly IdentityProviderResult Unauthorized
Field Value
Properties
Details
The resolved details.
public object Details { get; init; }
Property Value
Id
Unique identifier for the identity.
public IdentityId Id { get; init; }
Property Value
IsAuthenticated
Indicates whether the user is authenticated.
public bool IsAuthenticated { get; init; }
Property Value
IsAuthorized
Indicates whether the user is authorized.
public bool IsAuthorized { get; init; }
Property Value
Name
Name of the identity.
public IdentityName Name { get; init; }