TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Everything you need to know about OAuth 2.0

207 点作者 twakefield将近 5 年前

10 条评论

d__k将近 5 年前
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 未加载
sakisv将近 5 年前
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 未加载
peterwwillis将近 5 年前
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>
francislavoie将近 5 年前
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 未加载
dekhn将近 5 年前
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.
chasd00将近 5 年前
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 未加载
nicolasjungers将近 5 年前
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?
speeder将近 5 年前
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 未加载
motohagiography将近 5 年前
The enterprise world is 10y behind, and OAuth is the incremental change we can forsee being adopted by them. This is really valuable.
sortofok将近 5 年前
Check this out <a href="https:&#x2F;&#x2F;devansvd.com&#x2F;oauth" rel="nofollow">https:&#x2F;&#x2F;devansvd.com&#x2F;oauth</a>