You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2017/05/01 17:17:13 UTC

[09/30] airavata-php-gateway git commit: setting oauth token

setting oauth token


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/2c25f19c
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/2c25f19c
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/2c25f19c

Branch: refs/heads/dreg-gateway
Commit: 2c25f19cdb619c122239919f27515909b7f76147
Parents: 8a7330c
Author: scnakandala <su...@gmail.com>
Authored: Mon Oct 31 15:03:18 2016 -0400
Committer: scnakandala <su...@gmail.com>
Committed: Mon Oct 31 15:03:18 2016 -0400

----------------------------------------------------------------------
 app/controllers/AccountController.php | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/2c25f19c/app/controllers/AccountController.php
----------------------------------------------------------------------
diff --git a/app/controllers/AccountController.php b/app/controllers/AccountController.php
index 6a50124..0b883eb 100644
--- a/app/controllers/AccountController.php
+++ b/app/controllers/AccountController.php
@@ -130,6 +130,7 @@ class AccountController extends BaseController
             $authzToken->claimsMap['gatewayID'] = Config::get('pga_config.airavata')['gateway-id'];
             $authzToken->claimsMap['userName'] = $username;
 
+            Session::put('oauth-token', $authzToken->accessToken);
             Session::put('authz-token',$authzToken);
             Session::put('oauth-refresh-code',$refreshToken);
             Session::put('oauth-expiration-time',$expirationTime);