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 2019/06/03 12:49:14 UTC

[airavata] branch develop updated: AIRAVATA-3041 Include creation time for Keycloak user profile info

This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/airavata.git


The following commit(s) were added to refs/heads/develop by this push:
     new 89c82f2  AIRAVATA-3041 Include creation time for Keycloak user profile info
89c82f2 is described below

commit 89c82f2512eff036b64158d673b76e9ef2538274
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Mon Jun 3 08:48:52 2019 -0400

    AIRAVATA-3041 Include creation time for Keycloak user profile info
---
 .../iam/admin/services/core/impl/TenantManagementKeycloakImpl.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/airavata-services/profile-service/iam-admin-services-core/src/main/java/org/apache/airavata/service/profile/iam/admin/services/core/impl/TenantManagementKeycloakImpl.java b/airavata-services/profile-service/iam-admin-services-core/src/main/java/org/apache/airavata/service/profile/iam/admin/services/core/impl/TenantManagementKeycloakImpl.java
index 5b22288..1b49f1d 100644
--- a/airavata-services/profile-service/iam-admin-services-core/src/main/java/org/apache/airavata/service/profile/iam/admin/services/core/impl/TenantManagementKeycloakImpl.java
+++ b/airavata-services/profile-service/iam-admin-services-core/src/main/java/org/apache/airavata/service/profile/iam/admin/services/core/impl/TenantManagementKeycloakImpl.java
@@ -777,10 +777,10 @@ public class TenantManagementKeycloakImpl implements TenantManagementInterface {
         profile.setFirstName(userRepresentation.getFirstName());
         profile.setLastName(userRepresentation.getLastName());
         profile.setEmails(Arrays.asList(new String[]{userRepresentation.getEmail()}));
+        profile.setCreationTime(userRepresentation.getCreatedTimestamp());
 
         // Just default these. UserProfile isn't a great data model for this data since it isn't actually the Airavata UserProfile
         profile.setLastAccessTime(0);
-        profile.setCreationTime(0);
         profile.setValidUntil(0);
         // Use state field to indicate whether user has been enabled in Keycloak
         if (userRepresentation.isEnabled()) {