WSFederationAuthenticationModule.GetSignOutRedirectUrl Method (SignOutCleanupRequestMessage)
Determines the URL to which to redirect when processing a WS-Federation sign-out clean-up request (wsignoutcleanup1.0) that contains a wreply parameter.
Assembly: System.IdentityModel.Services (in System.IdentityModel.Services.dll)
This method is called from the CanReadSignInResponse method in the request processing pipeline to determine the URL to redirect to after processing a WS-Federation sign-out clean-up request. It is only invoked if the message has a wreply parameter (the signOutMessage parameter has a Reply property that is neither null nor empty).
The default implementation validates the reply URL contained in the message (the SignOutCleanupRequestMessage.Reply property) against the address of the security token service (STS) that is specified by the Issuer property. The following conditions must be true for the reply URL to be valid:
The reply URL is an absolute URL.
The reply URL has the same scheme as the issuer.
The reply URL has the same port as the issuer.
Either the reply URL has the same host as the issuer or the reply URL specifies a sub-domain of the issuer.
If all of these conditions are true, the reply URL (Reply) is returned; otherwise, the URL specified by the Issuer property is returned.
Override this method to provide additional validation for the reply URL.
Available since 4.5