Authentication vs Authorization 🔐

Published: 06 June 2024
on channel: mostdevwill
225
3

Authentication vs Authorization 🔐

Have you ever tried to create a REST API and secure it with any protocol? Then you’ve likely encountered the terms authentication and authorization. Let’s break down the difference between them.

Authentication answers the question, “WHO ARE YOU?”.

It consists of two stages: Identification and Authentication.

During Identification, you provide your login, and the system verifies that such a user exists.
During Authentication, the system checks that the provided password matches the one in the database, proving your identity.

If it matches, you move to the next stage. If not, you get an HTTP 401 Unauthorized error.

Authorization answers the question, “WHAT CAN YOU DO?” or “WHAT ARE YOUR PRIVILEGES?”.

For example, as an ordinary user, you probably can’t access the admin panel.

If the requested action is allowed, the service proceeds with the request. Otherwise, it returns an HTTP 403 Forbidden error.

Did you know the difference? Follow me for more insights ✅

#coding #programming #softwareengineer


Watch video Authentication vs Authorization 🔐 online without registration, duration hours minute second in high quality. This video was added by user mostdevwill 06 June 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 225 once and liked it 3 people.