Who should handle user authentication - Angular or Nodejs?
by TheIndependentAquarius from LinuxQuestions.org on (#5AE6E)
My thinking is that I should get user name and password from forms of Angular and then pass on this data to Nodejs which will retrieve the information from database and tell whether the credentials are correct or not.
Then I searched Google and found several links talking about user authentication through Angular:
1: https://www.linkedin.com/pulse/angul...validation-das
2: https://blog.angular-university.io/a...uthentication/
What will be the role of Angular and Nodejs in user authentication in this context?
Also there is OAuth 2 which can be used with both Angular and Node.
How should I decide with whom should I use it with?
.
.
https://developer.okta.com/blog/2019...entication-jwt
Quote:
How to decide between JWT and OAuth2 ?
Please help me to understand what I am doing here.


Then I searched Google and found several links talking about user authentication through Angular:
1: https://www.linkedin.com/pulse/angul...validation-das
2: https://blog.angular-university.io/a...uthentication/
What will be the role of Angular and Nodejs in user authentication in this context?
Also there is OAuth 2 which can be used with both Angular and Node.
How should I decide with whom should I use it with?
.
.
https://developer.okta.com/blog/2019...entication-jwt
Quote:
JSON Web Tokens (JWTs) provide one way to solve this issue. Your Angular app can talk to a backend that produces a token. The Angular app can then pass that token in an Authorization header to the backend to prove they're authenticated. The backend should verify the JWT and grant access based on its validity. |
Please help me to understand what I am doing here.