<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">I would be grateful if someone could please help me understand the behavior of the Service Provider that I shall describe below. 
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m sure it’s due to some gap in my understanding of SAML, but I have been trying to fill that gap for several days now and have not had any success.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have an application whose frequent XHR requests hit a Shibboleth-protected endpoint.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The IdP (ADFS) is providing this Subject and Conditions in its assertion:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">          <Subject><o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">            <SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer"><SubjectConfirmationData InResponseTo="_919647393007bfbe7252284cf3f475d4"<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">                NotOnOrAfter="2018-10-18T21:13:53.932Z"<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">                Recipient="https://my.serviceProvder.com/Shibboleth.sso/SAML2/POST"/></SubjectConfirmation><o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">        </Subject><o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">        <Conditions NotBefore="2018-10-18T21:08:53.929Z" NotOnOrAfter="2018-10-19T05:08:53.929Z"><o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">            <AudienceRestriction><o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">                <Audience>https://my.serviceProvder.com/shibboleth</Audience><o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">            </AudienceRestriction><o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">        </Conditions><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">In particular, observe the SubjectConfirmation NotOnOrAfter is about 5 minutes after the time of issue of the assertion (see the Conditions NotBefore). 
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The behavior of the Shibboleth 3 Service Provider (shibboleth-3.0.1-3.1.x86_64) is as follows:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If the user starts using the application before the SubjectConfirmation’s NotOnOrAfter and continues to use the application (thereby issuing XHR requests to the Shibboleth-protected endpoint), XHR requests are not 302’d by Shibboleth back
 to the IdP even after the SubjectConfirmation’s NotOnOrAfter.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">However, if the user pauses the stream of XHR requests for some number of minutes (5, as nearly as I can tell) after the SubjectConfirmation’s NotOnOrAfter, then subsequent requests are 302’d back to the IdP.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Under what circumstances does Shibboleth SP (apparently) not observe the SubjectConfirmation’s NotOnOrAfter?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">What mechanism determines the number of idle minutes?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m using a lifetime=”28800”  timeout=”1800” and relayState=”cookie” in my Sessions for this particular IdP, if that matters.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">My SessionCache uses my MEMCACHE storage service and specifies a CacheAllowance of 3600, with default cleanupInterval and inprocTimeout.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Many thanks for any help you can offer!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Regards,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Mike<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>