zauth-0.10.3: Creation and validation of signed tokens.
Safe HaskellSafe-Inferred
LanguageGHC2021

Data.ZAuth.Creation

Synopsis

Types

data Create a Source #

Instances

Instances details
MonadIO Create Source # 
Instance details

Defined in Data.ZAuth.Creation

Methods

liftIO :: IO a -> Create a #

Applicative Create Source # 
Instance details

Defined in Data.ZAuth.Creation

Methods

pure :: a -> Create a #

(<*>) :: Create (a -> b) -> Create a -> Create b #

liftA2 :: (a -> b -> c) -> Create a -> Create b -> Create c #

(*>) :: Create a -> Create b -> Create b #

(<*) :: Create a -> Create b -> Create a #

Functor Create Source # 
Instance details

Defined in Data.ZAuth.Creation

Methods

fmap :: (a -> b) -> Create a -> Create b #

(<$) :: a -> Create b -> Create a #

Monad Create Source # 
Instance details

Defined in Data.ZAuth.Creation

Methods

(>>=) :: Create a -> (a -> Create b) -> Create b #

(>>) :: Create a -> Create b -> Create b #

return :: a -> Create a #

MonadCatch Create Source # 
Instance details

Defined in Data.ZAuth.Creation

Methods

catch :: (HasCallStack, Exception e) => Create a -> (e -> Create a) -> Create a #

MonadThrow Create Source # 
Instance details

Defined in Data.ZAuth.Creation

Methods

throwM :: (HasCallStack, Exception e) => e -> Create a #

data Env Source #

Initialisation

runCreate :: Env -> Int -> Create a -> IO a Source #

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.

Generic