Add Cache-Control header to prevent browser caching of SAML auth location
authorNathan Kinder <nkinder@redhat.com>
Tue, 10 Mar 2015 18:22:47 +0000 (11:22 -0700)
committerRob Crittenden <rcritten@redhat.com>
Tue, 10 Mar 2015 22:24:08 +0000 (18:24 -0400)
We should prevent browser caching of the SAML auth location that we
configure for an SP. This can be easily done by adding the following
directive to that location in the httpd config:

    Header append Cache-Control "no-cache"

https://fedorahosted.org/ipsilon/ticket/81

Signed-off-by: Nathan Kinder <nkinder@redhat.com>
Reviewed-by: Rob Crittenden <rcritten@redhat.com>
ipsilon/install/ipsilon-client-install

index 9ed2a6f..237b439 100755 (executable)
@@ -115,6 +115,7 @@ def saml2():
             saml_protect = 'info'
             saml_auth = '<Location %s>\n' \
                         '    MellonEnable "auth"\n' \
+                        '    Header append Cache-Control "no-cache"\n' \
                         '</Location>\n' % args['saml_auth']
 
         psp = '# '