When creating a user Account, adminInterface should be use. I think this will be used when an admin will be the only one to create a user, but what if I have a Create new account feature in my android app that will let new users create their account? As of now , I don’t want to utilize the persona or facebook authentication process until I understand this.
I am thinking of sending a post request on /$DB/_user/ using the adminInterface in the android app but is this a good way? or are there any suggestion regarding user creation/registration.
Probably nothing as complex as a full REST API, but yes, you’d create an HTTP handler. Most likely a client would POST to a specific URL to create an account, passing the desired username as a parameter.
Thank you for this.
I still don’t understand why is it not recommended to direct it to the adminInterface? is it for security reasons? or it will break on production?
The admin interface is like “god mode”. It can do anything with no authentication. Exposing it to the outside world is like giving out your root password.