Back to Node Auth0

Class EnabledConnectionsClient

docs/classes/management.SDK.EnabledConnectionsClient.html

5.9.110.1 KB
Original Source

Class EnabledConnectionsClient

Index

Constructors

constructor

Methods

listaddgetdeleteupdate

Properties

_options

Constructors

constructor

new EnabledConnectionsClient(
options: BaseClientOptions,
): EnabledConnectionsClient

Parameters

Returns EnabledConnectionsClient

Methods

list

list(
id: string,
request?: ListOrganizationConnectionsRequestParameters,
requestOptions?: EnabledConnectionsClient.RequestOptions,
): Promise<
Page<
OrganizationConnection,
ListOrganizationConnectionsOffsetPaginatedResponseContent,
>,
>

Retrieve details about a specific connection currently enabled for an Organization. Information returned includes details such as connection ID, name, strategy, and whether the connection automatically grants membership upon login.

Parameters

  • id: string

Organization identifier.

Request-specific configuration.

Returns Promise< Page< OrganizationConnection, ListOrganizationConnectionsOffsetPaginatedResponseContent, >, >

Throws

Management.BadRequestError

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.TooManyRequestsError

Example

await client.organizations.enabledConnections.list("id", { page: 1, per_page: 1, include_totals: true })Copy

add

add(
id: string,
request: AddOrganizationConnectionRequestContent,
requestOptions?: EnabledConnectionsClient.RequestOptions,
): HttpResponsePromise<AddOrganizationConnectionResponseContent>

Enable a specific connection for a given Organization. To enable a connection, it must already exist within your tenant; connections cannot be created through this action.

Connections represent the relationship between Auth0 and a source of users. Available types of connections include database, enterprise, and social.

Parameters

  • id: string

Organization identifier.

Request-specific configuration.

Returns HttpResponsePromise<AddOrganizationConnectionResponseContent>

Throws

Management.BadRequestError

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.TooManyRequestsError

Example

await client.organizations.enabledConnections.add("id", { connection_id: "connection_id" })Copy

get

get(
id: string,
connectionId: string,
requestOptions?: EnabledConnectionsClient.RequestOptions,
): HttpResponsePromise<GetOrganizationConnectionResponseContent>

Retrieve details about a specific connection currently enabled for an Organization. Information returned includes details such as connection ID, name, strategy, and whether the connection automatically grants membership upon login.

Parameters

  • id: string

Organization identifier.

  • connectionId: string

Connection identifier.

Request-specific configuration.

Returns HttpResponsePromise<GetOrganizationConnectionResponseContent>

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.TooManyRequestsError

Example

await client.organizations.enabledConnections.get("id", "connectionId")Copy

delete

delete(
id: string,
connectionId: string,
requestOptions?: EnabledConnectionsClient.RequestOptions,
): HttpResponsePromise<void>

Disable a specific connection for an Organization. Once disabled, Organization members can no longer use that connection to authenticate.

Note : This action does not remove the connection from your tenant.

Parameters

  • id: string

Organization identifier.

  • connectionId: string

Connection identifier.

Request-specific configuration.

Returns HttpResponsePromise<void>

Throws

Management.BadRequestError

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.TooManyRequestsError

Example

await client.organizations.enabledConnections.delete("id", "connectionId")Copy

update

update(
id: string,
connectionId: string,
request?: UpdateOrganizationConnectionRequestContent,
requestOptions?: EnabledConnectionsClient.RequestOptions,
): HttpResponsePromise<UpdateOrganizationConnectionResponseContent>

Modify the details of a specific connection currently enabled for an Organization.

Parameters

  • id: string

Organization identifier.

  • connectionId: string

Connection identifier.

Request-specific configuration.

Returns HttpResponsePromise<UpdateOrganizationConnectionResponseContent>

Throws

Management.BadRequestError

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.TooManyRequestsError

Example

await client.organizations.enabledConnections.update("id", "connectionId")Copy

Properties

Protected Readonly_options

_options: NormalizedClientOptionsWithAuth<BaseClientOptions>

Settings

Member Visibility

  • Protected
  • Inherited

ThemeOSLightDark

On This Page

Constructors constructor Methods listaddgetdeleteupdate Properties _options