X-Git-Url: https://git-public.kairo.at/?p=authserver.git;a=blobdiff_plain;f=token.php;h=44fcdc85807a16568556c9c6ae3110f59e25612e;hp=31bb0cca959877e3db4949fa6ec7b4c110eacc0a;hb=133aecbe7a7fb733dc202240ec7de844e2baf425;hpb=e6624d81c4ccfb9f8aad62f72b007880dc08eabb;ds=sidebyside diff --git a/token.php b/token.php index 31bb0cc..44fcdc8 100644 --- a/token.php +++ b/token.php @@ -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 for an OAuth2.0 Access Token and send the response to the client $server->handleTokenRequest(OAuth2\Request::createFromGlobals())->send();