integration-0.1.0
Safe HaskellNone
LanguageGHC2021

Test.Spar

Synopsis

Documentation

checkSparGetUserAndFindByExtId :: (HasCallStack, MakesValue domain) => domain -> String -> String -> String -> (Value -> App ()) -> App () Source #

testSparCreateScimTokenAssocImplicitly :: HasCallStack => App () Source #

in V6, create idp then scim without idp id and idp id is unique

testSparCreateScimTokenWithName :: HasCallStack => App () Source #

in V6, name should be ignored

testSparEmulateSPInitiatedLogin :: HasCallStack => App () Source #

In this test, the IdP attempts an IdP-initiated login, and the client gets redirected back to IdP from SP with a valid authentication request. This is to make some hypothetical attacks harder while still supporting login dashboards in IdP UIs.

testSparSPInitiatedLoginWithUtf8 :: HasCallStack => App () Source #

UTF-8 chars (non-Latin-1) caused issues in XML parsing.

testSparCreateTwoScimTokensForOneIdp :: HasCallStack => App () Source #

in V6, create two idps then one scim should fail

testSsoLoginNoSamlEmailValidation :: HasCallStack => TaggedBool "validateSAMLEmails" -> App () Source #

This test may be covered by testScimUpdateEmailAddress and maybe can be removed.

testScimUpdateEmailAddress :: HasCallStack => TaggedBool "extIdIsEmail" -> TaggedBool "validateSAMLEmails" -> App () Source #

create user with non-email externalId. then use put to add an email address.

testScimUpdateEmailAddressAndExternalId :: HasCallStack => App () Source #

changing externalId and emails subsequently:

  1. create user with extid email;
  2. add email to emails field;
  3. change extId to uuid;
  4. change extId back to *other* email.

(may overlap with testSsoLoginNoSamlEmailValidation.)