Appmixer
5.2
Search
K

Custom Auth Popups

You can fully customize the authentication popups. There are new variables that you can set in the Backoffice:
  • AUTH_SERVICE_HTML
  • AUTH_POPUP_SUCCESS_HTML
  • AUTH_POPUP_FAIL_HTML
  • AUTH_PRE_HTML
The AUTH_SERVICE_HTML is the popup for API Key and Password authentication., The AUTH_POPUP_SUCCESS_HTML is displayed when the authentication is successful, the AUTH_POPUP_FAIL_HTML is displayed if the authentication fails. And the AUTH_PRE_HTML is used for connectors that have the pre field defined in the auth.js file (to gather additional information before the authentication).
To modify the popup, go to the System section in the Backoffice and add a new Key. Let's say we want to modify the popup for Api Key connectors.
Changing the authentication popup.
At the bottom of this page, you will find the default HTML files. You can use them and modify them, or you can create your own.
We are going to change the text to:
Then you paste the whole HTML into the Backoffice.
And this is the result:

Default HTML files

auth-service.html.zip
2KB
Binary
Default auth-service.html
login-success.html.zip
1KB
Binary
login-fail.html.zip
1KB
Binary
auth-pre.html.zip
3KB
Binary
Default auth-pre.html