You are here

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

Authentication constructor.

@link https://auth0.com/docs/scopes/current @link http://docs.guzzlephp.org/en/stable/request-options.html

Parameters

string $domain Tenant domain, found in Application settings.:

null|string $client_id Client ID, found in Application settings.:

null|string $client_secret Client Secret, found in Application settings.:

null|string $audience API audience identifier for the access token, found in API settings.:

null|string $scope Scopes to request during login.:

array $guzzleOptions Options for the Guzzle HTTP client.:

File

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

Class

Authentication
Class Authentication

Namespace

Auth0\SDK\API

Code

public function __construct($domain, $client_id = null, $client_secret = null, $audience = null, $scope = null, $guzzleOptions = []) {
  $this->domain = $domain;
  $this->client_id = $client_id;
  $this->client_secret = $client_secret;
  $this->audience = $audience;
  $this->scope = $scope;
  $this->guzzleOptions = $guzzleOptions;
  $this->apiClient = new ApiClient([
    'domain' => 'https://' . $this->domain,
    'basePath' => '/',
    'guzzleOptions' => $guzzleOptions,
  ]);
}