some steps to get an actual authentication going, consolidate includes, put DB config...
[authserver.git] / resource.php
index fdd5a91842d4268c07dbeda92c9236605fb3cead..436f4153a737b4c27d7cde3c341375fb66c13389 100644 (file)
@@ -5,8 +5,8 @@
 
 // Simple server based on https://bshaffer.github.io/oauth2-server-php-docs/cookbook
 
-// include our OAuth2 Server object
-require_once __DIR__.'/server.php';
+// 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())) {