I wish to implement a registration (and then authentication) for a new user who uses my android app. A django based framework is sitting on the back-end.
The workflow is the same as any other app:
From the backend, it is required for user to be authenticated(logged in) to use most of the functionality. Moreover, a decent level of security is also a requirement. From the django side, this task is fairly easy for HTML pages due to built in registration views and decorators. However, my question is how to implement this for android. I am in total fix regarding the workflow of the entire system.
From what I've searched on internet, people suggest two things as solution to this:
Now the problem is that I have not implemented any website for the application, and I am more comfortable doing it on mobile app. I have gone through numerous tutorials on auth, outh and REST packages of django, but all of them seem to be tailored for webapp.
My question is: What is the mot suitable flow considering app has to be for professional use ?
Going through New User Registration, the user can either create a user ID and password, or use an existing user ID to sign in to your system. New User Registration assigns the newly created user profile with generic security roles that are required to access your system.
User registration systems are screens, forms, or profile pages that request information from a user to create a web-based account or profile. A user registration system generally asks a user to create a username and password, and possibly answer other security questions as well.
You can build REST API for django signin/registration process.
One of the packages that can help you with that is https://github.com/sunscrapers/djoser
I ended up using REST framework for Django with Token Authentication.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With