Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype SignedAuthnResponse = SignedAuthnResponse {}
- mkAuthnResponse :: (HasCallStack, HasMonadSign m, HasLogger m, HasCreateUUID m, HasNow m) => SignPrivCreds -> IdPConfig extra -> SPMetadata -> AuthnRequest -> Bool -> m SignedAuthnResponse
- mkAuthnResponseWithSubj :: forall extra m. (HasCallStack, HasMonadSign m, HasCreateUUID m, HasNow m) => NameID -> SignPrivCreds -> IdPConfig extra -> SPMetadata -> AuthnRequest -> Bool -> m SignedAuthnResponse
- mkAuthnResponseWithRawSubj :: forall extra m. (HasCallStack, HasMonadSign m, HasCreateUUID m, HasNow m) => [Node] -> SignPrivCreds -> IdPConfig extra -> SPMetadata -> AuthnRequest -> Bool -> m SignedAuthnResponse
- mkAuthnResponseWithModif :: (HasCallStack, HasMonadSign m, HasCreateUUID m, HasNow m) => ([Node] -> [Node]) -> ([Node] -> [Node]) -> SignPrivCreds -> IdPConfig extra -> SPMetadata -> AuthnRequest -> Bool -> m SignedAuthnResponse
Documentation
newtype SignedAuthnResponse Source #
Instances
Show SignedAuthnResponse Source # | |
Defined in SAML2.WebSSO.Test.MockResponse showsPrec :: Int -> SignedAuthnResponse -> ShowS # show :: SignedAuthnResponse -> String # showList :: [SignedAuthnResponse] -> ShowS # | |
Eq SignedAuthnResponse Source # | |
Defined in SAML2.WebSSO.Test.MockResponse (==) :: SignedAuthnResponse -> SignedAuthnResponse -> Bool # (/=) :: SignedAuthnResponse -> SignedAuthnResponse -> Bool # |
mkAuthnResponse :: (HasCallStack, HasMonadSign m, HasLogger m, HasCreateUUID m, HasNow m) => SignPrivCreds -> IdPConfig extra -> SPMetadata -> AuthnRequest -> Bool -> m SignedAuthnResponse Source #
See tests on how this is used.
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.
mkAuthnResponseWithModif :: (HasCallStack, HasMonadSign m, HasCreateUUID m, HasNow m) => ([Node] -> [Node]) -> ([Node] -> [Node]) -> SignPrivCreds -> IdPConfig extra -> SPMetadata -> AuthnRequest -> Bool -> m SignedAuthnResponse Source #