SignInRequestMessage.Validate 方法

定义

验证当前实例。Validates the current instance.

protected:
 override void Validate();
protected override void Validate ();
override this.Validate : unit -> unit
Protected Overrides Sub Validate ()

例外

wa 参数(Action 属性)未被设置为“wsignin1.0”。The wa parameter (the Action property) is not set to "wsignin1.0".

wtrealm 参数和 wreply 参数都未出现。Neither the wtrealm parameter nor the wreply parameter is present. Realm 属性和 Reply 属性为null或者为空。)(The Realm property and the Reply property are null or empty.) - 或 --or- 存在 wreq 参数和 wreqptr 参数。Both the wreq parameter and the wreqptr parameter are present. Request 属性和 RequestPtr 属性均被设置。)(The Request property and the RequestPtr property are both set.)

注解

重要

为了与 Active Directory 联合身份验证服务 (AD FS) 版本1.0 的向后兼容,Windows Identity Foundation (WIF) 允许将 wtrealm 参数或 wreply 参数设置 (或同时) 两个,以便登录消息有效;但 WS-Federation 协议要求在登录请求中存在 wtrealm 参数。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. 在大多数情况下,应确保指定了 wtrealm 参数。In most scenarios, you should ensure that the wtrealm parameter is specified.

适用于