WSFederationAuthenticationModule.IsSignInResponse(HttpRequestBase) 方法
定义
获取指示指定请求是否为 WS-Federation 登录响应消息的值。Gets a value that indicates whether the specified request is a WS-Federation sign-in response message.
public:
virtual bool IsSignInResponse(System::Web::HttpRequestBase ^ request);
public virtual bool IsSignInResponse (System.Web.HttpRequestBase request);
abstract member IsSignInResponse : System.Web.HttpRequestBase -> bool
override this.IsSignInResponse : System.Web.HttpRequestBase -> bool
Public Overridable Function IsSignInResponse (request As HttpRequestBase) As Boolean
参数
- request
- HttpRequestBase
传入的 HTTP 请求。The incoming HTTP request.
返回
如果请求为 WS 联合登录响应消息,则为 true;否则为 false。true if the request is a WS-Federation sign-in response message; otherwise, false.
例外
request 为 null。request is null.
注解
此方法从 CanReadSignInResponse 请求处理管道中的方法调用,以确定传入的 HTTP 请求是否为 WS-Federation 登录响应消息。This method is called from the CanReadSignInResponse method in the request processing pipeline to determine whether the incoming HTTP request is a WS-Federation sign-in response message.
true如果将 wa 参数设置为 "wsignin1.0 1.0",则默认实现将返回,且不会同时设置 wreq 和 wreqptr 参数。The default implementation returns true if the wa parameter is "wsignin1.0" and the wreq and wreqptr parameters are not both set.
可以在派生类中重写此方法以执行其他验证。You can override this method in derived classes to perform additional validation.