<div dir="ltr">Hello, <div><br></div><div>Basically, I have this Apache server that's protecting the '/app' resource and does a reverse proxy to my tomcat app. Here's my apache config: </div><div><br></div><div><div><VirtualHost *:443></div><div><br></div><div>        SSLEngine on</div><div>        SSLProtocol all</div><div>        SSLProxyEngine on</div><div>        SSLCertificateFile "/etc/apache2/ssl/apache.crt"</div><div>        SSLCertificateKeyFile "/etc/apache2/ssl/apache.key"</div><div><br></div><div>        ServerName <a href="https://server:443">https://server:443</a></div><div>        UseCanonicalName on</div><div><br></div><div>        ProxyPreserveHost On</div><div>        ProxyPass /Shibboleth.sso !</div><div>        ProxyPass /app <a href="https://localhost:8080/app">https://localhost:8080/app</a></div><div>        ProxyPassReverse /app <a href="https://localhost:8080/app">https://localhost:8080/app</a></div><div><br></div><div>        LogLevel info</div><div><br></div><div>        ErrorLog ${APACHE_LOG_DIR}/app.error.log</div><div>        CustomLog ${APACHE_LOG_DIR}/app.access.log combined</div><div></VirtualHost></div><div><br></div><div><Location /Shibboleth.sso></div><div>    SetHandler shib</div><div></Location></div></div><div><br></div><div><div><Location /app></div><div>    Header set Access-Control-Allow-Origin "*"</div><div>    ShibRequireSession On</div><div>    AuthType shibboleth</div><div>    ShibExportAssertion Off</div><div>    Require valid-user</div><div>    ShibUseHeaders on</div><div></Location></div></div><div><br></div><div>Basically, any request I make to server/app will auth against the IDP and create a new session every single time. Surprisingly enough, if I create a another location like so:<br><br><div><Location /></div><div>     Header set Access-Control-Allow-Origin "*"</div><div>    ShibRequireSession On</div><div>    AuthType shibboleth</div><div>    ShibExportAssertion Off</div><div>    Require valid-user</div><div>    ShibUseHeaders on</div><div></Location></div></div><div><br></div><div>And try to access any resource that does not match 'app', it will only make one request to the IDP and then it will basically use the _shibsession cookie to reuse the original session. </div><div><br></div><div>After making a request for my 'app', I check the cookies in the browser and I can't seem to find the _shibsession cookie. Here are the logs for two consecutive requests: </div><div><br></div><div><div>==> transaction.log <==</div><div>2016-05-16 23:25:28 INFO Shibboleth-TRANSACTION [18]: New session (ID: _1ace45750b3e3bfde7e114e759509587) with (applicationId: default) for principal from (IdP: ssg-idp) at (ClientAddress: 100.80.0.227) with (NameIdentifier: user_name) using (Protocol: urn:oasis:names:tc:SAML:2.0:protocol) from (AssertionID: _0df21bce-0a72-41aa-bbc2-5399a21fcb3f)</div><div>2016-05-16 23:25:28 INFO Shibboleth-TRANSACTION [18]: Cached the following attributes with session (ID: _1ace45750b3e3bfde7e114e759509587) for (applicationId: default) {</div><div>2016-05-16 23:25:28 INFO Shibboleth-TRANSACTION [18]:   SM_USER (1 values)</div><div>2016-05-16 23:25:28 INFO Shibboleth-TRANSACTION [18]: }</div><div><br></div><div>==> shibd_warn.log <==</div><div>2016-05-16 23:25:28 WARN Shibboleth.SessionCache [14]: unsuccessful read of session (ID: _1ace45750b3e3bfde7e114e759509587), caches out of sync?</div><div><br></div><div>==> transaction.log <==</div><div>2016-05-16 23:25:32 INFO Shibboleth-TRANSACTION [14]: New session (ID: _2341fa9020f04497ccc35c45e982bfad) with (applicationId: default) for principal from (IdP: ssg-idp) at (ClientAddress: 100.80.0.227) with (NameIdentifier: user_name) using (Protocol: urn:oasis:names:tc:SAML:2.0:protocol) from (AssertionID: _0d7604d3-3eda-4d0e-9367-0bc497de7742)</div><div>2016-05-16 23:25:32 INFO Shibboleth-TRANSACTION [14]: Cached the following attributes with session (ID: _2341fa9020f04497ccc35c45e982bfad) for (applicationId: default) {</div><div>2016-05-16 23:25:32 INFO Shibboleth-TRANSACTION [14]:   SM_USER (1 values)</div><div>2016-05-16 23:25:32 INFO Shibboleth-TRANSACTION [14]: }</div><div><br></div><div>==> shibd_warn.log <==</div><div>2016-05-16 23:25:32 WARN Shibboleth.SessionCache [14]: unsuccessful read of session (ID: _2341fa9020f04497ccc35c45e982bfad), caches out of sync?</div></div><div><br></div><div>It is also worth to note that my app does a bunch of redirects to itself and generates a bunch of css on the fly. Thus causing a lot of things to not load properly. Any help would be greatly appreciated. Please let me know if there's any further information I could provide that could be of any help. </div><div><br></div><div>Thanks, </div><div>-F </div><div><br></div></div>