Skip to content
Abblix

ClaimExtensions Class

Provides extension methods for handling claims, particularly for converting between JWT claims and security claims.

C#
public static class ClaimExtensions

Inheritance System.Object → ClaimExtensions

Methods

ClaimExtensions.AsString(this JsonNode) Method

Converts a System.Text.Json.Nodes.JsonNode to a string representation. If the node is a System.Text.Json.Nodes.JsonValue, the value is extracted as a string; otherwise, the JSON string representation of the node is returned.

C#
public static string AsString(this System.Text.Json.Nodes.JsonNode node);

Parameters

node System.Text.Json.Nodes.JsonNode

The System.Text.Json.Nodes.JsonNode to convert to a string.

Returns

System.String
A string representation of the System.Text.Json.Nodes.JsonNode.