Module esaml_binding

SAML HTTP binding handlers.

Description

SAML HTTP binding handlers

Data Types

html_doc()

html_doc() = binary()

uri()

uri() = binary() | string()

xml()

xml() = #xmlElement{} | #xmlDocument{}

Function Index

decode_response/2Unpack and parse a SAMLResponse with given encoding.
encode_http_post/3Encode a SAMLRequest (or SAMLResponse) as an HTTP-POST binding.
encode_http_post/4
encode_http_redirect/4Encode a SAMLRequest (or SAMLResponse) as an HTTP-Redirect binding.

Function Details

decode_response/2

decode_response(SAMLEncoding::binary(), SAMLResponse::binary()) -> #xmlDocument{}

Unpack and parse a SAMLResponse with given encoding

encode_http_post/3

encode_http_post(IDPTarget::uri(), SignedXml::xml(), RelayState::binary()) -> html_doc()

Encode a SAMLRequest (or SAMLResponse) as an HTTP-POST binding

Returns the HTML document to be sent to the browser, containing a form and javascript to automatically submit it.

encode_http_post/4

encode_http_post(IDPTarget::uri(), SignedXml::xml(), RelayState::binary(), Nonce::binary()) -> html_doc()

encode_http_redirect/4

encode_http_redirect(IDPTarget::uri(), SignedXml::xml(), Username::undefined | string(), RelayState::binary()) -> uri()

Encode a SAMLRequest (or SAMLResponse) as an HTTP-Redirect binding

Returns the URI that should be the target of redirection.


Generated by EDoc