servant-server-0.19.2: A family of combinators for defining webservices APIs and serving them
Safe Haskell None
Language Haskell2010

Servant.Server.Experimental.Auth

Synopsis

General Auth

type family AuthServerData a :: * Source #

Specify the type of data returned after we've authenticated a request. quite often this is some User datatype.

NOTE: THIS API IS EXPERIMENTAL AND SUBJECT TO CHANGE

newtype AuthHandler r usr Source #

Handlers for AuthProtected resources

NOTE: THIS API IS EXPERIMENTAL AND SUBJECT TO CHANGE

Constructors

AuthHandler

Fields

Instances

Instances details
Generic ( AuthHandler r usr) Source #
Instance details

Defined in Servant.Server.Experimental.Auth

Associated Types

type Rep ( AuthHandler r usr) :: Type -> Type Source #

type Rep ( AuthHandler r usr) Source #
Instance details

Defined in Servant.Server.Experimental.Auth

type Rep ( AuthHandler r usr) = D1 (' MetaData "AuthHandler" "Servant.Server.Experimental.Auth" "servant-server-0.19.2-G0Z4CBXVk6K3TywlQVHRKg" ' True ) ( C1 (' MetaCons "AuthHandler" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "unAuthHandler") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 (r -> Handler usr))))

mkAuthHandler :: (r -> Handler usr) -> AuthHandler r usr Source #

NOTE: THIS API IS EXPERIMENTAL AND SUBJECT TO CHANGE

Orphan instances