airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From machris...@apache.org
Subject airavata-php-gateway git commit: AIRAVATA-2444 Fix searchUsers to return user fields
Date Mon, 16 Oct 2017 18:39:42 GMT
Repository: airavata-php-gateway
Updated Branches:
  refs/heads/develop 702abd766 -> 626450650


AIRAVATA-2444 Fix searchUsers to return user fields


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

Branch: refs/heads/develop
Commit: 626450650f143d378f0396b2c6cfae42ccc49b69
Parents: 702abd7
Author: Marcus Christie <machrist@iu.edu>
Authored: Mon Oct 16 14:39:18 2017 -0400
Committer: Marcus Christie <machrist@iu.edu>
Committed: Mon Oct 16 14:39:18 2017 -0400

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


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/62645065/app/libraries/Keycloak/Keycloak.php
----------------------------------------------------------------------
diff --git a/app/libraries/Keycloak/Keycloak.php b/app/libraries/Keycloak/Keycloak.php
index 258fd60..7c4d90c 100644
--- a/app/libraries/Keycloak/Keycloak.php
+++ b/app/libraries/Keycloak/Keycloak.php
@@ -275,7 +275,7 @@ class Keycloak {
         $users = $this->users->searchUsers($this->realm, $phrase);
         $usernames = [];
         foreach ($users as $user) {
-            $usernames[] = $user->username;
+            array_push($usernames, (object)["firstName"=>$user->firstName,"lastName"=>$user->lastName,"email"=>$user->email,"userName"=>$user->username]);
         }
         return $usernames;
     }


Mime
View raw message