Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
SecurityTokenValidFrom gives an exception #26
I am having an error, and I think I have located the bug..
When I call: saml2AuthnResponse.CreateSession(HttpContext, claimsTransform: ClaimsTransform.Transform)
Which is coming from "saml2AuthnResponse.SecurityTokenValidFrom" in the CreateSession-function.
I can see that the type of saml2AuthnResponse.SecurityTokenValidFrom has been changed from DateTime to DateTimeOffset, and the service I call is not defining a "ValidFrom", and therefore the value is never set.
DateTimeOffset does not work with DateTime.MinValue
My work-around is this: (ITfoxtec.Identity.Saml2.Saml2AuthnResponse)
Then the system works, even if the assertion does not come with a ValidFrom-value
Best regards, and thanks for a great framework :)
Thank you for testing the code :)
This issue is solved in release https://github.com/ITfoxtec/ITfoxtec.Identity.Saml2/releases/tag/3.0.1