Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- readAuthReq :: String -> IO ()
- render' :: Document -> LT
- rerender' :: LT -> LT
- showFile :: FilePath -> IO String
- dumpFile :: FilePath -> IO ()
- rerenderFile :: FilePath -> IO ()
- hedgehog :: IO Bool -> Spec
- haskellCodeFromXML :: forall a. (Typeable a, Show a, HasXMLRoot a) => Proxy a -> FilePath -> IO ()
- readSampleIO :: MonadIO m => FilePath -> m LT
- doesSampleExistIO :: MonadIO m => FilePath -> m Bool
- roundtrip :: forall a. (Eq a, Show a, HasXMLRoot a) => Int -> IO LT -> a -> Spec
- assertXmlRoundtrip :: HasCallStack => Either String Document -> Either String Document -> Expectation
- assertXmlRoundtripFailWithDiff :: HasCallStack => Document -> Document -> Expectation
- normalizeDocument :: HasCallStack => Document -> Document
- renderAndParse :: HasCallStack => Document -> Document
- isSignature :: Node -> Bool
- passes :: MonadIO m => m ()
- newtype SomeSAMLRequest = SomeSAMLRequest {}
- base64ours :: HasCallStack => SBS -> IO SBS
- base64theirs :: HasCallStack => SBS -> IO SBS
Documentation
readAuthReq :: String -> IO () Source #
pipe the output of `curl https://.../initiate-login/...` into this to take a look.
rerenderFile :: FilePath -> IO () Source #
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.
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
renderAndParse :: HasCallStack => Document -> Document Source #
isSignature :: Node -> Bool Source #
newtype SomeSAMLRequest Source #
Instances
Show SomeSAMLRequest Source # | |
Defined in SAML2.WebSSO.Test.Util.Misc showsPrec :: Int -> SomeSAMLRequest -> ShowS # show :: SomeSAMLRequest -> String # showList :: [SomeSAMLRequest] -> ShowS # | |
Eq SomeSAMLRequest Source # | |
Defined in SAML2.WebSSO.Test.Util.Misc (==) :: SomeSAMLRequest -> SomeSAMLRequest -> Bool # (/=) :: SomeSAMLRequest -> SomeSAMLRequest -> Bool # | |
HasFormRedirect SomeSAMLRequest Source # | |
Defined in SAML2.WebSSO.Test.Util.Misc | |
HasXML SomeSAMLRequest Source # | |
Defined in SAML2.WebSSO.Test.Util.Misc nameSpaces :: Proxy SomeSAMLRequest -> [(ST, ST)] Source # render :: SomeSAMLRequest -> [Node] Source # parse :: MonadError String m => [Node] -> m SomeSAMLRequest Source # | |
HasXMLRoot SomeSAMLRequest Source # | |
Defined in SAML2.WebSSO.Test.Util.Misc renderRoot :: SomeSAMLRequest -> Element Source # |
base64ours :: HasCallStack => SBS -> IO SBS Source #
base64theirs :: HasCallStack => SBS -> IO SBS Source #