+++ /dev/null
-<?php
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this file,
- * You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-// Simple server based on https://bshaffer.github.io/oauth2-server-php-docs/cookbook
-
-// Include the common auth system files (including the OAuth2 Server object).
-require_once(__DIR__.'/authsystem.inc.php');
-
-// Handle a request to a resource and authenticate the access token
-if (!$server->verifyResourceRequest(OAuth2\Request::createFromGlobals())) {
- $server->getResponse()->send();
- die;
-}
-echo json_encode(array('success' => true, 'message' => 'You accessed my APIs!'));
-
-?>