Authentication vs authorisation
Authentication checks who you are, like logging in. Authorisation decides what you can do once you are known, like which files you can open. Authentication always comes first.
Understanding Authentication vs authorisation in Years 9–10 Digital Systems
What it does: The system must confirm who the user is (login_ok) before it can check what that user is allowed to do. Both users proved who they are, but their accounts have different permissions. The teacher can do more once identified. Authentication proves your identity. Deciding what you can open is authorisation. The fix is to say that a password login is authentication. Authorisation happens after, when permissions are checked.
Common mistakes: Logging in is authentication, which checks who you are using a password. canOpen is an authorisation idea (what you can do). Line 2 should be ok ← checkPassword(user, pw). The login failed message should show when authentication fails, meaning user is NULL. With ≠ it would show for people who logged in correctly. Line 2 should be IF user = NULL THEN.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 13–24) and word search (Modules 13–40).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
Authentication vs authorisationFill in the Blanks
Spot the Error
Student with a class code? Join your class →