|
|
|
|
|
by 0xWTF
63 days ago
|
|
Uh, not sure I agree with your terminology - one does not authorize who you are. You authenticate yourself, certain tokens authenticate your identity with varying levels of strength (e.g. within a corporate enclave, you may have elevated authorizations if you are authenticating from a corporate device). Authorizations are what are granted to an authenticated identity, typically with a specified scope and duration. |
|
I've only ever seen authorization header containing credentials (i.e. authentication, who you are) instead of authorization (what you can do).
Also everyone returns 401 when unauthorized (i.e. can't do a thing), instead of 403 (forbidden, i.e. can't do the thing). When 401 should probably be "unauthenticated" (we don't know who you are, so we can't authorize you).
Always messes with my head a bit.