Table of Contents

Class PostClientCredentialRequestContent

Namespace
Auth0.ManagementApi.Clients
Assembly
Auth0.ManagementApi.dll
[Serializable]
public record PostClientCredentialRequestContent : IEquatable<PostClientCredentialRequestContent>
Inheritance
PostClientCredentialRequestContent
Implements
Inherited Members
Extension Methods

Properties

Alg

[JsonPropertyName("alg")]
public PublicKeyCredentialAlgorithmEnum? Alg { get; set; }

Property Value

PublicKeyCredentialAlgorithmEnum?

CredentialType

[JsonPropertyName("credential_type")]
public required ClientCredentialTypeEnum CredentialType { get; set; }

Property Value

ClientCredentialTypeEnum

ExpiresAt

The ISO 8601 formatted date representing the expiration of the credential. If not specified (not recommended), the credential never expires. Applies to public_key credential type.

[JsonPropertyName("expires_at")]
public DateTime? ExpiresAt { get; set; }

Property Value

DateTime?

Kid

Optional kid (Key ID), used to uniquely identify the credential. If not specified, a kid value will be auto-generated. The kid header parameter in JWTs sent by your client should match this value. Valid format is [0-9a-zA-Z-_]{10,64}

[JsonPropertyName("kid")]
public string? Kid { get; set; }

Property Value

string

Name

Friendly name for a credential.

[JsonPropertyName("name")]
public string? Name { get; set; }

Property Value

string

ParseExpiryFromCert

Parse expiry from x509 certificate. If true, attempts to parse the expiry date from the provided PEM. Applies to public_key credential type.

[JsonPropertyName("parse_expiry_from_cert")]
public bool? ParseExpiryFromCert { get; set; }

Property Value

bool?

Pem

PEM-formatted public key (SPKI and PKCS1) or X509 certificate. Must be JSON escaped.

[JsonPropertyName("pem")]
public string? Pem { get; set; }

Property Value

string

SubjectDn

Subject Distinguished Name. Mutually exclusive with pem property. Applies to cert_subject_dn credential type.

[JsonPropertyName("subject_dn")]
public string? SubjectDn { get; set; }

Property Value

string

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.