| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Test.OAuth
Synopsis
- testOAuthRevokeSession :: HasCallStack => App ()
- testRevokeApplicationAccountAccessV6 :: App ()
- testRevokeApplicationAccountAccess :: App ()
- testOAuthScopeTiersAreSeparate :: HasCallStack => App ()
- testOAuthRejectUnusefulTokenRequests :: HasCallStack => App ()
- testOAuthNewScopesOnDeprecatedAttribute :: HasCallStack => App ()
- testOAuthDeprecatedScopesInCassandra :: HasCallStack => TaggedBool "old scope syntax" -> App ()
- redirectUri :: String
- oauthClient :: (HasCallStack, MakesValue user) => user -> App Value
- accessTokenFor :: (HasCallStack, MakesValue user, MakesValue cid) => user -> cid -> [String] -> App String
- refreshTokenId :: (HasCallStack, MakesValue user) => user -> App UUID
- accessTokenClaims :: HasCallStack => String -> App Value
- generateAccessToken :: (MakesValue cid, MakesValue user) => user -> cid -> [String] -> String -> App Value
Documentation
testOAuthRevokeSession :: HasCallStack => App () Source #
testOAuthScopeTiersAreSeparate :: HasCallStack => App () Source #
The tiers of a scope are separate: a token that may write may not read,
and the other way round. This is about conversations:cnv/code, the one
location in the integration nginx.conf that uses oauth_scopes.
testOAuthDeprecatedScopesInCassandra :: HasCallStack => TaggedBool "old scope syntax" -> App () Source #
redirectUri :: String Source #
oauthClient :: (HasCallStack, MakesValue user) => user -> App Value Source #
accessTokenFor :: (HasCallStack, MakesValue user, MakesValue cid) => user -> cid -> [String] -> App String Source #
The access token, which is the part nginz gets to see.
refreshTokenId :: (HasCallStack, MakesValue user) => user -> App UUID Source #
The id of the one session the user has.
accessTokenClaims :: HasCallStack => String -> App Value Source #
The claims of an access token, read without verifying anything: we only want to see what brig put in.
generateAccessToken :: (MakesValue cid, MakesValue user) => user -> cid -> [String] -> String -> App Value Source #