wai-saml2-0.5: SAML2 assertion validation as WAI middleware
Safe HaskellSafe-Inferred
LanguageHaskell2010

Network.Wai.SAML2.Request

Description

Defines types and functions for SP-initiated SSO. Use issueAuthnRequest to initialise an AuthnRequest value which stores the parameters for the authentication request you wish to issue to the IdP. You can update this value as required.

Use renderBase64 to render the request for use with a HTTP POST binding [1], or renderUrlEncodingDeflate for HTTP redirect binding[2] respectively. You may wish to read the SAML2 overview for this process.

Since: 0.4

Synopsis

Documentation

data AuthnRequest Source #

Parameters for SP-initiated SSO

Constructors

AuthnRequest 

Fields

Instances

Instances details
Show AuthnRequest Source # 
Instance details

Defined in Network.Wai.SAML2.Request

Eq AuthnRequest Source # 
Instance details

Defined in Network.Wai.SAML2.Request

issueAuthnRequest Source #

Arguments

:: Text

SP Entity ID

-> IO AuthnRequest 

Creates a default AuthnRequest with the current timestamp and a randomly-generated ID.

renderBase64 :: AuthnRequest -> ByteString Source #

Renders and base64-encodes an AuthnRequest for SP initiated SSO suitable for use with HTTP POST binding

If used in an HTTP POST binding, the value should be sent as an invisible form control named SAMLRequest

renderUrlEncodingDeflate :: AuthnRequest -> ByteString Source #

Renders an AuthnRequest for SP initiated SSO according to urn:oasis:names:tc:SAML:2.0:bindings:URL-Encoding:DEFLATE and suitable for use with HTTP Redirect binding

The value should be sent as a query parameter named SAMLRequest