AIRAVATA-2507 Change access token, sso idle session timeouts

Setting access token timeout to 30 minutes, sso idel session timeout to
60 minutes.


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

Branch: refs/heads/develop
Commit: b279904467f3005b42791beffd3ccbd0ec718cc0
Parents: 21a7505
Author: Marcus Christie <machris...@apache.org>
Authored: Tue Aug 8 14:24:03 2017 -0400
Committer: Marcus Christie <machris...@apache.org>
Committed: Tue Aug 8 14:24:03 2017 -0400

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


http://git-wip-us.apache.org/repos/asf/airavata/blob/b2799044/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 e3ac6a3..83e8e89 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
@@ -105,6 +105,9 @@ public class TenantManagementKeycloakImpl implements 
TenantManagementInterface {
             // Following two settings allow duplicate email addresses
             newRealmDetails.setLoginWithEmailAllowed(false);
             newRealmDetails.setDuplicateEmailsAllowed(true);
+            // Default access token lifespan to 30 minutes, SSO session idle 
to 60 minutes
+            newRealmDetails.setAccessTokenLifespan(1800);
+            newRealmDetails.setSsoSessionIdleTimeout(3600);
             RealmRepresentation realmWithRoles = 
TenantManagementKeycloakImpl.createDefaultRoles(newRealmDetails);
             client.realms().create(realmWithRoles);
             return gatewayDetails;

Reply via email to