SAML2.WebSSO.Error
data Error err Source #
Constructors
Defined in SAML2.WebSSO.API.Example
Methods
throwError :: SimpleError -> SimpleSP a #
catchError :: SimpleSP a -> (SimpleError -> SimpleSP a) -> SimpleSP a #
Defined in SAML2.WebSSO.Test.Util.TestSP
throwError :: SimpleError -> TestSP a #
catchError :: TestSP a -> (SimpleError -> TestSP a) -> TestSP a #
getAllIdPs :: SimpleSP [IdPConfig (IdPConfigExtra SimpleSP)] Source #
getAllIdPs :: TestSP [IdPConfig (IdPConfigExtra TestSP)] Source #
If you read the Config initially in IO and then pass it into the monad via Reader, you safe disk load and redundant debug logs.
Config
IO
Reader
Associated Types
nt :: NTCTX SimpleSP -> SimpleSP x -> Handler x Source #
nt :: NTCTX TestSP -> TestSP x -> Handler x Source #
storeIdPConfig :: IdPConfig (IdPConfigExtra SimpleSP) -> SimpleSP () Source #
getIdPConfig :: IdPId -> SimpleSP (IdPConfig (IdPConfigExtra SimpleSP)) Source #
getIdPConfigByIssuer :: Issuer -> IdPConfigSPId SimpleSP -> SimpleSP (IdPConfig (IdPConfigExtra SimpleSP)) Source #
getIdPConfigByIssuerOptionalSPId :: Issuer -> Maybe (IdPConfigSPId SimpleSP) -> SimpleSP (IdPConfig (IdPConfigExtra SimpleSP)) Source #
storeIdPConfig :: IdPConfig (IdPConfigExtra TestSP) -> TestSP () Source #
getIdPConfig :: IdPId -> TestSP (IdPConfig (IdPConfigExtra TestSP)) Source #
getIdPConfigByIssuer :: Issuer -> IdPConfigSPId TestSP -> TestSP (IdPConfig (IdPConfigExtra TestSP)) Source #
getIdPConfigByIssuerOptionalSPId :: Issuer -> Maybe (IdPConfigSPId TestSP) -> TestSP (IdPConfig (IdPConfigExtra TestSP)) Source #
Defined in SAML2.WebSSO.Error
showsPrec :: Int -> Error err -> ShowS #
show :: Error err -> String #
showList :: [Error err] -> ShowS #
(==) :: Error err -> Error err -> Bool #
(/=) :: Error err -> Error err -> Bool #
type SimpleError = Error Void Source #
toServerError :: SimpleError -> ServerError Source #