Validates user’s email and password and returns auth token.
Use this token either by adding it to “Authorization” request header (preferred method) or to “token” request param.
Note: “Authorization” header value format is the following: “Bearer token”, request param value is just the token.
Login failed output example: 401 Unauthorized { "error": "Invalid email or password." } Login succeeded output example: 200 OK { "token": "rH8xoroj1-yCQM4uuRGT", "user_id": 2, "receipts_email": "76578310-63ee-4183-bf1b-57f16b507905@bezala.com" }
Param name | Description |
---|---|
email
required |
User’s email Validations:
|
password
required |
User’s password Validations:
|
Validates Google access token and checks whether the claimed identity (email) corresponds to that of the token.
If valdation pass, returns token generated by Bezala (similar to /auth/token API method).
Use this token either by adding it to “Authorization” request header (preferred method) or to “token” request param.
Note: “Authorization” header value format is the following: “Bearer token”, request param value is just the token.
Param name | Description |
---|---|
email
required |
User’s email (claimed identity) Validations:
|
google_access_token
required |
Access token received via Google’s OAuth2 Validations:
|
Validates Microsoft access token and checks whether the claimed identity (email) corresponds to that of the token.
If valdation pass, returns token generated by Bezala (similar to /auth/token API method).
Use this token either by adding it to “Authorization” request header (preferred method) or to “token” request param.
Note: “Authorization” header value format is the following: “Bearer token”, request param value is just the token.
Param name | Description |
---|---|
email
required |
User’s email (claimed identity) Validations:
|
microsoft_access_token
required |
Access token received via Microsoft’s OAuth2 Validations:
|
Validates Okta access token and checks whether the claimed identity (email) corresponds to that of the token.
If valdation pass, returns token generated by Bezala (similar to /auth/token API method).
Use this token either by adding it to “Authorization” request header (preferred method) or to “token” request param.
Note: “Authorization” header value format is the following: “Bearer token”, request param value is just the token.
Param name | Description |
---|---|
email
required |
User’s email (claimed identity) Validations:
|
company_name
required |
Company name Validations:
|
okta_access_token
required |
Access token received via Okta’s OAuth2 Validations:
|
okta_url
required |
Company specific okta issuer url (okta_url) from Company settings Validations:
|