Loading include/front-controller.php +3 −3 Original line number Diff line number Diff line Loading @@ -130,18 +130,18 @@ Flight::route('POST /auth/oauth2/check_token', function() { $headers = apache_request_headers(); if (!isset($headers['Authorization'])) { throw new BadRequestException("Missing Authorization header"); throw new \RAP\BadRequestException("Missing Authorization header"); } $authorizationHeader = explode(" ", $headers['Authorization']); if ($authorizationHeader[0] === "Bearer") { $token = $authorizationHeader[1]; } else { throw new BadRequestException("Invalid token type"); throw new \RAP\BadRequestException("Invalid token type"); } if ($token === null) { throw new BadRequestException("Access token is required"); throw new \RAP\BadRequestException("Access token is required"); } $requestHandler = new \RAP\OAuth2RequestHandler($locator); Loading Loading
include/front-controller.php +3 −3 Original line number Diff line number Diff line Loading @@ -130,18 +130,18 @@ Flight::route('POST /auth/oauth2/check_token', function() { $headers = apache_request_headers(); if (!isset($headers['Authorization'])) { throw new BadRequestException("Missing Authorization header"); throw new \RAP\BadRequestException("Missing Authorization header"); } $authorizationHeader = explode(" ", $headers['Authorization']); if ($authorizationHeader[0] === "Bearer") { $token = $authorizationHeader[1]; } else { throw new BadRequestException("Invalid token type"); throw new \RAP\BadRequestException("Invalid token type"); } if ($token === null) { throw new BadRequestException("Access token is required"); throw new \RAP\BadRequestException("Access token is required"); } $requestHandler = new \RAP\OAuth2RequestHandler($locator); Loading