X-Git-Url: https://git-public.kairo.at/?p=authserver.git;a=blobdiff_plain;f=token.php;fp=token.php;h=e3cf8ffa715081a14136643d597a4cd463da87f1;hp=44fcdc85807a16568556c9c6ae3110f59e25612e;hb=77f0f9ff1f1c54aef1e7370144df302d83118f70;hpb=558e9862bdf09a65cb41c76569cdb3f4021fa356 diff --git a/token.php b/token.php index 44fcdc8..e3cf8ff 100644 --- a/token.php +++ b/token.php @@ -3,7 +3,8 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ -// Simple server based on https://bshaffer.github.io/oauth2-server-php-docs/cookbook +// Called with e.g. curl .../token -d 'grant_type=authorization_code&client_id=testclient&client_secret=testpass&code=&state=f00bar&redirect_uri=http%3A%2F%2Ffake.example.com%2F' +// Response is always JSON. // Include the common auth system files (including the OAuth2 Server object). require_once(__DIR__.'/authsystem.inc.php');