Table of Contents

Class KeysClient

Namespace
Auth0.ManagementApi.Connections
Assembly
Auth0.ManagementApi.dll
public class KeysClient : IKeysClient
Inheritance
KeysClient
Implements
Inherited Members
Extension Methods

Methods

CreateAsync(string, Optional<PostConnectionKeysRequestContent?>, RequestOptions?, CancellationToken)

Provision initial connection keys for Okta or OIDC connection strategies. This endpoint allows you to create keys before configuring the connection to use Private Key JWT authentication, enabling zero-downtime transitions.

public WithRawResponseTask<IEnumerable<PostConnectionsKeysResponseContentItem>> CreateAsync(string id, Optional<PostConnectionKeysRequestContent?> request, RequestOptions? options = null, CancellationToken cancellationToken = default)

Parameters

id string
request Optional<PostConnectionKeysRequestContent>
options RequestOptions
cancellationToken CancellationToken

Returns

WithRawResponseTask<IEnumerable<PostConnectionsKeysResponseContentItem>>

Examples

await client.Connections.Keys.CreateAsync("id", new PostConnectionKeysRequestContent());

GetAsync(string, RequestOptions?, CancellationToken)

Gets the connection keys for the Okta or OIDC connection strategy.

public WithRawResponseTask<IEnumerable<ConnectionKey>> GetAsync(string id, RequestOptions? options = null, CancellationToken cancellationToken = default)

Parameters

id string
options RequestOptions
cancellationToken CancellationToken

Returns

WithRawResponseTask<IEnumerable<ConnectionKey>>

Examples

await client.Connections.Keys.GetAsync("id");

RotateAsync(string, Optional<RotateConnectionKeysRequestContent?>, RequestOptions?, CancellationToken)

Rotates the connection keys for the Okta or OIDC connection strategies.

public WithRawResponseTask<RotateConnectionsKeysResponseContent> RotateAsync(string id, Optional<RotateConnectionKeysRequestContent?> request, RequestOptions? options = null, CancellationToken cancellationToken = default)

Parameters

id string
request Optional<RotateConnectionKeysRequestContent>
options RequestOptions
cancellationToken CancellationToken

Returns

WithRawResponseTask<RotateConnectionsKeysResponseContent>

Examples

await client.Connections.Keys.RotateAsync("id", new RotateConnectionKeysRequestContent());