Skip to content
BENIBIX Learn

Authorization

Development🔑 AuthAuthorization

Also known as AuthZ, Permissions, Access Control

What a user may see and do once logged in. It comes after the login.

Think of it like

Think of it like a hotel key card. It opens your room, but not anyone else's.

Example

Emma and Jack both log in to the same shop admin. Emma can issue refunds; Jack can only view orders.

Why it matters

Broken access control lets one user see or change another user's data. It tops the OWASP list of web risks.

Definition

Authorization decides what a logged-in user is allowed to do. It comes after logging in, which only checks who you are. An app might let every user read posts but only the author edit one. When the check fails, the server answers 403 Forbidden. It must be checked on the server for every request. Hiding a button is not enough.

Common mistake

Hiding a button and calling it done. Anyone can still send the request by hand, so the server must check.

Key takeaways

  1. 1
    What may you do?. After who you are.
  2. 2
    403 when denied. Forbidden.
  3. 3
    Checked on the server. Every request.

Compare