Kileed Client v0.0.3 KileedClient View Source
Kileed client
This module helps interacting with a kileed authentication service.
Link to this section Summary
Functions
Tries to validate and commit user's answer to challenge.
Starts authorizing a kileed session with phone number.
Link to this section Types
Link to this type
errors()
View Sourceerrors() :: :unknown | :service_blocked_ip | :service_auth | :property_blocked | :client_blocked_ip | :delivery_error
Link to this type
kileed_session()
View Sourcekileed_session() :: %{
id: integer(),
login_on: String.t(),
valid_from: DateTime.t(),
valid_until: DateTime.t(),
user_id: integer(),
validate_by_request: integer(),
service_id: integer()
}
Link to this section Functions
Tries to validate and commit user's answer to challenge.
Parameters
- phone_number: The phone number to commit challenge. (Same as the one which challenge started with
- challenge_answer: User's answer to chanllenge as string.
- client_uid: Client's unique identifire. (Usually the IP Address)
Starts authorizing a kileed session with phone number.
Parameters
- phone_number: The client phone number to authorize
- client_uid: A unique identifire of client. (Usually the client IP Address)