create an API to retrieve emails and set new clients, add very rudimentary client...
[authserver.git] / resource.php
diff --git a/resource.php b/resource.php
deleted file mode 100644 (file)
index 436f415..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-<?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!'));
-
-?>