Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class Duende.​IdentityModel.​Client.​JsonElementExtensions
Assembly: Duende.IdentityModel
Inheritance: object → JsonElementExtensions
Extensions for JObject
Methods
public static
System.​Collections.​Generic.​IEnumerable<​System.​Security.​Claims.​Claim>
ToClaims​(System.​Text.​Json.​JsonElement json,
string issuer = null,
string[] excludeKeys)
Converts a JSON claims object to a list of Claim
json
The json.
issuer
Optional issuer name to add to claims.
excludeKeys
Claims that should be excluded.
TryGetValue​(System.​Text.​Json.​JsonElement json,
string name)
Tries to get a value from a JObject
json
The json.
name
The name.
public static
int?
TryGetInt​(System.​Text.​Json.​JsonElement json,
string name)
Tries to get an int from a JObject
json
The json.
name
The name.
public static
string
TryGetString​(System.​Text.​Json.​JsonElement json,
string name)
Tries to get a string from a JObject
json
The json.
name
The name.
public static
bool?
TryGetBoolean​(System.​Text.​Json.​JsonElement json,
string name)
Tries to get a boolean from a JObject
json
The json.
name
The name.
public static
System.​Collections.​Generic.​IEnumerable<​string>
TryGetStringArray​(System.​Text.​Json.​JsonElement json,
string name)
Tries to get a string array from a JObject
json
The json.
name
The name.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object