File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
src/main/java/eu/openanalytics/containerproxy/auth/impl/saml Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ public class SAMLConfiguration {
81
81
82
82
private static final String PROP_LOG_ATTRIBUTES = "proxy.saml.log-attributes" ;
83
83
private static final String PROP_FORCE_AUTHN = "proxy.saml.force-authn" ;
84
+ private static final String PROP_MAX_AUTHENTICATION_AGE = "proxy.saml.max-authentication-age" ;
84
85
private static final String PROP_KEYSTORE = "proxy.saml.keystore" ;
85
86
private static final String PROP_ENCRYPTION_CERT_NAME = "proxy.saml.encryption-cert-name" ;
86
87
private static final String PROP_ENCRYPTION_CERT_PASSWORD = "proxy.saml.encryption-cert-password" ;
@@ -98,7 +99,7 @@ public class SAMLConfiguration {
98
99
99
100
@ Inject
100
101
private UserLogoutHandler userLogoutHandler ;
101
-
102
+
102
103
@ Bean
103
104
public SAMLEntryPoint samlEntryPoint () {
104
105
SAMLEntryPoint samlEntryPoint = new SAMLEntryPoint ();
@@ -314,7 +315,12 @@ public AlreadyLoggedInFilter alreadyLoggedInFilter() {
314
315
315
316
@ Bean
316
317
public WebSSOProfileConsumer webSSOprofileConsumer () {
317
- return new WebSSOProfileConsumerImpl ();
318
+ WebSSOProfileConsumerImpl res = new WebSSOProfileConsumerImpl ();
319
+ Integer maxAuthenticationAge = environment .getProperty (PROP_MAX_AUTHENTICATION_AGE , Integer .class );
320
+ if (maxAuthenticationAge != null ) {
321
+ res .setMaxAuthenticationAge (maxAuthenticationAge );
322
+ }
323
+ return res ;
318
324
}
319
325
320
326
@ Bean
You can’t perform that action at this time.
0 commit comments