SignInRequestMessage.Validate Method ()

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Validates the current instance.

Namespace:   System.IdentityModel.Services
Assembly:  System.IdentityModel.Services (in System.IdentityModel.Services.dll)

protected override void Validate()

Exception Condition

The wa parameter (the Action property) is not set to “wsignin1.0”.


Neither the wtrealm parameter nor the wreply parameter is present. (The Realm property and the Reply property are null or empty.)


Both the wreq parameter and the wreqptr parameter are present. (The Request property and the RequestPtr property are both set.)


For backward compatibility with Active Directory Federation Services (AD FS) version 1.0, Windows Identity Foundation (WIF) allows either the wtrealm parameter or the wreply parameter to be set (or both) for a sign-in message to be valid; however, the WS-Federation protocol requires that the wtrealm parameter be present in a sign-in request. In most scenarios, you should ensure that the wtrealm parameter is specified.

.NET Framework
Available since 4.5
Return to top