X-Git-Url: https://git-public.kairo.at/?p=authserver.git;a=blobdiff_plain;f=resource.php;h=436f4153a737b4c27d7cde3c341375fb66c13389;hp=fdd5a91842d4268c07dbeda92c9236605fb3cead;hb=d26d08a171f0f65437bc7ea416239cfb31c4db27;hpb=e6624d81c4ccfb9f8aad62f72b007880dc08eabb diff --git a/resource.php b/resource.php index fdd5a91..436f415 100644 --- a/resource.php +++ b/resource.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 to a resource and authenticate the access token if (!$server->verifyResourceRequest(OAuth2\Request::createFromGlobals())) {