TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Everything you need to know about OAuth 2.0

207 pointsby twakefieldalmost 5 years ago

10 comments

d__kalmost 5 years ago
Probably this introduction is good for some purposes but for me it is too informal and too far from (my) reality. I would say it is 90% identical to many other introductions to OAuth.<p>I have been trying to comprehend and formulate the main idea behind the usage of this technology, for example, as follows:<p><pre><code> OAuth allows us to use surrogates (like JWT) instead of the original credentials (like name and password) with the main benefits that once it is available, the original credentials are not needed anymore: neither by the client nor by the server </code></pre> Why it is the central idea? Because we do not consider where and how the tokens are obtained: you can get it by USB stick or maybe forge somehow artificially. It is important only that access to resources requires a special piece of data rather than (traditional) credentials. The main question for the client is whether the server will accept this token or not. For the server, the main question is whether it can trust this client and its tokens.We aslo abstract from what is inside this token and how the server decides what to do - these are considered details.<p>Do I miss something more important?
评论 #23857735 未加载
评论 #23858551 未加载
评论 #23857512 未加载
sakisvalmost 5 years ago
This also has a very nice and simple explanation of the whole thing:<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=996OiexHze0" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=996OiexHze0</a><p>It&#x27;s about 1h long, but it&#x27;s really worth it.
评论 #23857417 未加载
评论 #23866108 未加载
peterwwillisalmost 5 years ago
This introduction is pretty simple and concise to just understand what it is: <a href="https:&#x2F;&#x2F;www.cloudflare.com&#x2F;learning&#x2F;access-management&#x2F;what-is-oauth&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.cloudflare.com&#x2F;learning&#x2F;access-management&#x2F;what-i...</a><p>Follow that up with this SAML and OAuth comparison: <a href="https:&#x2F;&#x2F;www.ubisecure.com&#x2F;uncategorized&#x2F;difference-between-saml-and-oauth&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.ubisecure.com&#x2F;uncategorized&#x2F;difference-between-s...</a><p>Then see how OpenID Connect fits in: <a href="https:&#x2F;&#x2F;www.okta.com&#x2F;identity-101&#x2F;whats-the-difference-between-oauth-openid-connect-and-saml&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.okta.com&#x2F;identity-101&#x2F;whats-the-difference-betwe...</a> <a href="https:&#x2F;&#x2F;www.gluu.org&#x2F;blog&#x2F;oauth-vs-saml-vs-openid-connect&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.gluu.org&#x2F;blog&#x2F;oauth-vs-saml-vs-openid-connect&#x2F;</a><p>And this page shows examples of a web app using OAuth2: <a href="https:&#x2F;&#x2F;connect2id.com&#x2F;learn&#x2F;oauth-2" rel="nofollow">https:&#x2F;&#x2F;connect2id.com&#x2F;learn&#x2F;oauth-2</a>
francislavoiealmost 5 years ago
I like these explanations a lot, they were super useful when I had to dig deep on OAuth2 and OIDC<p><a href="https:&#x2F;&#x2F;connect2id.com&#x2F;learn&#x2F;oauth-2" rel="nofollow">https:&#x2F;&#x2F;connect2id.com&#x2F;learn&#x2F;oauth-2</a>
评论 #23854502 未加载
评论 #23854236 未加载
dekhnalmost 5 years ago
I&#x27;m an experienced programmer and I&#x27;ve never found anything harder to work with than OAuth 2.0. Every project I work on, there&#x27;s a two week &quot;WTF&quot; while we figure out all the details.
chasd00almost 5 years ago
it&#x27;s been a while but I remember being confused until I read the rfc itself. The rfc is actually clear and straightforward.
评论 #23856780 未加载
nicolasjungersalmost 5 years ago
For what I understand about OAuth, I don&#x27;t see how it solve the privacy problems. The Authorisation Server is aware of all client requests made on behalves of the user, therefore giving a rich profile of user interests.<p>Am I missing something?
speederalmost 5 years ago
Anyone can recommend me a SMTP server that don&#x27;t require oauth2? Currently my company use GSuite but oauth2 will be mandatory, but the open source projects we use as base for our internal software won&#x27;t support it (because they can&#x27;t get the certifications).
评论 #23860552 未加载
评论 #23870487 未加载
motohagiographyalmost 5 years ago
The enterprise world is 10y behind, and OAuth is the incremental change we can forsee being adopted by them. This is really valuable.
sortofokalmost 5 years ago
Check this out <a href="https:&#x2F;&#x2F;devansvd.com&#x2F;oauth" rel="nofollow">https:&#x2F;&#x2F;devansvd.com&#x2F;oauth</a>