package ez_api
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=08f55e6d79d09fd4b14e48981ea89963
sha512=3b00866b03aab19c6f6eac79bd94dfd24bf66829303c03491523476bc9302962f7ff4a820e0b2215ce6362c09ec3da8f65d57908b8f85598154e0f677323843d
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.