3 ms·
> Unauthorized usually actually means Unauthenticated What does "unauthenticated" even mean here? You aren't logged in, not logged in isn't a state of "unauthe
by Jensson 2y ago
> Unauthorized usually actually means Unauthenticated
What does "unauthenticated" even mean here? You aren't logged in, not logged in isn't a state of "unauthenticated", you haven't given any credentials meaning currently you don't have any authority, so unauthorized makes sense. You can have several sets of credentials and switch between them, not giving them any isn't being in an unauthenticated state its a different thing, and using "unauthorized" in that case makes sense.
- Control8894 2y ago> What does "unauthenticated" even mean here? That you're not logged in. > You aren't logged in, not logged in isn't a state of "unauthenticated" What? Yes it is. > you haven't given any credentials meaning currently you don't have any authority, so unauthorized makes sense Ok? Yes, if you are unauthenticated (and authentication is required), then you are also unauthorized. However, the error code is not communicating that you are unauthorized; it is communicating that you need to authenticate, thus unauthenticated is more appropriate. > You can have several sets of credentials and switch between them Ok? > not giving them any isn't being in an unauthenticated state its a different thing That is exactly what being in an unauthenticated state means. What would you define to be an unauthenticated state otherwise?