package ez_api
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=e1d03d141ef977fbd4521256c91431f1
sha512=51b0cc4e6afb0cd5ab55c0c40964946b79e0c2cc903b5d08c594292eec723a25e25463175d704c02fe559e2af5d95973514c248a603ad28ec0230c35ad2d6492
doc/ez_api.session/EzSession/Make/Service/index.html
Module Make.ServiceSource
Definition for services and their security's configuration.
Documentation section for openapi.
Parameter with name token that stores an authentication token string
Type that represents security by authentication token and the way that request uses to store it.
Security that requires param_token parameter in query.
val header_cookie_security :
[> `Cookie of string EzAPI.Security.apikey * int64 option
| `Header of string EzAPI.Security.apikey ]Security that checks S.token_kind: If it is a CSRF token, then requires a CSRF header. Otherwise requires token to be found in the cookies.
Security that combines param_security and header_cookie_security in the corresponding order. Represents the security configuration for connect and logout requests.
Defines path to authentication services
val connect :
(auth TYPES.connect_response, TYPES.connect_error, token_security)
EzAPI.service0Connection service that requires authentication token. For more details, see corresponding EzSessionServer.Make.connect handler and default client request implementation
EzSessionClient.Make.connect.
val login :
(TYPES.login_message,
(S.user_id, S.user_info) TYPES.login_response,
TYPES.login_error,
EzAPI.Security.none)
EzAPI.post_service0Logining service. For more details, see corresponding EzSessionServer.Make.login handler and default client request implementation EzSessionClient.Make.login.
Disconnection service that requires authentication token. For more details, see corresponding EzSessionServer.Make.logout handler and default client request implementation EzSessionClient.Make.logout.