Posts tagged “authorization”
-
OAuth 2.0 and OpenID Connect: which flow for which client?
Authorization code with PKCE for anything with a user (web, SPA, mobile, desktop), client credentials for machine-to-machine, the device flow for TVs and CLIs. The implicit and password grants are retired. OAuth is about access to APIs; OpenID Connect adds who the user is. Diagrams of each flow.
-
RBAC, ABAC or ReBAC: how should you model permissions?
Roles answer "what can an editor do?", attributes answer "under which conditions?", relationships answer "who can see this particular document?". Most SaaS products need roles per tenant plus a few attribute rules; sharing features need relationships. Where to enforce them, and why the database…