WSFederationAuthenticationModule::GetSecurityToken Method (HttpRequestBase^)

.NET Framework (current version)

Reads a security token from the specified HTTP request.

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

virtual SecurityToken^ GetSecurityToken(
	HttpRequestBase^ request


Type: System.Web::HttpRequestBase^

The HTTP request from which to read the token.

Return Value

Type: System.IdentityModel.Tokens::SecurityToken^

The security token that was read.

Exception Condition

request is null.

Called from the request processing pipeline to get the WS-Federation sign-in request message as a SecurityToken object.

The default implementation invokes the GetSignInResponseMessage method to get a SignInResponseMessage object and then invokes the WSFederationAuthenticationModule::GetSecurityToken(SignInResponseMessage^) overload.

Use a derived class to interpret a specific type of request.

.NET Framework
Available since 4.5
Return to top