Export (0) Print
Expand All

SignInRequestMessage.Validate Method

.NET Framework 4.5

Validates the current instance.

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

protected override void Validate()

ExceptionCondition
InvalidOperationException

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

WSFederationMessageException

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

-or-

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

Important noteImportant

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

Supported in: 4.5.2, 4.5.1, 4.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft