Class IdentityProviderContext
- Namespace
- Cratis.Applications.Identity
- Assembly
- Cratis.Applications.dll
Represents the context used when providing identity payload.
public record IdentityProviderContext : IEquatable<IdentityProviderContext>
- Inheritance
-
IdentityProviderContext
- Implements
- Inherited Members
Constructors
IdentityProviderContext(IdentityId, IdentityName, JsonObject, IEnumerable<KeyValuePair<string, string>>)
Represents the context used when providing identity payload.
public IdentityProviderContext(IdentityId Id, IdentityName Name, JsonObject Token, IEnumerable<KeyValuePair<string, string>> Claims)
Parameters
Id
IdentityIdUnique identifier for the identity.
Name
IdentityNameName of the identity.
Token
JsonObjectThe raw token as JSON.
Claims
IEnumerable<KeyValuePair<string, string>>Any claims.
Properties
Claims
Any claims.
public IEnumerable<KeyValuePair<string, string>> Claims { get; init; }
Property Value
Id
Unique identifier for the identity.
public IdentityId Id { get; init; }
Property Value
Name
Name of the identity.
public IdentityName Name { get; init; }
Property Value
Token
The raw token as JSON.
public JsonObject Token { get; init; }