WSFederationAuthenticationModule.GetSecurityToken Method (SignInResponseMessage)

.NET Framework 4.5

Reads a security token from the specified WS Federation sign-in response message.

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

public virtual SecurityToken GetSecurityToken(
	SignInResponseMessage message
)

Parameters

message
Type: System.IdentityModel.Services.SignInResponseMessage

The sign-in response message from which to read the token.

Return Value

Type: System.IdentityModel.Tokens.SecurityToken
The security token that was read from the message.

ExceptionCondition
ArgumentNullException

message is null.

The default implementation invokes the WSFederationAuthenticationModule.GetXmlTokenFromMessage(SignInResponseMessage, WSFederationSerializer) method to get the token and reads it by using the appropriate handler from the configured security token handlers.

.NET Framework

Supported in: 4.6, 4.5
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft