projects
/
authserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
some steps to get an actual authentication going, consolidate includes, put DB config...
[authserver.git]
/
authorize.php
diff --git
a/authorize.php
b/authorize.php
index 23c93087e4aa39ccede23fc431f81d22a496a7db..33d7d5e25f4ebe8217962ec1e4bf0080d2d6dace 100644
(file)
--- a/
authorize.php
+++ b/
authorize.php
@@
-5,8
+5,8
@@
// Simple server based on https://bshaffer.github.io/oauth2-server-php-docs/cookbook
// 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();
$request = OAuth2\Request::createFromGlobals();
$response = new OAuth2\Response();