package sihl

  1. Overview
  2. Docs
The modular functional web framework

Install

Dune Dependency

Authors

Maintainers

Sources

sihl-queue-0.1.9.tbz
sha256=77f0813d75a88edd14b3396e8b848d94c31c28803299b4b1bd4b78b1de4a2e80
sha512=a8907bc35ea14b7c3a7d638979a2a274860202b2de58b84b5621a4908db001ace493d8aa2e5383f4c8b1847efd256938592f63ef75a41521284b3640d3a7442a

doc/sihl.authn/Sihl_authn/Service/Make/index.html

Module Service.MakeSource

Parameters

Signature

Sourceval find_user_in_session_opt : Sihl_session.t -> Sihl_user.t option Lwt.t

Find currently logged in user in the current context.

Make sure to call authenticate_session before or apply the required session and authentication middlewares.

Sourceval find_user_in_session : Sihl_session.t -> Sihl_user.t Lwt.t

Find currently logged in user in the current context.

Make sure to call authenticate_session before or apply the required session and authentication middlewares.

Sourceval authenticate_session : Sihl_user.t -> Sihl_session.t -> unit Lwt.t

Assign a user to the current anonymous session.

Use authenticate_session ctx user to log in a user. If a user is already assigned to session, replace the user.

Sourceval unauthenticate_session : Sihl_session.t -> unit Lwt.t

Log user out.

Remove user from current session so that session is anonymous again.

OCaml

Innovation. Community. Security.