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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

API Key Authentication Best Practices

38 点作者 nathantotten超过 2 年前

4 条评论

sghosh2超过 2 年前
The checksum validation was something I hadn't come across before. Interesting way to minimize the load on the API key store.
评论 #33819576 未加载
ChaosMuppet超过 2 年前
With regards to secret scanning, a shout-out to the &quot;secret-token&quot; URI scheme <a href="https:&#x2F;&#x2F;datatracker.ietf.org&#x2F;doc&#x2F;html&#x2F;rfc8959" rel="nofollow">https:&#x2F;&#x2F;datatracker.ietf.org&#x2F;doc&#x2F;html&#x2F;rfc8959</a><p>Also, in addition to showing the creation date of the API key, I find it super friendly if it is possible to name the API key (and&#x2F;or add a note to it).
devCreek超过 2 年前
Regarding retrievable vs. irretrievable, I think is a matter of who do you delegate the ownership of the security. Using Irretrievable, you are transferring that to your users, which in a lot of scenarios just store them in plain text in non secure places.<p>I think having the chance to retrieve the api keys gives a much better Developer Experience to your consumers.
评论 #33819993 未加载
molmorg超过 2 年前
Author of the article here - look forward to any discussion here. Curious how many folks have already implemented something like this themselves... did you make different decisions?