Authentication vs. Authorization

Ever A. OlanoEver A. Olano
2 min read

First off, welcome to my first ever post. Hooray! I'd like to go through the letters of the English alphabet with each of my posts and naturally, we start with "A". And I got not one, but two of them for ya. Double hooray!

If you're just starting, these two "A" words may sound about the same to you.

They're related but are in fact two distinct stages in getting access to any system.

Authentication (authn for short) comes before authorization (authz for short), even in the English dictionary, so that one's easy to remember.

Authentication is the process of checking whether the user is really who they claim to be. This is usually with a password that may be accompanied by one or more other forms of identification, including biometrics, such as your fingerprint or your face, or a text sent to your mobile phone.

You may have heard of 2FA, which stands for two-factor authentication, where "factor" refers to the form of identification. If you have exactly one other factor besides the password, then that's 2FA (because the password is counted as one).

2FA is a subset of MFA (multi-factor authentication), which really just means 2 or more factors. For the life of me, I can't remember having encountered a system that required more than two. Maybe it's just because I've never had to access super-critical highly confidential systems. Thankfully.

Once users pass authentication, their permissions, usually defined by the role assigned to them (admin, regular user, developer, etc.), are checked to make sure that they can indeed access the system.

It's usually more granular than that, especially for bigger applications. A role can dictate which parts of the system they can access and/or which actions they can take. Some users will have read-only access on certain pages of a Web application, for example.

Authn and authz are just two little concepts in the big world of security. Stay tuned for other security-related topics in the future.

0
Subscribe to my newsletter

Read articles from Ever A. Olano directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Ever A. Olano
Ever A. Olano

Inspired by a computer that printed "Hello, Ever" on the monitor at a science field trip. Fascinated by Basic in high school, then Turbo Pascal in college for starters. The rest is history. And yes, that's the answer to "How do you say you're seasoned without saying you're seasoned?"