I'm implementing NemLog-in3 / OIOSAML 3 authentication in my .NET Core web application. With great success so far. I only have this one question about the security token validation, when getting the assertion from the IdP, after authentication.
When i get the assertion from the IdP, it has a SecurityToken in the response, with a validFrom and a validTo Datetime. The difference is +1 hour, but in the OIOSAML3 test documentation, it says to "invalidate" the assertion and that your SP should reject the user from logging in after 5 minutes.
Do you know if it's possible to configure the securityToken valid period (set it to 5 minutes), perhaps when initiating the SAML authentication? I know i could just check the validTo and add 5 minutes to it, but i'd rather have it working dynamically, with the validTo property, if possible.
The
ConditionselementsNotBeforeandNotOnOrAfteris valid for an hour, which is correct. The 5 minutes login restriction should have been in theSubjectConfirmationelementNotOnOrAfter. It looks like an error in NemLog-in3?NemLog-in3 SAML 2.0 authn response: