Auth0-PHP

ConnectionsInterface
in

Interface ConnectionsInterface.

Table of Contents

create()  : ResponseInterface
Create a new Connection.
delete()  : ResponseInterface
Delete a Connection.
deleteUser()  : ResponseInterface
Delete a specific User for a Connection.
get()  : ResponseInterface
Get a single Connection.
getAll()  : ResponseInterface
Get connection(s).
update()  : ResponseInterface
Update a Connection.

Methods

create()

Create a new Connection.

public create(string $name, string $strategy[, array<string|int, string>|null $body = null ][, RequestOptions|null $options = null ]) : ResponseInterface

Required scope: create:connections.

Parameters
$name : string

the name of the new connection

$strategy : string

the identity provider identifier for the new connection

$body : array<string|int, string>|null = null

Additional body content to pass with the API request. See @see for supported options.

$options : RequestOptions|null = null

Optional. Additional request options to use, such as a field filtering or pagination. (Not all endpoints support these. See @see for supported options.)

Tags
throws
ArgumentException

when an invalid name or strategy are provided

throws
NetworkException

when the API request fails due to a network error

see
https://auth0.com/docs/api/management/v2#!/Connections/post_connections
Return values
ResponseInterface

delete()

Delete a Connection.

public delete(string $id[, RequestOptions|null $options = null ]) : ResponseInterface

Required scope: delete:connections.

Parameters
$id : string

connection (by it's ID) to delete

$options : RequestOptions|null = null

Optional. Additional request options to use, such as a field filtering or pagination. (Not all endpoints support these. See @see for supported options.)

Tags
throws
ArgumentException

when an invalid id is provided

throws
NetworkException

when the API request fails due to a network error

see
https://auth0.com/docs/api/management/v2#!/Connections/delete_connections_by_id
Return values
ResponseInterface

deleteUser()

Delete a specific User for a Connection.

public deleteUser(string $id, string $email[, RequestOptions|null $options = null ]) : ResponseInterface

Required scope: delete:users.

Parameters
$id : string

Connection (by it's ID)

$email : string

email of the user to delete

$options : RequestOptions|null = null

Optional. Additional request options to use, such as a field filtering or pagination. (Not all endpoints support these. See @see for supported options.)

Tags
throws
ArgumentException

when an invalid id or email are provided

throws
NetworkException

when the API request fails due to a network error

see
https://auth0.com/docs/api/management/v2#!/Connections/delete_users_by_email
Return values
ResponseInterface

get()

Get a single Connection.

public get(string $id[, RequestOptions|null $options = null ]) : ResponseInterface

Required scope: read:connections.

Parameters
$id : string

connection (by it's ID) to query

$options : RequestOptions|null = null

Optional. Additional request options to use, such as a field filtering or pagination. (Not all endpoints support these. See @see for supported options.)

Tags
throws
ArgumentException

when an invalid id is provided

throws
NetworkException

when the API request fails due to a network error

see
https://auth0.com/docs/api/management/v2#!/Connections/get_connections_by_id
Return values
ResponseInterface

getAll()

Get connection(s).

public getAll([array<string|int, int|string|null>|null $parameters = null ][, RequestOptions|null $options = null ]) : ResponseInterface

Required scope: read:connections.

Parameters
$parameters : array<string|int, int|string|null>|null = null

Optional. Additional query parameters to pass with the API request. See @see for supported options.

$options : RequestOptions|null = null

Optional. Additional request options to use, such as a field filtering or pagination. (Not all endpoints support these. See @see for supported options.)

Tags
throws
NetworkException

when the API request fails due to a network error

see
https://auth0.com/docs/api/management/v2#!/Connections/get_connections
Return values
ResponseInterface

update()

Update a Connection.

public update(string $id[, array<string|int, mixed>|null $body = null ][, RequestOptions|null $options = null ]) : ResponseInterface

Required scope: update:connections.

Parameters
$id : string

connection (by it's ID) to update

$body : array<string|int, mixed>|null = null

Additional body content to pass with the API request. See @see for supported options.

$options : RequestOptions|null = null

Optional. Additional request options to use, such as a field filtering or pagination. (Not all endpoints support these. See @see for supported options.)

Tags
throws
ArgumentException

when an invalid id is provided

throws
NetworkException

when the API request fails due to a network error

see
https://auth0.com/docs/api/management/v2#!/Connections/patch_connections_by_id
Return values
ResponseInterface

Search results