Nov 24, 2019 in Angular
Q: Explain Authentication and Authorization.

1 Answer

0 votes
Nov 24, 2019

Authentication: The user login credentials are passed to an authenticate API (on the server). On the server side validation of the credentials happens and a JSON Web Token (JWT) is returned. JWT is a JSON object that has some information or attributes about the current user.  Once the JWT is given to the client, the client or the user will be identified with that JWT.

Authorization: After logging in successfully, the authenticated or genuine user does not have access to everything. The user is not authorized to access someone else’s data,  he/she is authorized to access some data.  

Related questions

0 votes
Dec 12, 2020 in Angular
0 votes
Jan 6, 2020 in Angular