Table of Contents

Class LicenseClaims

Namespace
OneImlx.Shared.Licensing
Assembly
OneImlx.Shared.dll

The generic license claims.

public sealed class LicenseClaims
Inheritance
LicenseClaims
Inherited Members

Constructors

LicenseClaims()

Initialize a new instance. This constructor is part of the internal infrastructure. Please do not use it directly in the application code. To create a new instance from claims please use Create(IDictionary<string, object>).

public LicenseClaims()

Properties

AcrValues

The acr claim values.

[JsonPropertyName("acr_values")]
public string AcrValues { get; set; }

Property Value

string

Applications

The apps claim.

[JsonPropertyName("applications")]
public string Applications { get; set; }

Property Value

string

Audience

The aud claim.

[JsonPropertyName("audience")]
public string Audience { get; set; }

Property Value

string

AuthorizedParty

The azp claim.

[JsonPropertyName("authorized_party")]
public string AuthorizedParty { get; set; }

Property Value

string

Custom

The custom claims.

[JsonPropertyName("custom")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonConverter(typeof(DictionaryStringObjectPrimitiveJsonConverter))]
public Dictionary<string, object>? Custom { get; set; }

Property Value

Dictionary<string, object>

Deployment

The deployment claim.

[JsonPropertyName("deployment")]
public string? Deployment { get; set; }

Property Value

string

ExpiryAt

The exp claim.

[JsonPropertyName("expiry_at")]
public DateTimeOffset ExpiryAt { get; set; }

Property Value

DateTimeOffset

Id

The oid claim.

[JsonPropertyName("id")]
public string Id { get; set; }

Property Value

string

IssuedAt

The iat claim.

[JsonPropertyName("issued_at")]
public DateTimeOffset IssuedAt { get; set; }

Property Value

DateTimeOffset

Issuer

The iss claim.

[JsonPropertyName("issuer")]
public string Issuer { get; set; }

Property Value

string

Jti

The jti claim.

[JsonPropertyName("jti")]
public string Jti { get; set; }

Property Value

string

Mode

The mode claim.

[JsonPropertyName("mode")]
public string Mode { get; set; }

Property Value

string

NotBefore

The nbf claim.

[JsonPropertyName("not_before")]
public DateTimeOffset NotBefore { get; set; }

Property Value

DateTimeOffset

Subject

The sub claim.

[JsonPropertyName("subject")]
public string Subject { get; set; }

Property Value

string

TenantCountry

The country claim.

[JsonPropertyName("tenant_country")]
public string TenantCountry { get; set; }

Property Value

string

TenantId

The tid claim.

[JsonPropertyName("tenant_id")]
public string TenantId { get; set; }

Property Value

string

TenantName

The name claim.

[JsonPropertyName("tenant_name")]
public string TenantName { get; set; }

Property Value

string

Methods

Create(IDictionary<string, object>)

Creates a new instance of LicenseClaims based on the specified claims dictionary.

public static LicenseClaims Create(IDictionary<string, object> claims)

Parameters

claims IDictionary<string, object>

The source claims.

Returns

LicenseClaims