Passwordless Login API¶
A user can be logged in without a password using the API documented below.
This functionality can be used only in CloudCode (Java, JS or Codeless), the reason for this restriction is that a malicious use of this API can easily compromise application's security. As a result, this API must be used from a controlled environment. For information about the API select either Android/Java or JS documentation.
CloudCode Codeless Reference¶
||Unique identifier of the user account which is used for login operation.|
||Optional parameter. When this option is checked, the operation returns the
This Codeless block is only available in CloudCode due to the security reasons. If this operation is exposed to users, then your application can be compromised.
This operation allows developers to log in to a specific user account without credentials such as identity or password. The operation only requires a unique identifier of a user (object id).
Consider the following record in the
Users data table:
The example below logs in as
"email@example.com" associated with the objectId:
BackendlessUser object will look as shown below after the Codeless logic runs: