yam-0.5.4: Yam Web

Safe HaskellNone
LanguageHaskell2010

Yam.Middleware.Auth

Documentation

data CheckAuth (principal :: *) Source #

Instances
(HasSwagger api, ToParamSchema principal) => HasSwagger (CheckAuth principal :> api :: Type) Source # 
Instance details

Defined in Yam.Middleware.Auth

Methods

toSwagger :: Proxy (CheckAuth principal :> api) -> Swagger #

(HasContextEntry context Env, HasServer api context, HasAuthKey principal) => HasServer (CheckAuth principal :> api :: Type) context Source # 
Instance details

Defined in Yam.Middleware.Auth

Associated Types

type ServerT (CheckAuth principal :> api) m :: Type #

Methods

route :: Proxy (CheckAuth principal :> api) -> Context context -> Delayed env (Server (CheckAuth principal :> api)) -> Router env #

hoistServerWithContext :: Proxy (CheckAuth principal :> api) -> Proxy context -> (forall x. m x -> n x) -> ServerT (CheckAuth principal :> api) m -> ServerT (CheckAuth principal :> api) n #

type ServerT (CheckAuth principal :> api :: Type) m Source # 
Instance details

Defined in Yam.Middleware.Auth

type ServerT (CheckAuth principal :> api :: Type) m = principal -> ServerT api m

newtype AuthChecker principal Source #

Constructors

AuthChecker 

Fields

Instances
Default (AuthChecker principal) Source # 
Instance details

Defined in Yam.Middleware.Auth

Methods

def :: AuthChecker principal #

class HasAuthKey principal where Source #

Minimal complete definition

toLog

Methods

authKey :: Key (AuthChecker principal) Source #

toLog :: principal -> Text Source #