From ef928b19cfef64686222122edeadd6dcce7bc966 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Mon, 30 Jul 2012 12:10:13 +0100 Subject: [PATCH] Fixed HTTP method for getting `code` parameter --- src/Oauth2/Authentication/Server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Oauth2/Authentication/Server.php b/src/Oauth2/Authentication/Server.php index 125cb93a..a7b1ac9a 100644 --- a/src/Oauth2/Authentication/Server.php +++ b/src/Oauth2/Authentication/Server.php @@ -410,7 +410,7 @@ class Server // The authorization code if ( ! isset($authParams['code']) && - ! isset($_GET['code'])) { + ! isset($_POST['code'])) { throw new OAuthServerClientException(sprintf($this->errors['invalid_request'], 'code'), 0);