Class HttpPostForm
- Namespace
- ComponentSpace.Saml2.Bindings.Post
- Assembly
- ComponentSpace.Saml2.dll
Creates the HTML form that's used with the HTTP Post binding to send a SAML message.
public class HttpPostForm : IHttpPostForm
- Inheritance
-
HttpPostForm
- Implements
- Inherited Members
Constructors
HttpPostForm(IOptionsMonitor<HttpPostFormOptions>)
Initializes a new instance of the HttpPostForm class.
public HttpPostForm(IOptionsMonitor<HttpPostFormOptions> httpPostFormOptions)
Parameters
httpPostFormOptionsIOptionsMonitor<HttpPostFormOptions>The HTTP Post form options.
Methods
Create(string, string, string, string, string)
Creates the HTTP Post form content used to send the SAML message.
public virtual HttpPostFormContent Create(string url, string messageFormVariableName, string messageFormVariableValue, string relayStateFormVariableName, string relayStateFormVariableValue)
Parameters
urlstringThe URL to receive the SAML message.
messageFormVariableNamestringThe SAML message form variable name.
messageFormVariableValuestringThe SAML message form variable value.
relayStateFormVariableNamestringThe relay state form variable name or
nullif none.relayStateFormVariableValuestringThe relay state form variable value or
nullif none.
Returns
- HttpPostFormContent
The HTTP Post form content.