Exponential Basic 2.4.0.1 Exponential Basic CMS — PHP Class Reference

Public Member Functions | Protected Member Functions | List of all members
ezpRestOauthTokenController Class Reference
Inheritance diagram for ezpRestOauthTokenController:

## Public Member Functions
| doHandleRequest ()

## Protected Member Functions
| validateClient ( $client_id, $client_secret)
| checkParams ( $paramsToCheck)
| validateGrantType ( $grant)

## Detailed Description

Controller for OAuth token endpoint.

Exceptions

  ezpOauthExpiredTokenException|ezpOauthInvalidRequestException|ezpOauthInvalidTokenException |

Definition at line 18 of file oauth_token.php.

## Member Function Documentation

## ◆ checkParams()

ezpRestOauthTokenController::checkParams | ( |  | $paramsToCheck | ) |
| protected

Definition at line 96 of file oauth_token.php.

References $error.

Referenced by doHandleRequest().

## ◆ doHandleRequest()

ezpRestOauthTokenController::doHandleRequest | ( |  | ) |

Handles the POST request which is sent to obtain token data.

Currently only authorization code access grant is supported, section 4.1.1

Returns
  ezcMvcResult

Definition at line 27 of file oauth_token.php.

References $result, $tokenTTL, checkParams(), ezpOauthUtility\doRefreshToken(), ezpOauthUtility\doRefreshTokenWithAuthorizationCode(), ezpOauthTokenEndpointErrorType\INVALID_REQUEST, ezpOauthTokenEndpointErrorType\UNSUPPORTED_GRANT_TYPE, and validateGrantType().

## ◆ validateClient()

ezpRestOauthTokenController::validateClient | ( |  | $client_id,
|  |  | $client_secret
| ) |  |
| protected

Definition at line 91 of file oauth_token.php.

## ◆ validateGrantType()

ezpRestOauthTokenController::validateGrantType | ( |  | $grant | ) |
| protected

Definition at line 118 of file oauth_token.php.

Referenced by doHandleRequest().

The documentation for this class was generated from the following file:

- oauth_token.php

Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.