logoalt Hacker News

What we learned operating auth for 1k APIs

32 points • by fagnerbrack • today at 1:01 AM • 4 comments • view on HN

Comments

cryptonector • today at 5:47 AM

Even `expires_in` requires care. The token expires in 3600s, but, from when? In the token there will be an `exp` with an absolute value, but `expires_in` in the envelope is relative -- relative to when? Relative to whenever the issuer issued the token, so relative to `iat`/`exp`. But you don't want to have to extract that from the token, and you won't get to if the token is encrypted, so the best you can do is add `expires_in` to now, but it has to be a clock value from before you send the request.

gnabgib • today at 1:10 AM

900 (2 points, 3 months ago) https://news.ycombinator.com/item?id=49258375

100 (99 points, 7 months ago, 26 comments) https://news.ycombinator.com/item?id=47579818

➕ show 1 reply
jzelinskie • today at 4:00 AM

Friendly reminder for folks to distinguish between authN and authZ (or better yet use the terms "identity"/"login" and "permissions").

This article's title could've used it to give the reader a much better impression of the subject matter.

manfred_singer • today at 6:25 AM

[flagged]

VNGroundTruth • today at 6:06 AM

[flagged]

nora_harcourt • today at 5:30 AM

[flagged]

dean_draeger • today at 5:30 AM

[flagged]