Свойство | Type | Description | |
---|---|---|---|
$apiProblemErrorResponse | boolean | ||
$server | OAuth2\Server | ||
$serverFactory | Factory for generating an OAuth2Server instance. | ||
$userIdProvider | ZF\OAuth2\Provider\UserId\UserIdProviderInterface |
Méthode | Description | |
---|---|---|
__construct ( callable $serverFactory, ZF\OAuth2\Provider\UserId\UserIdProviderInterface $userIdProvider ) | Constructor | |
authorizeAction ( ) | Authorize action (/oauth/authorize) | |
isApiProblemErrorResponse ( ) : boolean | Should the controller return ApiProblemResponse? | |
receiveCodeAction ( ) | Receive code action prints the code/token access | |
resourceAction ( ) | Test resource (/oauth/resource) | |
revokeAction ( ) | Token Revoke (/oauth/revoke) | |
setApiProblemErrorResponse ( boolean $apiProblemErrorResponse ) | Indicate whether ApiProblemResponse or oauth2 errors should be returned. | |
tokenAction ( ) | Token Action (/oauth) |
Méthode | Description | |
---|---|---|
getApiProblemResponse ( OAuth2\Response $response ) : ZF\ApiProblem\ApiProblemResponse | Map OAuth2Response to ApiProblemResponse | |
getErrorResponse ( OAuth2\Response $response ) : ZF\ApiProblem\ApiProblemResponse | Zend\Stdlib\ResponseInterface | ||
getOAuth2Request ( ) : OAuth2\Request | Create an OAuth2 request based on the ZF2 request object |
Méthode | Description | |
---|---|---|
getOAuth2Server ( string $type ) : OAuth2\Server | Retrieve the OAuth2\Server instance. | |
setHttpResponse ( OAuth2\Response $response ) : Zend\Http\Response | Convert the OAuth2 response to a \Zend\Http\Response |
public __construct ( callable $serverFactory, ZF\OAuth2\Provider\UserId\UserIdProviderInterface $userIdProvider ) | ||
$serverFactory | callable | |
$userIdProvider | ZF\OAuth2\Provider\UserId\UserIdProviderInterface |
protected getApiProblemResponse ( OAuth2\Response $response ) : ZF\ApiProblem\ApiProblemResponse | ||
$response | OAuth2\Response | |
Résultat | ZF\ApiProblem\ApiProblemResponse |
protected getErrorResponse ( OAuth2\Response $response ) : ZF\ApiProblem\ApiProblemResponse | Zend\Stdlib\ResponseInterface | ||
$response | OAuth2\Response | |
Résultat | ZF\ApiProblem\ApiProblemResponse | Zend\Stdlib\ResponseInterface |
protected getOAuth2Request ( ) : OAuth2\Request | ||
Résultat | OAuth2\Request |
public isApiProblemErrorResponse ( ) : boolean | ||
Résultat | boolean |
public receiveCodeAction ( ) |
public setApiProblemErrorResponse ( boolean $apiProblemErrorResponse ) | ||
$apiProblemErrorResponse | boolean |
protected bool $apiProblemErrorResponse | ||
Résultat | boolean |
protected $serverFactory |