saml2-web-sso-0.20: Library and example web app for the SAML Web-based SSO profile.
Safe HaskellSafe-Inferred
LanguageHaskell2010

SAML2.WebSSO.Test.Util.Misc

Synopsis

Documentation

readAuthReq :: String -> IO () Source #

pipe the output of `curl https://.../initiate-login/...` into this to take a look.

haskellCodeFromXML :: forall a. (Typeable a, Show a, HasXMLRoot a) => Proxy a -> FilePath -> IO () Source #

Helper function for generating new tests cases. This is probably dead code.

roundtrip :: forall a. (Eq a, Show a, HasXMLRoot a) => Int -> IO LT -> a -> Spec Source #

assertXmlRoundtrip :: HasCallStack => Either String Document -> Either String Document -> Expectation Source #

If we get two XML structures that differ, compute the diff.

normalizeDocument :: HasCallStack => Document -> Document Source #

Make two Document values that are supposed to be equal easier to compare:

  • render and parse back to normalize the locations where namespaces are declared
  • sort all children and remove digital signatures
  • remove all namespace prefices

passes :: MonadIO m => m () Source #

Orphan instances

IsString IdPId Source # 
Instance details

Methods

fromString :: String -> IdPId #