Class URIBinding
Supports the URI binding.
Inherited Members
Namespace: ComponentSpace.SAML2.Bindings
Assembly: ComponentSpace.Saml2.dll
Syntax
public static class URIBinding
Remarks
Refer to the Bindings for the OASIS Security Assertion Markup Language (SAML) V2.0 specification for further details.
Methods
ReceiveID(HttpRequestBase)
Receives the identifier.
Declaration
public static string ReceiveID(HttpRequestBase httpRequest)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpRequestBase | httpRequest | The HTTP request containing the identifier. |
Returns
| Type | Description |
|---|---|
| string | The identifier. |
Exceptions
| Type | Condition |
|---|---|
| SAMLBindingException | Thrown when the receive fails. |
SendIDReceiveResponse(string, string)
Sends the identifier and receives the SAML response.
Declaration
public static XmlElement SendIDReceiveResponse(string destinationURL, string id)
Parameters
| Type | Name | Description |
|---|---|---|
| string | destinationURL | The destination URL. |
| string | id | The identifier. |
Returns
| Type | Description |
|---|---|
| XmlElement | The SAML response. |
Exceptions
| Type | Condition |
|---|---|
| SAMLBindingException | Thrown when the send fails. |
SendResponse(HttpResponseBase, XmlElement)
Sends the SAML response.
Declaration
public static void SendResponse(HttpResponseBase httpResponse, XmlElement samlMessage)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpResponseBase | httpResponse | The HTTP response that will return the SAML response. |
| XmlElement | samlMessage | The SAML response. |
Exceptions
| Type | Condition |
|---|---|
| SAMLBindingException | Thrown when the send fails. |