Module wrappers

Source
Expand description

Provides function wrappers around the auth module which are ready to be used as endpoints in actix web.

Structs§

JsonSession
Used as the structure for when Session information needs to be taken as a JSON input.

Functions§

add_user_wrapper
Wrapper for add_user. Returns 202 if validated successfully and 401 if the user provided is not able to be created or there is some error.
delete_user_wrapper
Wrapper for delete_user
generate_session_wrapper
Wrapper for generate_session. Returns 202 if validated successfully and the session was generated, it will return a json representation of the generateed session. In the form
validate_session_wrapper
Wrapper for validate_session_wrapper. Returns 202 if validated successfully and the session is correct in the DB, it will return a json representation of the validated session. In the form
validate_user_wrapper
Wrapper for validate_user. Returns 202 if validated successfully and 401 if the user provided is not valid.