package ez_api
Module EzSession.TYPESSource
Foreign user without password, whose login is equal to foreign_origin ^ foreign_token and whose password is not req.
type 'user_id session = {session_token : string;session_login : string;session_user_id : 'user_id;session_last : float;session_foreign : foreign_info option;
}A session that helps to keep connection for the given user and stores useful information about his communication with the sever.
Main module that specifies the session parameters for given implementation of API server.
Authentification information returned by server after successful connection
Challenge that should be resolved to be able to connect
Connection response, that either describes user information if connection successes either describes challenge to resolve to be able to connect
Logining request, that contains the login and the challenge resolution obtained by hashing challenge and password provided by the user.
Logining request, that could be asked either by user with the password provided either by a foreign user without a password.
type ('user_id, 'user_info) login_response = | LoginOk of ('user_id, 'user_info) auth| LoginWait of 'user_id
Possible logining outcomes.
type login_error = [ | `Bad_user_or_password| `User_not_registered| `Unverified_user| `Challenge_not_found_or_expired of string| `Invalid_session_login of string
]Errors that could be raised while logining.
Errors that could be raised while disconnecting.
Errors that could be raised while connecting.