From 4c5f3403ea5a72e61774192dbf83c8f28035eca8 Mon Sep 17 00:00:00 2001 From: santhosh-opsmx <418@Santosh> Date: Wed, 25 Nov 2020 10:56:35 +0530 Subject: [PATCH] Added log message while doing logout operation Increased Saml logout time to 8 hrs --- .../groovy/com/netflix/spinnaker/gate/config/AuthConfig.groovy | 1 + .../netflix/spinnaker/gate/security/saml/SamlSsoConfig.groovy | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gate-core/src/main/groovy/com/netflix/spinnaker/gate/config/AuthConfig.groovy b/gate-core/src/main/groovy/com/netflix/spinnaker/gate/config/AuthConfig.groovy index 32a910fe00..825dad4708 100644 --- a/gate-core/src/main/groovy/com/netflix/spinnaker/gate/config/AuthConfig.groovy +++ b/gate-core/src/main/groovy/com/netflix/spinnaker/gate/config/AuthConfig.groovy @@ -132,6 +132,7 @@ class AuthConfig { def username = (authentication?.getPrincipal() as User)?.username if (username) { permissionService.logout(username) + log.info("Successfully logged out user : {}", username) } delegate.onLogoutSuccess(request, response, authentication) } diff --git a/gate-saml/src/main/groovy/com/netflix/spinnaker/gate/security/saml/SamlSsoConfig.groovy b/gate-saml/src/main/groovy/com/netflix/spinnaker/gate/security/saml/SamlSsoConfig.groovy index d8e8b271b4..f0e8498993 100644 --- a/gate-saml/src/main/groovy/com/netflix/spinnaker/gate/security/saml/SamlSsoConfig.groovy +++ b/gate-saml/src/main/groovy/com/netflix/spinnaker/gate/security/saml/SamlSsoConfig.groovy @@ -92,7 +92,7 @@ class SamlSsoConfig extends WebSecurityConfigurerAdapter { List requiredRoles UserAttributeMapping userAttributeMapping = new UserAttributeMapping() - long maxAuthenticationAge = 7200 + long maxAuthenticationAge = 28800 String signatureDigest = "SHA1" // SHA1 is the default registered in DefaultSecurityConfigurationBootstrap.populateSignatureParams