commercetools-sdk-php-v2  master
The platform, import-api and ml-api PHP sdks generated from our api reference.
Public Member Functions | Public Attributes | List of all members
Commercetools\Client\PasswordFlowTokenProvider Class Reference

Public Member Functions

 __construct (Client $client, string $accessTokenUrl, ClientCredentials $credentials, TokenStorage $tokenStorage)
 
 getTokenFor (string $userName, string $password)
 

Public Attributes

const GRANT_TYPE = 'grant_type'
 
const GRANT_TYPE_PASSWORD = 'password'
 
const REFRESH_TOKEN = 'refresh_token'
 
const ACCESS_TOKEN = 'access_token'
 
const EXPIRES_IN = 'expires_in'
 

Detailed Description

Definition at line 9 of file PasswordFlowTokenProvider.php.

Constructor & Destructor Documentation

◆ __construct()

Commercetools\Client\PasswordFlowTokenProvider::__construct ( Client  $client,
string  $accessTokenUrl,
ClientCredentials  $credentials,
TokenStorage  $tokenStorage 
)

Definition at line 37 of file PasswordFlowTokenProvider.php.

Member Function Documentation

◆ getTokenFor()

Commercetools\Client\PasswordFlowTokenProvider::getTokenFor ( string  $userName,
string  $password 
)

@psalm-var array $body

Definition at line 49 of file PasswordFlowTokenProvider.php.

Member Data Documentation

◆ ACCESS_TOKEN

const Commercetools\Client\PasswordFlowTokenProvider::ACCESS_TOKEN = 'access_token'

Definition at line 14 of file PasswordFlowTokenProvider.php.

◆ EXPIRES_IN

const Commercetools\Client\PasswordFlowTokenProvider::EXPIRES_IN = 'expires_in'

Definition at line 15 of file PasswordFlowTokenProvider.php.

◆ GRANT_TYPE

const Commercetools\Client\PasswordFlowTokenProvider::GRANT_TYPE = 'grant_type'

Definition at line 11 of file PasswordFlowTokenProvider.php.

◆ GRANT_TYPE_PASSWORD

const Commercetools\Client\PasswordFlowTokenProvider::GRANT_TYPE_PASSWORD = 'password'

Definition at line 12 of file PasswordFlowTokenProvider.php.

◆ REFRESH_TOKEN

const Commercetools\Client\PasswordFlowTokenProvider::REFRESH_TOKEN = 'refresh_token'

Definition at line 13 of file PasswordFlowTokenProvider.php.


The documentation for this class was generated from the following file: