What is the difference between authorization and authentication?

 Ans. 

Authentication verifies the identity of a user, while authorization determines what a user can access.

  • Authentication confirms the user's identity through credentials like username and password.

  • Authorization controls the user's access to resources or features based on their authenticated identity.

  • Example: Logging into a website (authentication) and then being able to view/edit specific pages based on user roles (authorization).

No comments:

Post a Comment

Best for you