Extract the issued token from the WS-Federation Passive Protocol SignIn Response message received from an STS.
Namespace: Microsoft.IdentityModel.Web
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim instance As WSFederationAuthenticationModule
Dim message As SignInResponseMessage
Dim federationSerializer As WSFederationSerializer
Dim returnValue As String

returnValue = instance.GetXmlTokenFromMessage(message, federationSerializer)

Syntax

Visual Basic
Public Overridable Function GetXmlTokenFromMessage ( _
		message As SignInResponseMessage, _
		federationSerializer As WSFederationSerializer _
) As String
C#
public virtual string GetXmlTokenFromMessage (
		SignInResponseMessage message,
		WSFederationSerializer federationSerializer
)
C++
public:
virtual String^ GetXmlTokenFromMessage (
		SignInResponseMessage^ message, 
		WSFederationSerializer^ federationSerializer
)
J#
public String GetXmlTokenFromMessage (
		SignInResponseMessage message, 
		WSFederationSerializer federationSerializer
)
JScript
public function GetXmlTokenFromMessage (
		message : SignInResponseMessage, 
		federationSerializer : WSFederationSerializer
) : String

Parameters

message

The HTTP request at the FederatedAuthenticationModule. This request contains the token issued by the STS in a WS-Federation Passive Protocol SignIn Response message from the STS.

federationSerializer

The WS-Federation Serializer used to de-serialize the WS-Federation Passive Protocol SignIn Response message.

Return Value

The issued token as an XML String.

Exceptions

Exception type Condition
ArgumentNullException

One of the parameters is null.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

See Also