$clientStorage
$clientStorage : \OAuth2\Storage\ClientInterface
$clientStorage : \OAuth2\Storage\ClientInterface
$scopeUtil : \OAuth2\ScopeInterface
__construct(\OAuth2\Storage\ClientInterface $clientStorage, array $responseTypes = array(), array $config = array(), \OAuth2\ScopeInterface $scopeUtil = null)
Constructor
| \OAuth2\Storage\ClientInterface | $clientStorage | REQUIRED Instance of OAuth2\Storage\ClientInterface to retrieve client information |
| array | $responseTypes | OPTIONAL Array of OAuth2\ResponseType\ResponseTypeInterface objects. Valid array keys are "code" and "token" |
| array | $config | OPTIONAL Configuration options for the server: |
| \OAuth2\ScopeInterface | $scopeUtil | OPTIONAL Instance of OAuth2\ScopeInterface to validate the requested scope |
handleAuthorizeRequest(\OAuth2\RequestInterface $request, \OAuth2\ResponseInterface $response, boolean $is_authorized, mixed $user_id = null) : mixed|void
Handle the authorization request
| \OAuth2\RequestInterface | $request | |
| \OAuth2\ResponseInterface | $response | |
| boolean | $is_authorized | |
| mixed | $user_id |
validateAuthorizeRequest(\OAuth2\RequestInterface $request, \OAuth2\ResponseInterface $response) : boolean
Validate the OAuth request
| \OAuth2\RequestInterface | $request | |
| \OAuth2\ResponseInterface | $response |
setNotAuthorizedResponse(\OAuth2\RequestInterface $request, \OAuth2\ResponseInterface $response, string $redirect_uri, mixed $user_id = null)
Set not authorized response
| \OAuth2\RequestInterface | $request | |
| \OAuth2\ResponseInterface | $response | |
| string | $redirect_uri | |
| mixed | $user_id |
buildAuthorizeParameters(\OAuth2\RequestInterface $request, \OAuth2\ResponseInterface $response, mixed $user_id) : array
We have made this protected so this class can be extended to add/modify these parameters
| \OAuth2\RequestInterface | $request | |
| \OAuth2\ResponseInterface | $response | |
| mixed | $user_id |
validateRedirectUri(string $inputUri, string $registeredUriString) : boolean
Internal method for validating redirect URI supplied
| string | $inputUri | The submitted URI to be validated |
| string | $registeredUriString | The allowed URI(s) to validate against. Can be a space-delimited string of URIs to allow for multiple URIs |