You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Check token expiration (expires is a mandatory paramter)
438
438
if (isset($token["expires"]) && time() > $token["expires"])
@@ -488,10 +488,10 @@ public function getBearerToken() {
488
488
thrownewOAuth2AuthenticateException(self::HTTP_BAD_REQUEST, $tokenType, $realm, self::ERROR_INVALID_REQUEST, 'Only one method may be used to authenticate at a time (Auth header, GET or POST).');
489
489
}
490
490
elseif ($methodsUsed == 0) {
491
-
thrownewOAuth2AuthenticateException(self::HTTP_BAD_REQUEST, $tokenType, $realm, self::ERROR_INVALID_REQUEST, 'The bearer token was not found.');
491
+
thrownewOAuth2AuthenticateException(self::HTTP_BAD_REQUEST, $tokenType, $realm, self::ERROR_INVALID_REQUEST, 'The access token was not found.');
492
492
}
493
493
494
-
// HEADER: Get the bearer token from the header
494
+
// HEADER: Get the access token from the header
495
495
if (!empty($headers)) {
496
496
if (!preg_match('/'.self::TOKEN_BEARER_HEADER_NAME.'\s(\S+)/', $headers, $matches)) {
0 commit comments