Backdrop
I'm working on a chat application in android using the Ejabberd server and smack library. I am using the firebase phone auth as an external authentication program. I have achieved success in successfully signing up/logging in normal users from my phone so far.
Problem
Now I can't access my admin panel web interface because it provides a simple mechanism of pre-defined username and password to sign in as admin, whereas Firebase phone authentication uses a One Time Password mechanism.
What I have tried so far
- Tried adding whitelisted contacts in the firebase auth table as admin. Didn't succeed.
- Added another host with an internal authentication mechanism. Added an admin account from that host. Was able to sign in. But could not access my original admin panel as they became two different virtual hosts.
Tried adding user using the following command
ejabberdctl register username domain password
didn't work. Gave "Error: cannot_register" response.
What I am looking for
A way to sign onto the admin panel of my server. In case it's not possible, is there any way to disable the username/password prompt while signing onto the admin panel while on the testing phase and re-enable prompt in the production phase?