Backendless - Authentication
Allows you to manage the user authentication on Backendless
How to Intall Backendless for Authentication?
The process of Backendless Auth installation involves some simple steps which we have covered in depth. First, we will use an API key from a Backendless account to install the Backendless Auth plugin and then we will test how the authentication via Backendless works.
1. Go to Plugins
Go to the left toolbar and click on the Plugins options. It will redirect you to the Plugins page that contains all the plugins.
2. Click the Install Button
After landing on the plugins page, scroll down and find the Backendless plugin. Then, click on the Install button.
3. Plugin Settings
As you click on the install button, you will be redirected to the plugin settings of Backendless. Now get the app ID from your Backendless account.
4. Login to Your Backendless Account
To install Backendless, the app ID is mandatory. So, go to Backendless's official website and login to your Backendless account.
5. Copy the Application ID
After logging in to your Backendless account, you will land on your dashboard where you will find the required app ID and REST API key. To copy the application ID, click the icon as shown below.
6. Paste the Application ID
Now go back to the builder and paste the copied Application ID in the App ID field of the plugin installation form.
7. Copy the REST API Key
Scroll down and find the REST API Key. Then, copy it by clicking on the icon, as shown below.
8. Paste the REST API Key
Now go back to the builder and paste the copied Rest API Key in the REST API ID field of the plugin installation form. Then, click on the Install Plugin button.
The installed plugin will appear on the plugins page after the successful installation.
Pages, Collections & Events Added with Plugin Installation
Signup & Login Pages
Once you have successfully installed the plugin, refresh the page and go to the pages panel in the left toolbar. You will find two new pages: Backendless Signup/Register & Backendless Login
Role & User Collections
Along with pages, two collections will also get added in your collection panel. The role collection allows you to add different user and admin roles. The user collection will contain all the data of users who have signed up.
Signup & Login Events
The workflow events to signup and login get added as well.
Here are two scenarios. First, you can signup via web app and the signup credentials will appear in your Backendless account. Second, create user credentials directly on the Backendless account and then use them to login the web app.
Sign Up via Web App
Now open the sign up page in preview or publish mode and create a user and use those credentials to login.
2. Login to Web App
Afer signing up, use those credentials to login to your web app as shown below.
3. Open Data Page on Backendless
Go to your Backendless account and cick on Data in the sidebar as shown below.
4. Added User on Backendless Account
The credentials you had created via sign up will appear on the page as shown below.
Sign Up via Backendless
1. Click the New Button
Go to your Backendless account and open the Data page. Then, click the New button on Users page under Authentication on the Backendless Account.
2. Add Email Address
As you click on the "New" button, a row to add a new user will open. Add the email address and press as shown below.
3. Add Password
As you press Enter after adding the email address, you will be redirected to the password cell. So add the password and press Enter.
The newly added user will appear on the data page as shown below:
4. Login Using New Credentials
Go to your web app's Firebase login page and add the newly created credentials to log into your web app.