Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type family AuthServerData a :: *
- newtype AuthHandler r usr = AuthHandler {
- unAuthHandler :: r -> ExceptT ServantErr IO usr
- mkAuthHandler :: (r -> ExceptT ServantErr IO usr) -> AuthHandler r usr
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
AuthHandler | |
|
Generic (AuthHandler r usr) Source | |
type Rep (AuthHandler r usr) Source |
mkAuthHandler :: (r -> ExceptT ServantErr IO usr) -> AuthHandler r usr Source
NOTE: THIS API IS EXPERIMENTAL AND SUBJECT TO CHANGE