0 votes
in Angular by
Explain Authentication and Authorization.

1 Answer

0 votes
by

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
asked Feb 24 in Angular by SakshiSharma
+1 vote
asked Jan 29, 2023 in POSTMAN by john ganales
...