airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From machris...@apache.org
Subject [02/26] airavata git commit: AIRAVATA-2419 Save admin credentials when migrating
Date Mon, 03 Jul 2017 20:31:52 GMT
AIRAVATA-2419 Save admin credentials when migrating

Testing revealed that the MigrationManager.java wasn't saving
credentials.


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

Branch: refs/heads/keycloak-prod-migration
Commit: de6fcb19c509f37ff50590606fe08325266e583f
Parents: 9792d27
Author: Marcus Christie <machristie@apache.org>
Authored: Thu Jun 29 10:39:31 2017 -0400
Committer: Marcus Christie <machristie@apache.org>
Committed: Thu Jun 29 10:39:31 2017 -0400

----------------------------------------------------------------------
 .../src/main/java/org/apache/airavata/MigrationManager.java         | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/de6fcb19/modules/user-profile-migration/src/main/java/org/apache/airavata/MigrationManager.java
----------------------------------------------------------------------
diff --git a/modules/user-profile-migration/src/main/java/org/apache/airavata/MigrationManager.java
b/modules/user-profile-migration/src/main/java/org/apache/airavata/MigrationManager.java
index 68ad855..378da0a 100644
--- a/modules/user-profile-migration/src/main/java/org/apache/airavata/MigrationManager.java
+++ b/modules/user-profile-migration/src/main/java/org/apache/airavata/MigrationManager.java
@@ -287,6 +287,7 @@ public class MigrationManager {
         GatewayResourceProfile gatewayResourceProfile = airavataClient.getGatewayResourceProfile(authzToken,
gatewayId);
         gatewayResourceProfile.setIdentityServerTenant(gatewayId);
         gatewayResourceProfile.setIdentityServerPwdCredToken(passwordToken);
+        airavataClient.updateGatewayResourceProfile(authzToken, gatewayId, gatewayResourceProfile);
         return true;
     }
 


Mime
View raw message