package sihl
The modular functional web framework
Install
Dune Dependency
Authors
Maintainers
Sources
sihl-queue-0.1.9.tbz
sha256=77f0813d75a88edd14b3396e8b848d94c31c28803299b4b1bd4b78b1de4a2e80
sha512=a8907bc35ea14b7c3a7d638979a2a274860202b2de58b84b5621a4908db001ace493d8aa2e5383f4c8b1847efd256938592f63ef75a41521284b3640d3a7442a
doc/sihl.middleware/Sihl_middleware/Authn/Make/argument-1-AuthnService/index.html
Parameter Make.AuthnService
include Sihl_core.Container.Service.Sig
val lifecycle : Sihl_core.Container.Lifecycle.t
val 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.
val 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.
val 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.
val unauthenticate_session : Sihl_session.t -> unit Lwt.t
Log user out.
Remove user from current session so that session is anonymous again.
val register : unit -> Sihl_core.Container.Service.t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>