$storage
$storage :
Validate a client via Http Basic authentication
__construct(\OAuth2\Storage\ClientCredentialsInterface $storage, array $config = array())
Config array $config should look as follows:
| \OAuth2\Storage\ClientCredentialsInterface | $storage | Storage |
| array | $config | Configuration options for the server |
validateRequest(\OAuth2\RequestInterface $request, \OAuth2\ResponseInterface $response) : boolean|mixed
Validate the OAuth request
| \OAuth2\RequestInterface | $request | |
| \OAuth2\ResponseInterface | $response |
getClientCredentials(\OAuth2\RequestInterface $request, \OAuth2\ResponseInterface $response = null) : array|null
Internal function used to get the client credentials from HTTP basic auth or POST data.
According to the spec (draft 20), the client_id can be provided in the Basic Authorization header (recommended) or via GET/POST.
| \OAuth2\RequestInterface | $request | |
| \OAuth2\ResponseInterface | $response |
A list containing the client identifier and password, for example:
createAccessToken(\OAuth2\ResponseType\AccessTokenInterface $accessToken, mixed $client_id, mixed $user_id, string $scope) : array
Create access token
| \OAuth2\ResponseType\AccessTokenInterface | $accessToken | |
| mixed | $client_id |
|
| mixed | $user_id |
|
| string | $scope |
|