Chaduvula Prasanth

Navigate back to the homepage

Authentication vs Authentication

Chaduvula Prasanth
January 21st, 2020 · 1 min read

Authentication vs Authorization

Authentication and authorization used for protecting applications. authentication is the process of verifying who a user is and authorization is the process of verifying what they have access to

Authentication

  • Authentication is about validating your credentials such as Username/User ID and password to verify your identity. The system then checks whether your credentials are valid or not. Whether in public or private networks, the system authenticates the user identity through login passwords. Usually authentication is done by a username and password, although there are other various ways to be authenticated like single factor authentication, two factor authentication and multi factor authentication
  • Authentication will be done before authorization
  • Generally, transmits info through an ID Token
  • example: you login to facebook for joining any of the groups by providing your phone number or email & password

Authorization

  • Determine whether the authenticated user has access to the particular resources and usually done after successful authentication
  • Generally, transmits info through an Access Token
  • example: As you are member in facebook group, you should have authorization to update the group info ( group admin have special authorization)

In short, access to a resource is protected by both authentication and authorization. If you can’t prove your identity, you won’t be allowed into a resource. And even if you can prove your identity, if you are not authorized for that resource, you will still be denied access.

More articles from Chaduvula Prasanth

How To Do Basic Routing In React Using React Router Dom

Learn the basics of routing, how to make router, path and how to link pages on the basis of the URL path.

December 19th, 2019 · 1 min read

Intro to React part2

Learn about State & lifecycle, Handling Events, Conditional Rendering, Lists & Keys, Forms, Lifting State UP, Compositon vs Inheritance, Thinking in React

December 17th, 2019 · 5 min read
© 2020 Chaduvula Prasanth
Link to $twitterLink to $githubLink to $linkedin