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 2021/07/26 17:47:18 UTC

[airavata] 01/02: AIRAVATA-3319 Allow editing usernames in Keycloak realms

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

commit 2dee29ea7bb986dd65ea4375914e7ceca1797400
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Mon Jul 26 13:44:41 2021 -0400

    AIRAVATA-3319 Allow editing usernames in Keycloak realms
---
 .../iam/admin/services/core/impl/TenantManagementKeycloakImpl.java       | 1 +
 1 file changed, 1 insertion(+)

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 7baa89d..6e0fcdb 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
@@ -154,6 +154,7 @@ public class TenantManagementKeycloakImpl implements TenantManagementInterface {
             // Default access token lifespan to 30 minutes, SSO session idle to 60 minutes
             newRealmDetails.setAccessTokenLifespan(1800);
             newRealmDetails.setSsoSessionIdleTimeout(3600);
+            newRealmDetails.setEditUsernameAllowed(true);
             RealmRepresentation realmWithRoles = TenantManagementKeycloakImpl.createDefaultRoles(newRealmDetails);
             client.realms().create(realmWithRoles);
             return gatewayDetails;