From 5ec1bf8a884fbe767013cc83bf479ead4383310b Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Sun, 27 Jul 2014 22:50:41 +0100 Subject: [PATCH] Renamed auth.php to authcode_grant.php --- examples/relational/{auth.php => authcode_grant.php} | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) rename examples/relational/{auth.php => authcode_grant.php} (94%) diff --git a/examples/relational/auth.php b/examples/relational/authcode_grant.php similarity index 94% rename from examples/relational/auth.php rename to examples/relational/authcode_grant.php index 2faca4b2..960147f2 100644 --- a/examples/relational/auth.php +++ b/examples/relational/authcode_grant.php @@ -33,7 +33,6 @@ $server->addGrantType($authCodeGrant); $request = (new Request)->createFromGlobals(); $server->setRequest($request); -// GET /authorize $router->get('/authorize', function (Request $request) use ($server) { // First ensure the parameters in the query string are correct @@ -74,15 +73,12 @@ $router->get('/authorize', function (Request $request) use ($server) { return $response; }); -// /access_token $router->post('/access_token', function (Request $request) use ($server) { try { $response = $server->issueAccessToken(); - return new Response(json_encode($response), 200, [ - 'Location' => $redirectUri - ]); + return new Response(json_encode($response), 200); } catch (\Exception $e) {