You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sc...@apache.org on 2016/04/23 04:08:16 UTC

[19/23] airavata-php-gateway git commit: encoding username and password

encoding username and password


Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/289b9e49
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/289b9e49
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/289b9e49

Branch: refs/heads/master
Commit: 289b9e49f7ffc31e699b2b87cbb3d572ce8c4849
Parents: 5337dd3
Author: scnakandala <su...@gmail.com>
Authored: Tue Apr 19 12:28:23 2016 -0400
Committer: scnakandala <su...@gmail.com>
Committed: Tue Apr 19 12:28:23 2016 -0400

----------------------------------------------------------------------
 app/libraries/Wsis/Stubs/OAuthManager.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/289b9e49/app/libraries/Wsis/Stubs/OAuthManager.php
----------------------------------------------------------------------
diff --git a/app/libraries/Wsis/Stubs/OAuthManager.php b/app/libraries/Wsis/Stubs/OAuthManager.php
index b67c3a1..e127e18 100644
--- a/app/libraries/Wsis/Stubs/OAuthManager.php
+++ b/app/libraries/Wsis/Stubs/OAuthManager.php
@@ -70,7 +70,7 @@ class OAuthManager
         ));
 
         // Assemble POST parameters for the request.
-        $post_fields = "grant_type=password&username=" . urlencode($username) . "&password=" . urlencode($password) . "&scope=openid";
+        $post_fields = "grant_type=password&username=" . $username . "&password=" . $password . "&scope=openid";
 
         // Obtain and return the access token from the response.
         curl_setopt($r, CURLOPT_POST, true);