subjectConfirmation.SubjectConfirmationData.IsWithinTimePeriod(new TimeSpan(0, 0, _20))

I’m using version of SAMLv2 component and I’m evaluating it.

I think I’ve found a bug in the method IsWithinTimePeriod on SubjectConfirmationData element when I pass a TimeSpan in argument ).
I get the following error : “The added of substracted value resultsin a n un-representable DataTime”.

Below the part of the saml response :

<saml:SubjectConfirmation Method=“urn:oasis:names:tc:SAML:2:0:cm:bearer”>
<saml:SubjectConfirmationData Recipient=“<a href=“https://…” “=””><a href=“https://…” “=”“><a href=“https://…””>https://…" NotOnOrAfter=“2016-03-14T11:57:24Z” />

When, I use IsWithinTimePeriod on “Conditions” xml element with a TimeSpan parameter, it works fine.
There is one difference :
- on SubjectConfirmationData only NotOnOrAfter property is defined
- on Conditions NotBefore and NotOnOrAfter properties are defined

Can you tell me if I did somerhing wrong or this is really a bug, and if it’s a bug when I can expect the fix.

Thanks for pointing this out. This is indeed a bug. It will be fixed in which will be released shortly.
If you’d like a fix prior to this please contact mentioning this topic.

Thanks for the quick reply.
Are you publishing some release notes ?
I’m very interested in what’s new and what’s fixed in your releases.


Release notes are available upon request. Just send us an email and we can provide these. Currently we don’t publish these publically.