Class SamlPostBinding
- Namespace
- Fdyay.IdentityServer.Saml.Bindings
- Assembly
- Fdyay.IdentityServer.Saml.dll
The HTTP-POST binding: base64-encoded messages carried in an auto-submitting HTML form.
public static class SamlPostBinding
- Inheritance
-
SamlPostBinding
- Inherited Members
Methods
BuildRequestForm(string, string, string?)
Builds a self-submitting HTML form that POSTs a SAMLRequest to the destination.
public static string BuildRequestForm(string destination, string requestXml, string? relayState = null)
Parameters
Returns
Remarks
The direction single logout needs and sign-on does not: this server sends requests of its own, to the
other service providers a session reached, and a request delivered in a form field named
SAMLResponse is a message the receiver reads as an answer to something it never asked.
BuildResponseForm(string, string, string?)
Builds a self-submitting HTML form that POSTs a SAMLResponse to the destination.
public static string BuildResponseForm(string destination, string responseXml, string? relayState = null)
Parameters
Returns
Decode(string)
Decodes a POST-binding message value.
public static string Decode(string encoded)
Parameters
encodedstring
Returns
Decode(string, int)
The same, refusing a message whose decoded size could exceed maxSize; zero means no limit.
public static string Decode(string encoded, int maxSize)
Parameters
Returns
Remarks
Refused before decoding, as Duende's is: base64 of maxSize bytes is four thirds as long.
Encode(string)
Encodes a SAML message for the POST binding (base64, no compression).
public static string Encode(string xml)
Parameters
xmlstring