package sihl-web

  1. Overview
  2. Docs
Sihl HTTP service and middlewares

Install

Dune Dependency

Authors

Maintainers

Sources

sihl-0.3.0-rc1.tbz
sha256=ebfeaa62fe4498e6de03d7e6577e10c143d6148a10a6a47b98e032f3dcc70ddc
sha512=e1d80894a4a5a2d99036f6dc0fbd60686a105509fb5b743d5dfa70f4ce76a2ffeac6419bcc1b0da56a631f592497262551a44ec4a004c81809bc08d156008061

doc/sihl-web/Sihl_web/Authentication/index.html

Module Sihl_web.AuthenticationSource

Sourceval log_src : Logs.src
Sourcemodule Logs : Logs.LOG
Sourcetype credentials = {
  1. email : string;
  2. password : string;
}
Sourceval credentials_of_sexp : Sexplib0.Sexp.t -> credentials
Sourceval sexp_of_credentials : credentials -> Sexplib0.Sexp.t
Sourceval key_login : credentials Opium.Context.key
Sourceval login : email:string -> password:string -> Opium.Response.t -> Opium.Response.t
Sourceval default_site_error_handler : 'a -> Opium.Response.t Lwt.t
Sourceval session_middleware : ?key:string -> ?error_handler:(Sihl_contract__User.error -> Opium.Response.t Lwt.t) -> unit -> Rock.Middleware.t
Sourceval default_json_error_handler : 'a -> Opium.Response.t Lwt.t
Sourceval token_middleware : ?key:string -> ?error_handler:(Sihl_contract__User.error -> Opium.Response.t Lwt.t) -> unit -> Rock.Middleware.t
OCaml

Innovation. Community. Security.