We have extended SecurityTokenService
provided by Windows Identity Foundation
(WIF). It issues token as expected and the SAML token is added in the SOAP header while calling every other WCF service we have.
I can see correct values in the NotBefore
and NotOnOrAfter
Saml Conditions present in the security token.
But surprisingly every call to other WCF services succeeds even when service is called after the time stamp present in NotOnOrAfter
Saml condition that's present in the security token in the SOAP header.
- I do not understand why it happens. Do I need to write some code to reject the call having expired security token?
- Do I need to create custom binding or behavior for it?
- Does not WIF or WCF take care of this basic thing automatically?
- Great if you could point me to some good documentation that explains things happening under the hood !
I am using .NET 4.0