<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: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:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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-GB" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">We have configured our Shibboleth SP "SecurityPolicies" like below<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><SecurityPolicies xmlns="urn:mace:shibboleth:3.0:native:sp:config"><o:p></o:p></p>
<p class="MsoNormal">    <o:p></o:p></p>
<p class="MsoNormal">    <Policy id="default" validate="false"><o:p></o:p></p>
<p class="MsoNormal">        <PolicyRule type="MessageFlow" checkReplay="true" expires="60"/><o:p></o:p></p>
<p class="MsoNormal">        <PolicyRule type="Conditions"><o:p></o:p></p>
<p class="MsoNormal">            <PolicyRule type="Audience"/><o:p></o:p></p>
<p class="MsoNormal">        </PolicyRule><o:p></o:p></p>
<p class="MsoNormal">        <PolicyRule type="ClientCertAuth" errorFatal="true"/><o:p></o:p></p>
<p class="MsoNormal">        <PolicyRule type="XMLSigning" errorFatal="true"/><o:p></o:p></p>
<p class="MsoNormal">        <PolicyRule type="SimpleSigning" errorFatal="true"/><o:p></o:p></p>
<p class="MsoNormal">    </Policy><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">    <Policy id="entity-attributes"><o:p></o:p></p>
<p class="MsoNormal">        <PolicyRule type="Conditions"/><o:p></o:p></p>
<p class="MsoNormal">        <PolicyRule type="XMLSigning" errorFatal="true"/><o:p></o:p></p>
<p class="MsoNormal">    </Policy><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">    <AlgorithmBlacklist includeDefaultBlacklist="true"/><o:p></o:p></p>
<p class="MsoNormal"></SecurityPolicies><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">As per this documentation, if we have "Conditions Rule", SP enforces the NotBefore and NotOnOrAfter attributes during assertion.<o:p></o:p></p>
<p class="MsoNormal">https://wiki.shibboleth.net/confluence/display/SP3/Conditions+Rule<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">During our testing, in one of our Shibboleth IdP, we disabled 'NotBefore' attribute in relying-party.xml like below<o:p></o:p></p>
<p class="MsoNormal"><o:p></o:p></p>
<p class="MsoNormal"> <bean parent="SAML2.SSO" p:includeConditionsNotBefore="false" /><o:p></o:p></p>
<p class="MsoNormal"><bean parent="Shibboleth.SSO" p:includeConditionsNotBefore="false" /><o:p></o:p></p>
<p class="MsoNormal"><o:p></o:p></p>
<p class="MsoNormal">After this change IdP is sending SAML response Conditions only with NotOnOrAfter, like below<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><saml2:Conditions NotOnOrAfter="2021-01-28T11:41:16.517Z"><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">But my Shibboleth SP still granting access even NotBefore attribute is absent in SAML response.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Could someone help me to understand, Is Shibboleth SP rejects access only if both NotBefore and NotOnOrAfter attributes absent in SAML response?<o:p></o:p></p>
<p class="MsoNormal">Or Am I doing any wrong with my SP configuration?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Just for my testing, is there any way to disable NotOnOrAfter in my Shibboleth IdP?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Prasanth K<o:p></o:p></p>
</div>
</body>
</html>