RESPONSE_TYPE_CODE
RESPONSE_TYPE_CODE = "code" : string
The Authorization Code grant type supports a response type of "code".
Implement this interface to specify where the OAuth2 Server should get/save authorization codes for the "Authorization Code" grant type
getAuthorizationCode( $code) : \OAuth2\Storage\An
Fetch authorization code data (probably the most common grant type).
Retrieve the stored data for the given authorization code.
Required for OAuth2::GRANT_TYPE_AUTH_CODE.
| $code | Authorization code to be check with. |
associative array as below, and NULL if the code is invalid
setAuthorizationCode(string $code, mixed $client_id, mixed $user_id, string $redirect_uri, integer $expires, string $scope = null)
Take the provided authorization code values and store them somewhere.
This function should be the storage counterpart to getAuthCode().
If storage fails for some reason, we're not currently checking for any sort of success/failure, so you should bail out of the script and provide a descriptive fail message.
Required for OAuth2::GRANT_TYPE_AUTH_CODE.
| string | $code |
|
| mixed | $client_id |
|
| mixed | $user_id |
|
| string | $redirect_uri |
|
| integer | $expires |
|
| string | $scope |
|