Repository: airavata-php-gateway
Updated Branches:
  refs/heads/develop e4e613f97 -> f072341a1


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

Branch: refs/heads/develop
Commit: ba6381dd33a28c925411c3673e0ce6278294b943
Parents: cce4225
Author: scnakandala <[email protected]>
Authored: Tue Nov 24 18:29:54 2015 -0500
Committer: scnakandala <[email protected]>
Committed: Tue Nov 24 18:29:54 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/ba6381dd/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));
     }
 

Reply via email to