minion-jwt-0.1.0.0: Minion JWT support
Safe HaskellSafe-Inferred
LanguageHaskell2010

Web.Minion.Auth.Jwt

Documentation

defaultJwtAuthSettings Source #

Arguments

:: MonadIO m 
=> m JWK 
-> (StringOrURI -> Bool)

Audience predicate

-> (MakeError -> Either JWTError (JwtPayload payload) -> m (AuthResult a)) 
-> JwtAuthSettings m payload a 

data Bearer payload Source #

Instances

Instances details
(MonadIO m, FromJSON payload) => IsAuth (Bearer payload) m a Source # 
Instance details

Defined in Web.Minion.Auth.Jwt

Associated Types

type Settings (Bearer payload) m a #

Methods

toAuth :: Settings (Bearer payload) m a -> ErrorBuilder -> Request -> m (AuthResult a) #

type Settings (Bearer payload) m a Source # 
Instance details

Defined in Web.Minion.Auth.Jwt

type Settings (Bearer payload) m a = JwtAuthSettings m payload a