Documentation Index
Fetch the complete documentation index at: https://easyaf.dev/llms.txt
Use this file to discover all available pages before exploring further.
Definition
Assembly: System.Security.Claims.dll Namespace: System.Security.ClaimsSyntax
Summary
This type is defined in System.Security.Claims.Remarks
See Microsoft documentation for more information about the rest of the API.Methods
GetAllClaims Extension
Extension method from
System.Security.Claims.EasyAF_ClaimsPrincipalExtensionsSyntax
Parameters
| Name | Type | Description |
|---|---|---|
claimsPrincipal | System.Security.Claims.ClaimsPrincipal | The ClaimsPrincipal instance to check for Claims. Should be Current, except in unit testing. |
claimType | string | - |
Returns
Type:System.Collections.Generic.IEnumerable<System.Security.Claims.Claim>
GetClaimGuid Extension
Extension method from
System.Security.Claims.EasyAF_ClaimsPrincipalExtensionsSyntax
Parameters
| Name | Type | Description |
|---|---|---|
claimsPrincipal | System.Security.Claims.ClaimsPrincipal | - |
claimType | string | - |
Returns
Type:System.Guid
Exceptions
| Exception | Description |
|---|---|
FormatException | If the claimType is not formatted like a Guid (32 characters with 4 dashes), this exception will be thrown. |
GetClaimValue Extension
Extension method from
System.Security.Claims.EasyAF_ClaimsPrincipalExtensionsSyntax
Parameters
| Name | Type | Description |
|---|---|---|
claimsPrincipal | System.Security.Claims.ClaimsPrincipal | The ClaimsPrincipal instance to check for Claims. Should be Current, except in unit testing. |
claimType | string | - |
Returns
Type:string
GetIdClaim Extension
Extension method from
System.Security.Claims.EasyAF_ClaimsPrincipalExtensionsSyntax
Parameters
| Name | Type | Description |
|---|---|---|
principal | System.Security.Claims.ClaimsPrincipal | The ClaimsPrincipal instance we’re extending. |
Returns
Type:System.Guid