require JS, set cookies, make parts of login flow work
[authserver.git] / authorize.php
index 23c93087e4aa39ccede23fc431f81d22a496a7db..33d7d5e25f4ebe8217962ec1e4bf0080d2d6dace 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');
 
 $request = OAuth2\Request::createFromGlobals();
 $response = new OAuth2\Response();