by verdverm · 2y ago · 0 comments
I personally like saying authnz (authentication and authorization mashed together)
"Login" doesn't really cover token or key based authentication, i.e. service accounts don't "log in" but do require authentication and authorization
I could easily adopt those if I find myself naming middleware again.
I like "permission" for the concept of "allowed by the system to do".
I like "activity" or "actions" for things users have done.
Really, modern practice has moved past 'log in', sorry.
For example, I can log into OpenAI, generate an API key, log out, and then use that key to access their systems across a network
CIAM usually means external facing authN/authZ.. (customer identity and access mgmt)
There's so many terms in this space that are already confusing.
SSO misses the Access (permissions) part, which requires policies constraining the acting identity, the target, and the action to be performed
For example, Okta has a notion of whether a user is "authorized" to use the app, so you can end up being directed to Okta, prompted to log in, and then shown an authorization error. Users will often phrase this as some odd form of "not permitted to log into the app".
Further, Okta admins control the claims the user presents to the app, and those claims can often have authz implications. A "role" or "group" claim is the most obvious one.
I've spent endless time going in circles with Okta administrators who can't clearly delineate these two, or who don't understand what an "app" (Okta's term for a relying party) is, etc.
a12n and a11n, if you will.
To build on top of this point, authentication also includes claims that are not tied to an authorization process, such as user agents or custom request headers, and authentication is often used not to reject access but to output subsets of data (I..e, hide fields from a response, send a specific response doc, etc)
It's as if the whole industry uses the keyword "auth" for good reasons.