Skip to content

Commit

Permalink
add note about auth
Browse files Browse the repository at this point in the history
  • Loading branch information
zakirullin committed Jun 3, 2024
1 parent dd0fda6 commit f9d09e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ The same rule applies to all sorts of numeric statuses (in database or wherever)

> People spend time arguing between `401` and `403`, making choices based on their level of understanding. But in the end it just doesn't make any sense. We can separate errors into either user-related or server-related, but apart from that, things are kind of blurry. As for following this mystical "RESTful API" and using all sorts of HTTP verbs and statuses, the standard simply doesn't exist. The only valid document on the matter is a paper published by Roy Fielding, dated back in 2000, and it says nothing about verbs and statuses. People get along with just a few basic HTTP statuses and POSTs only, and they are doing just fine.
P.S. Most developers have to spend some mental effort when thinking about the differences between `authentication` and `authorization`. To reduce cognitive load, we could use simpler terms like [login and permissions](https://ntietz.com/blog/lets-say-instead-of-auth/).

## Abusing DRY principle

Expand Down

0 comments on commit f9d09e2

Please sign in to comment.