Hi all
Really hope someone can help me.
I need to convert the following apache config to nginx (https://wiki.jenkins-ci.org/display/JENKINS/SAML+Plugin). It is needed to help get users redirected to SSO logout when clicking on jenkins logout.
RewriteEngine On
# find the unique session identifier using RewriteCond
RewriteCond %{HTTP_COOKIE} (JSESSIONID.[a-z0-9]+)
# redirect the logout URL to the IdP logout (in this case SimpleSAMLphp) and reset the session cookie
RewriteRule ^/?logout$ https://idp.example.com/simplesamlphp/saml2/idp/initSLO.php?RelayState=https://jenkins.example.com/ [R,CO=%1:0:;]
Any help would be really appreciated