airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject [1/2] airavata-php-gateway git commit: fixing username claim uri issue
Date Tue, 24 Nov 2015 23:33:18 GMT
Repository: airavata-php-gateway
Updated Branches:
  refs/heads/master d3d03c157 -> 75d75774f


fixing username claim uri issue


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

Branch: refs/heads/master
Commit: 7c7c657a4bbf92a19b390f0e7c998231c35caa19
Parents: e576d43
Author: scnakandala <supun.nakandala@gmail.com>
Authored: Tue Nov 24 18:29:54 2015 -0500
Committer: scnakandala <supun.nakandala@gmail.com>
Committed: Tue Nov 24 18:32:48 2015 -0500

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


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/7c7c657a/app/libraries/Wsis/Wsis.php
----------------------------------------------------------------------
diff --git a/app/libraries/Wsis/Wsis.php b/app/libraries/Wsis/Wsis.php
index 69c0e2f..48739e2 100755
--- a/app/libraries/Wsis/Wsis.php
+++ b/app/libraries/Wsis/Wsis.php
@@ -212,7 +212,7 @@ class Wsis {
      */
     public function getUserProfileFromOAuthToken($token){
         $userProfile = $this->oauthManger->getUserProfile($token);
-        return array('username'=>$userProfile->username, 'email'=>$userProfile->email,
'firstname'=>$userProfile->given_name,
+        return array('username'=>$userProfile->sub, 'email'=>$userProfile->email,
'firstname'=>$userProfile->given_name,
             'lastname'=>$userProfile->family_name, 'roles'=>explode(",",$userProfile->roles));
     }
 


Mime
View raw message