Interface ISoapBinding
- Namespace
- ComponentSpace.Saml2.Bindings.Soap
- Assembly
- ComponentSpace.Saml2.dll
Supports the HTTP SOAP binding.
public interface ISoapBinding
Remarks
Refer to the Bindings for the OASIS Security Assertion Markup Language (SAML) V2.0 specification for further details.
Methods
IsValid()
Indicates whether the current HTTP request is valid for the binding.
bool IsValid()
Returns
- bool
trueif the current HTTP request is valid for the binding; otherwisefalse.
ReceiveRequestAsync()
Receives a SAML request.
Task<ReceiveResult> ReceiveRequestAsync()
Returns
- Task<ReceiveResult>
A task that represents the operation and returns the HTTP SOAP result.
Exceptions
- SamlBindingException
Thrown if the SAML request cannot be received.
SendRequestReceiveResponseAsync(string, string)
Sends a SAML request and receives a SAML response.
Task<ReceiveResult> SendRequestReceiveResponseAsync(string url, string message)
Parameters
Returns
- Task<ReceiveResult>
A task that represents the operation and returns the HTTP SOAP result.
Exceptions
- SamlBindingException
Thrown if the SAML request cannot be sent or the SAML response cannot be received.
SendResponseAsync(string)
Sends a SAML response.
Task SendResponseAsync(string message)
Parameters
messagestringThe SAML message XML.
Returns
- Task
A task that represents the operation.
Exceptions
- SamlBindingException
Thrown if the SAML message cannot be sent.