I'm working on a webapp where users can login to see their online wine cellar.
I've got the Django REST models setup, as well as the front-end design in Angular but I'm having trouble putting the pieces together and my main issue is for user authentication.
I've read many posts on here and various tutorials but I can't seem to find a step by step method to implement authentication:
- What kind of auth should be used (Token, Session, Other?)
- How is authentication managed on the server side (is it a view? a method in the UserModel or UserManager?)
- I have a custom User model (using email as username). Can I use the generic Django login method or do I need to create my own?
- How is the authentication process managed between the server and client side?
From what I understand Angular makes a POST request on a url where DRF verifies that username and password match and returns a token or other auth proof.
I feel like I'm close but I need a more general view of how this works to put the pieces together.
Thanks in advance