You are here

public function Authentication::dbconnections_signup in Auth0 Single Sign On 8.2

Create a new user using active authentication. This endpoint only works for database connections.

@link https://auth0.com/docs/api/authentication#signup

Parameters

string $email Email for the user signing up.:

string $password New password for the user signing up.:

string $connection Database connection to create the user in.:

Return value

mixed

File

vendor/auth0/auth0-php/src/API/Authentication.php, line 564

Class

Authentication
Class Authentication

Namespace

Auth0\SDK\API

Code

public function dbconnections_signup($email, $password, $connection) {
  $data = [
    'client_id' => $this->client_id,
    'email' => $email,
    'password' => $password,
    'connection' => $connection,
  ];
  return $this->apiClient
    ->method('post')
    ->addPath('dbconnections')
    ->addPath('signup')
    ->withBody(json_encode($data))
    ->call();
}