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 <[email protected]>
Authored: Thu Jun 29 10:39:31 2017 -0400
Committer: Marcus Christie <[email protected]>
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;
     }
 

Reply via email to