Method | Description | |
---|---|---|
createAccessToken ( string $clientId, string $username = '', array $scope = [], string $state = null, boolean $withRefreshToken = true ) : array | Create and save access_token parameters for generate response. | |
getAccessToken ( |
Fetch access_token from given request. |
public createAccessToken ( string $clientId, string $username = '', array $scope = [], string $state = null, boolean $withRefreshToken = true ) : array | ||
$clientId | string | client_id this access token should belongs to |
$username | string | username this access token should belongs to |
$scope | array | All scope that this access token grant |
$state | string | Original state which should preserve |
$withRefreshToken | boolean | False for response_type=token |
return | array | All parameters for generate response |
public getAccessToken ( |
||
$request | Incoming request object | |
return | string | Fetched access_token from incoming request |