Exponential Basic 2.4.0.1 Exponential Basic CMS — PHP Class Reference

oauth_token_endpoint_error.php
Go to the documentation of this file.
1 <?php
12 class ezpOauthTokenEndpointErrorType
13 {
14 const INVALID_REQUEST = "invalid_request";
15 const INVALID_CLIENT = "invalid_client";
16 const UNAUTHORIZED_CLIENT = "unauthorized_client";
17 const INVALID_GRANT = "invalid_grant";
18 const UNSUPPORTED_GRANT_TYPE = "unsupported_grant_type";
19 const INVALID_SCOPE = "invalid_scope";
20
21 public static function httpCodeForError( $error )
22 {
23 switch ( $error )
24 {
25 case self::UNAUTHORIZED_CLIENT:
26 return ezpHttpResponseCodes::UNAUTHORIZED;
27 break;
28 default:
29 return ezpHttpResponseCodes::BAD_REQUEST;
30 break;
31 }
32 }
33 }
ezpHttpResponseCodes\BAD_REQUEST
const BAD_REQUEST
Definition: http_response_codes.php:15
ezpHttpResponseCodes\UNAUTHORIZED
const UNAUTHORIZED
Definition: http_response_codes.php:16
ezpOauthTokenEndpointErrorType
Definition: oauth_token_endpoint_error.php:13
ezpOauthTokenEndpointErrorType\INVALID_GRANT
const INVALID_GRANT
Definition: oauth_token_endpoint_error.php:17
ezpOauthTokenEndpointErrorType\INVALID_SCOPE
const INVALID_SCOPE
Definition: oauth_token_endpoint_error.php:19
ezpOauthTokenEndpointErrorType\INVALID_CLIENT
const INVALID_CLIENT
Definition: oauth_token_endpoint_error.php:15
ezpOauthTokenEndpointErrorType\UNSUPPORTED_GRANT_TYPE
const UNSUPPORTED_GRANT_TYPE
Definition: oauth_token_endpoint_error.php:18
ezpOauthTokenEndpointErrorType\UNAUTHORIZED_CLIENT
const UNAUTHORIZED_CLIENT
Definition: oauth_token_endpoint_error.php:16
ezpOauthTokenEndpointErrorType\httpCodeForError
static httpCodeForError( $error)
Definition: oauth_token_endpoint_error.php:21
ezpOauthTokenEndpointErrorType\INVALID_REQUEST
const INVALID_REQUEST
Definition: oauth_token_endpoint_error.php:14
$error
$error
Definition: ezarticle/admin/categoryedit.php:51
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.