3 ms·
Sure, if all you need to know is "can this user login" and you don't have multiple servers that want to authorize the user, you probably don't need OAuth. You c
by mooreds 5y ago
Sure, if all you need to know is "can this user login" and you don't have multiple servers that want to authorize the user, you probably don't need OAuth. You can use sessions and cookies. See my comment elsewhere in this post about this: https://news.ycombinator.com/item?id=31007003 https://news.ycombinator.com/item?id=31007003
Interestingly, your first scenario is the resource owner password credentials grant: https://datatracker.ietf.org/doc/html/rfc6749#section-4.3 https://datatracker.ietf.org/doc/html/rfc6749#section-4.3
The second scenario is, I believe, the JWT bearer grant: https://www.rfc-editor.org/rfc/rfc7523 https://www.rfc-editor.org/rfc/rfc7523
Of course in the OAuth grants, the auth-server returns a token to be presented to other resources instead of a "yes" or "no" answer.