WSFederationSerializer.CreateResponse Method

Definition

Converts a WS-Federation Sign-In Response message object to a RequestSecurityTokenResponse object.

public virtual System.IdentityModel.Protocols.WSTrust.RequestSecurityTokenResponse CreateResponse (System.IdentityModel.Services.FederationMessage message, System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext context);

Parameters

message
FederationMessage

The message to convert. This should be an instance of SignInResponseMessage.

context
WSTrustSerializationContext

The current serialization context.

Returns

A RequestSecurityTokenResponse object that represents the converted Sign-In Response message.

Exceptions

message is null.

-or-

context is null.

The message is not of type SignInResponseMessage.

-or-

The SignInResponseMessage object is missing required information to construct a valid RequestSecurityTokenResponse object.

Applies to

Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1