ClaimRule constructor (1 of 3)
Constructs a rule from a claim type and one or more allowed values without description.
public ClaimRule(string claimType, IReadOnlyList<string> allowedValues)
| parameter | description |
|---|---|
| claimType | The claim type required by this rule. |
| allowedValues | Allowed values for the claim. |
See Also
- record ClaimRule
- namespace Kestrun.Claims
ClaimRule constructor (2 of 3)
Constructs a rule from a claim type and an explicit read-only list of values.
public ClaimRule(string claimType, string? description, IReadOnlyList<string> allowedValues)
| parameter | description |
|---|---|
| claimType | The claim type required by this rule. |
| description | Description of the claim rule. |
| allowedValues | Allowed values for the claim. |
See Also
- record ClaimRule
- namespace Kestrun.Claims
ClaimRule constructor (3 of 3)
Constructs a rule from a claim type and one or more allowed values.
public ClaimRule(string claimType, string? description, params string[] allowedValues)
| parameter | description |
|---|---|
| claimType | The claim type required by this rule. |
| description | Description of the claim rule. |
| allowedValues | Allowed values for the claim. |
See Also
- record ClaimRule
- namespace Kestrun.Claims