WSFederationAuthenticationModule.GetSecurityToken Method (HttpRequestBase)

.NET Framework (current version)

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

Reads a security token from the specified HTTP request.

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

Public Overridable Function GetSecurityToken (
	request As HttpRequestBase
) As SecurityToken


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