Back to Node Auth0

Class KeysClient

docs/classes/management.SDK.KeysClient.html

5.9.15.8 KB
Original Source

Class KeysClient

Index

Constructors

constructor

Methods

getcreaterotate

Properties

_options

Constructors

constructor

new KeysClient(options: BaseClientOptions): KeysClient

Parameters

Returns KeysClient

Methods

get

get(
id: string,
requestOptions?: KeysClient.RequestOptions,
): HttpResponsePromise<ConnectionKey[]>

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

Parameters

  • id: string

ID of the connection

Request-specific configuration.

Returns HttpResponsePromise<ConnectionKey[]>

Throws

Management.BadRequestError

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.NotFoundError

Throws

Management.TooManyRequestsError

Example

await client.connections.keys.get("id")Copy

create

create(
id: string,
request?: PostConnectionKeysRequestContent | null,
requestOptions?: KeysClient.RequestOptions,
): HttpResponsePromise<PostConnectionsKeysResponseContent>

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.

Parameters

  • id: string

ID of the connection

Request-specific configuration.

Returns HttpResponsePromise<PostConnectionsKeysResponseContent>

Throws

Management.BadRequestError

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.NotFoundError

Throws

Management.ConflictError

Throws

Management.TooManyRequestsError

Example

await client.connections.keys.create("id")Copy

rotate

rotate(
id: string,
request?: RotateConnectionKeysRequestContent | null,
requestOptions?: KeysClient.RequestOptions,
): HttpResponsePromise<RotateConnectionsKeysResponseContent>

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

Parameters

  • id: string

ID of the connection

Request-specific configuration.

Returns HttpResponsePromise<RotateConnectionsKeysResponseContent>

Throws

Management.BadRequestError

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.NotFoundError

Throws

Management.TooManyRequestsError

Example

await client.connections.keys.rotate("id")Copy

Properties

Protected Readonly_options

_options: NormalizedClientOptionsWithAuth<BaseClientOptions>

Settings

Member Visibility

  • Protected
  • Inherited

ThemeOSLightDark

On This Page

Constructors constructor Methods getcreaterotate Properties _options