Learn how to secure networks, applications, and systems against digital threats.
Identity and Access Management (IAM) is the discipline of ensuring the right people have the right access to the right resources, for the right reasons. It covers identity, authentication, authorization, and auditing, plus the modern protocols — OAuth 2.0 and OpenID Connect — that web applications use to delegate access. This lesson explains the IAM lifecycle, roles and permissions, multi-factor authentication, tokens and sessions, and the difference between OAuth 2.0 (authorization) and OIDC (authentication).
| Term | Question | Example |
|---|---|---|
| Identity | Who is this? | A username or email |
| Authentication | Prove it | Password + MFA |
| Authorization | What may they do? | RBAC role permissions |
| Accounting/Audit | What did they do? | Access logs |
Role-Based Access Control (RBAC) assigns permissions to roles, and users to roles. Least privilege means granting only the permissions required for the job.
MFA requires at least two factors, so a stolen password is not enough to gain access.
After authentication, the user is given a session or token that represents their identity for subsequent requests, so they do not re-enter credentials every time.
OAuth 2.0 is an authorization framework. It lets a user grant a third-party application limited access to a resource without sharing their password.
OIDC is an identity layer built on top of OAuth 2.0. Where OAuth 2.0 issues access tokens (authorization), OIDC adds ID tokens that prove who the user is (authentication).
| OAuth 2.0 | OpenID Connect | |
|---|---|---|
| Purpose | Authorization | Authentication |
| Key token | Access token | ID token |
| Answers | What may the app access? | Who is the user? |
| Token | Purpose |
|---|---|
| Access token | Authorizes access to a resource |
| ID token | Proves the user’s identity |
| Refresh token | Obtains new access tokens without re-login |
A user grants a photo app access to their files.
(the app never sees the user’s password)