WSFederationSerializer.CreateRequest Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts a WS-Federation Sign-In Request message to a RequestSecurityToken object that the security token service (the SecurityTokenService class) can consume.
public:
virtual System::IdentityModel::Protocols::WSTrust::RequestSecurityToken ^ CreateRequest(System::IdentityModel::Services::FederationMessage ^ message, System::IdentityModel::Protocols::WSTrust::WSTrustSerializationContext ^ context);
public virtual System.IdentityModel.Protocols.WSTrust.RequestSecurityToken CreateRequest (System.IdentityModel.Services.FederationMessage message, System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext context);
abstract member CreateRequest : System.IdentityModel.Services.FederationMessage * System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext -> System.IdentityModel.Protocols.WSTrust.RequestSecurityToken
override this.CreateRequest : System.IdentityModel.Services.FederationMessage * System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext -> System.IdentityModel.Protocols.WSTrust.RequestSecurityToken
Public Overridable Function CreateRequest (message As FederationMessage, context As WSTrustSerializationContext) As RequestSecurityToken
Parameters
- message
- FederationMessage
The message to convert. This should be an instance of SignInRequestMessage.
- context
- WSTrustSerializationContext
The current serialization context.
Returns
A RequestSecurityToken object that represents the converted Sign-In Request message.
Exceptions
The message is not of type SignInRequestMessage.
-or-
The SignInRequestMessage object is missing required information to construct a valid RequestSecurityToken object.