HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduleservant-auth-0.4.2.0Haskell2010

Servant.Auth

  • 5 types

Authentication

1 declaration
datadata Auth (auths :: [Type]) val
#

Auth [auth1, auth2] val :> api represents an API protected *either* by auth1 or auth2

Instances2HasLink, MkLink
  • HasLink sub => HasLink (Auth tag value :> sub)Defined in servant-auth-0.4.2.0 · Servant.Auth

    A HasLink instance for Auth

  • type MkLink (Auth tag value :> sub) a = MkLink sub aDefined in servant-auth-0.4.2.0 · Servant.Auth

Combinators

datadata JWT
#

A JSON Web Token (JWT) in the Authorization header:

Authorization: Bearer <token>

Note that while the token is signed, it is not encrypted. Therefore do not keep in it any information you would not like the client to know.

JWTs are described in IETF's RFC 7519

datadata Cookie
#

A cookie. The content cookie itself is a JWT. Another cookie is also used, the contents of which are expected to be send back to the server in a header, for XSRF protection.