Table of Contents

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

true if the current HTTP request is valid for the binding; otherwise false.

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

url string

The URL to receive the SAML message.

message string

The SAML message XML.

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

message string

The SAML message XML.

Returns

Task

A task that represents the operation.

Exceptions

SamlBindingException

Thrown if the SAML message cannot be sent.