4 ms·
You may have heard the aphorism, "All problems in computer science can be solved by another level of indirection." This, or some variation of it, is known as th
by cratermoon 4y ago
You may have heard the aphorism, "All problems in computer science can be solved by another level of indirection." This, or some variation of it, is known as the fundamental theorem of software engineering, variously attributed to Andrew Koenig, Butler Lampson, and David J. Wheeler.
With oauth2, literally any sort of authorization (or, in theory, authentication) is possible, but first you have to ask some endpoint for the details. In the case of oauth2, the core concept for authorization is "scope", but nothing is prescribed in scopes. They can literally be anything the auth provider describes. In theory, it's not supposed to matter – a consumer is just supposed to be able to pass around scopes from providers and let them determine if access is allowed. In practice, there's no practical way to reason about scope+resource permssions.
Oh, and despite the name, oauth2 is not about authentication, it's only about authorization. The OIDC spec, built on oauth2, provides authentication services, but again, there's no spec. Every auth provider does what it wants.
It's sometimes said that oauth2 is great for consultants, because any organization wanting to deal with it must hire (or contract with) specialist who can sort out the ill-defined problem space.
- tnzk 4y ago> despite the name, oauth2 is not about authentication, it's only about authorization OAuth is short for Authorization in the first place. https://datatracker.ietf.org/doc/html/rfc6749 https://datatracker.ietf.org/doc/html/rfc6749
- quickthrower2 4y agoWhat a brilliant and unambiguous abbreviation!
- cratermoon 4y agoBecause this is my specialty, I long ago learned to specify either authn or authz. The OAuth spec should have been the OAuthz spec.
- tnzk 4y agoAgree, or could be OAF just like the way GNAP named itself. Btw, I'm relatively new to this field. Didn't the terms like authn/authz exist at the time they named OAuth? Or any other reason not to use them?