3 declare(strict_types=1);
12 public const ANON_AUTH_URI =
'https://auth.europe-west1.gcp.commercetools.com/oauth/{projectKey}/anonymous/token';
13 public const REFRESH_AUTH_URI =
'https://auth.europe-west1.gcp.commercetools.com/oauth/token';
29 array $clientOptions = [],
30 string $anonUri =
null,
31 string $refreshUri =
null,
32 string $authUri = self::AUTH_URI
34 parent::__construct($clientOptions, $authUri);
36 $anonUri = str_replace(
'{projectKey}', $projectKey, $anonUri);
37 $this->anonUri = $anonUri;
39 $this->credentials = $credentials;
44 return $this->credentials;
49 return $this->anonUri;
54 return $this->refreshUri;