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

SAML2.WebSSO.Test.MockResponse

Synopsis

Documentation

mkAuthnResponseWithSubj :: forall extra m. (HasCallStack, HasMonadSign m, HasCreateUUID m, HasNow m) => NameID -> SignPrivCreds -> IdPConfig extra -> SPMetadata -> AuthnRequest -> Bool -> m SignedAuthnResponse Source #

Replace the NameID child of the Subject with a given one.

(There is some code sharing between this and mkAuthnResponseWithRawSubj, but reducing it would make both functions more complex.)

mkAuthnResponseWithRawSubj :: forall extra m. (HasCallStack, HasMonadSign m, HasCreateUUID m, HasNow m) => [Node] -> SignPrivCreds -> IdPConfig extra -> SPMetadata -> AuthnRequest -> Bool -> m SignedAuthnResponse Source #

Delete all children of Subject and insert some new ones.