BolEnglishLearn · Play · Win
Login

🚦 Security · Security Fundamentals

🚦

Authorization

Security ControlCoreModule 6

Control what an authenticated identity is allowed to do.

Permissions should follow business roles and data ownership.

💡 In practice

A reviewer can read an application but only an approver can approve it.

🖼️ CONCEPT PICTURE
A picture to help remember Authorization
A reviewer can read an application but only an approver can approve it.

💡 Like a hotel key card: it proves nothing about who you are, it just decides which doors open for your room.

💡 Learn🛠️ Apply🎯 Check

💡 Why it matters

Knowing who someone is does not mean they should see or change everything. Broken access control is one of the most common and damaging flaws, often letting one user reach another user's data. Good authorization keeps actions tied to real business roles and ownership.

🛠️ How to achieve it

1
Check on the server
Enforce every permission on the server. Hiding a button in the UI is not security.
2
Map roles to real duties
Base permissions on actual business roles and who owns the data, not on convenience.
3
Check ownership on each record
Confirm this user may touch this specific record, not just records of that type.
4
Deny by default
Start with no access and grant explicitly, so a missed rule fails closed, not open.

⚠️ Signs of trouble

  • •Changing an ID in the URL shows another user's data.
  • •Permission checks live only in the frontend.
  • •Everyone is effectively an admin because roles were never defined.
  • •New endpoints ship with no access checks at all.
⚠️ Common mistake: Relying on a hidden UI control for protection. Always enforce the permission on the server for every request.

🎯 Quick check

Score: 0/3

Three questions to test the idea.

  1. 1. Authorization decides what?

    Answer: What an identity is allowed to do

    Authentication proves who you are; authorization decides what that identity may do.

  2. 2. Where must access rules be enforced?

    Answer: On the server for every request

    Hiding a button helps nobody if the server still honors the request; checks must run server-side.

  3. 3. A user changes an ID in the URL and sees someone else's record. This is a failure of what?

    Answer: Authorization (an ownership check was missing)

    The server authenticated the user but never checked they owned that specific record — a broken access control.

🔑 Key terms

Role
A named set of permissions tied to a job, like reviewer or approver.
RBAC
Role-based access control: granting rights through roles rather than per person.
Ownership check
Confirming the user owns or may access this exact record.
Deny by default
Assuming no access unless a rule explicitly allows it.

✅ Review checklist

📊 Your progress

0%
Mark this topic learned to track it.
Saved in this browser.
🚀 Got it?
Mark it learned and move to the next topic.
Next topic →