Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data Create a
- data Env
- mkEnv :: SecretKey -> [SecretKey] -> IO Env
- runCreate :: Env -> Int -> Create a -> IO a
- accessToken :: Integer -> UUID -> Maybe Text -> Word64 -> Create (Token Access)
- accessToken1 :: Integer -> UUID -> Maybe Text -> Create (Token Access)
- userToken :: Integer -> UUID -> Maybe Text -> Word32 -> Create (Token User)
- sessionToken :: Integer -> UUID -> Maybe Text -> Word32 -> Create (Token User)
- botToken :: UUID -> UUID -> UUID -> Create (Token Bot)
- providerToken :: Integer -> UUID -> Create (Token Provider)
- legalHoldAccessToken :: Integer -> UUID -> Maybe Text -> Word64 -> Create (Token LegalHoldAccess)
- legalHoldAccessToken1 :: Integer -> UUID -> Maybe Text -> Create (Token LegalHoldAccess)
- legalHoldUserToken :: Integer -> UUID -> Maybe Text -> Word32 -> Create (Token LegalHoldUser)
- newToken :: ToByteString a => POSIXTime -> Type -> Maybe Tag -> a -> Create (Token a)
- renewToken :: ToByteString a => Integer -> Header -> a -> Create (Token a)
Types
Instances
MonadIO Create Source # | |
Defined in Data.ZAuth.Creation | |
Applicative Create Source # | |
Functor Create Source # | |
Monad Create Source # | |
MonadCatch Create Source # | |
Defined in Data.ZAuth.Creation | |
MonadThrow Create Source # | |
Defined in Data.ZAuth.Creation throwM :: (HasCallStack, Exception e) => e -> Create a # |
Initialisation
Specific
accessToken :: Integer -> UUID -> Maybe Text -> Word64 -> Create (Token Access) Source #
Create an access token taking a duration, userId, clientId and a (random) number that can be used as connection identifier
accessToken1 :: Integer -> UUID -> Maybe Text -> Create (Token Access) Source #
Create an access token taking a duration, userId and clientId.
Similar to accessToken
, except that the connection identifier is randomly
generated.
legalHoldAccessToken :: Integer -> UUID -> Maybe Text -> Word64 -> Create (Token LegalHoldAccess) Source #
Create a legal hold access token taking a duration, userId, clientId and a (random) number that can be used as connection identifier
legalHoldAccessToken1 :: Integer -> UUID -> Maybe Text -> Create (Token LegalHoldAccess) Source #
Create a legal hold access token taking a duration, userId. Similar to legalHoldAccessToken
, except that the connection identifier is randomly generated.
legalHoldUserToken :: Integer -> UUID -> Maybe Text -> Word32 -> Create (Token LegalHoldUser) Source #
Generic
renewToken :: ToByteString a => Integer -> Header -> a -> Create (Token a) Source #