Identity, authentication and authorization

Unit 1 of 5 in Identity and access.

You will be able to explain the difference between identity, authentication and authorization with an example.

Lesson

Three questions, three words

Every login system answers three questions in order. Who is this? Can they prove it? What are they allowed to do? People blur the words, so keep them apart.

NIST's digital identity guidelines are organised the same way: they cover identity proofing, authentication and federation of users who interact with systems over networks. Identity proofing is establishing that a person is who they claim to be, for example when an account is first created or recovered. Authentication is proving, each time, that the person at the keyboard controls the account. Federation lets one system accept another system's statement about who someone is.

Authorization is a separate step

OWASP defines authorization as the process of verifying that a requested action or service is approved for a specific entity, and says it is distinct from authentication, which is verifying an entity's identity. A user who has been authenticated is often not authorized to access every resource or perform every action.

A building is a useful picture. Showing your badge at the front desk authenticates you. Which floors your badge opens is authorization. Many real breaches are the second step failing: someone is correctly logged in and can still see what they should not.

Recovery is part of identity

The weakest part of many identity systems is not the login but the way back in. If a stranger can talk a help desk into resetting a password or a second factor, the strongest password is irrelevant. Treat recovery and reset with the same care as sign-in, and write down how a person proves who they are when they have lost their usual proof.

Key points

Sources

Lecture

Identity is the perimeter: A talk on why identity has become the main boundary when the network cannot be trusted.

Practice in the labs

Look at the way back in: recovery codes for yourself, and a help-desk procedure for others.

Knowledge check

  1. You log in correctly and then open another customer's invoice by changing a number in the address. Which step failed? Answer: Authorization. You were correctly authenticated, but the system did not check that you were approved for that resource. OWASP defines authorization as exactly that check, distinct from authentication.
  2. Which best describes federation? Answer: One system accepts another system's statement about who a user is. NIST's guidelines cover federation of users across systems: relying on another party to assert who someone is.
  3. A help desk resets any account when the caller sounds urgent. What is the weakness? Answer: Recovery is easier to abuse than sign-in. If recovery bypasses the proof that sign-in requires, an attacker uses recovery instead of the front door. Identity proofing applies to recovery too.

Back to the syllabus or see all classes.

Related