Q1: What is the fundamental difference between Authentication and Authorization?
Authentication (AuthN) is the process of verifying who a user or system is. It confirms identity through credentials like passwords, biometrics, or cryptographic keys.
Authorization (AuthZ) is the process of verifying what an authenticated user or system is permitted to do. It checks rights, roles, and scopes before granting access to specific resources.
AuthN vs AuthZ Comparison
Identity Verification vs Permission Control
AuthN answers 'Who are you?'; AuthZ answers 'What are you allowed to access?'
OIDC, SAML, WebAuthn vs OAuth 2.0, RBAC, ABAC
OpenID Connect is built for AuthN, while OAuth 2.0 is strictly an AuthZ protocol.
ID Token vs Access Token
ID Tokens contain user profile claims; Access Tokens contain scopes and permissions.
Authentication validates identity (Who you are); Authorization validates permissions (What you can do).
OAuth 2.0 is an authorization framework, whereas OpenID Connect adds an authentication layer on top of it.