airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From machris...@apache.org
Subject [3/3] airavata git commit: AIRAVATA-2431 Add admin user to 'admin' role
Date Thu, 08 Jun 2017 16:27:48 GMT
AIRAVATA-2431 Add admin user to 'admin' role


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/f52024fe
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/f52024fe
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/f52024fe

Branch: refs/heads/develop
Commit: f52024fe86751a7a8ff3d19d503744ed98f4522b
Parents: ffbf329
Author: Marcus Christie <machristie@apache.org>
Authored: Thu Jun 8 12:27:22 2017 -0400
Committer: Marcus Christie <machristie@apache.org>
Committed: Thu Jun 8 12:27:22 2017 -0400

----------------------------------------------------------------------
 .../iam/admin/services/core/impl/TenantManagementKeycloakImpl.java  | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/f52024fe/airavata-services/profile-service/iam-admin-services-core/src/main/java/org/apache/airavata/service/profile/iam/admin/services/core/impl/TenantManagementKeycloakImpl.java
----------------------------------------------------------------------
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 c457bc0..6638697 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
@@ -170,6 +170,7 @@ public class TenantManagementKeycloakImpl implements TenantManagementInterface
{
             user.setLastName(gatewayDetails.getGatewayAdminLastName());
             user.setEmail(gatewayDetails.getGatewayAdminEmail());
             user.setEnabled(true);
+            user.setRealmRoles(Arrays.asList("admin"));
             List<String> requiredActionList = new ArrayList<>();
             requiredActionList.add("UPDATE_PASSWORD");
             user.setRequiredActions(requiredActionList);


Mime
View raw message