Class IdentityProviderResult<TDetails>
- Namespace
- Cratis.Applications.Identity
- Assembly
- Cratis.Applications.dll
Represents the result of providing identity with strongly typed details.
public record IdentityProviderResult<TDetails> : IEquatable<IdentityProviderResult<TDetails>>
Type Parameters
TDetailsType of the details.
- Inheritance
-
IdentityProviderResult<TDetails>
- Implements
-
IEquatable<IdentityProviderResult<TDetails>>
- Inherited Members
- Extension Methods
Constructors
IdentityProviderResult(IdentityId, IdentityName, bool, bool, TDetails)
Represents the result of providing identity with strongly typed details.
public IdentityProviderResult(IdentityId Id, IdentityName Name, bool IsAuthenticated, bool IsAuthorized, TDetails Details)
Parameters
IdIdentityIdUnique identifier for the identity.
NameIdentityNameName of the identity.
IsAuthenticatedboolIndicates whether the user is authenticated.
IsAuthorizedboolIndicates whether the user is authorized.
DetailsTDetailsThe resolved details.
Properties
Details
The resolved details.
public TDetails Details { get; init; }
Property Value
- TDetails
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; }