Class TeamContext
Which team a request is about, and what the caller may do there.
public sealed record TeamContext : IEquatable<TeamContext>
- Inheritance
-
TeamContext
- Implements
- Inherited Members
Constructors
TeamContext(string, IReadOnlyList<string>, TeamContextRefusal)
Which team a request is about, and what the caller may do there.
public TeamContext(string TeamKey, IReadOnlyList<string> Scopes, TeamContextRefusal Refusal)
Parameters
TeamKeystringThe resolved team, or null when the request is not about one.
ScopesIReadOnlyList<string>Scopes to grant for it, or null when the caller's own claims already carry them.
RefusalTeamContextRefusalWhy it could not be resolved. None on success.
Properties
IsRefused
public bool IsRefused { get; }
Property Value
MemberKey
The caller's member key in TeamKey when the scopes come from a membership; null when they come from consent.
public string MemberKey { get; init; }
Property Value
Remarks
Issued as a claim beside the scopes, as the claims builder issues it, so an act that must not be performed through consent can tell a member naming their team apart from a caller consented into it.
Refusal
Why it could not be resolved. None on success.
public TeamContextRefusal Refusal { get; init; }
Property Value
Scopes
Scopes to grant for it, or null when the caller's own claims already carry them.
public IReadOnlyList<string> Scopes { get; init; }
Property Value
TeamKey
The resolved team, or null when the request is not about one.
public string TeamKey { get; init; }