logoalt Hacker News

xnorswap • today at 9:15 AM • 0 replies • view on HN

I have experience with this kind of issue so I am sympathetic to the demands, but not invalidating a refresh token the moment it is used is basically inviting replay attacks. Needing to "repair" OAuth integrations is just part and parcel of dealing with OAuth for APIs.

It will happen despite best efforts, so it's best to have a smooth workflow for users to be notified it needs repairing and be able to then address it quickly.

The "return 200 for errors" is a bugbear of mine too, it happens far too often. There's even one vendor for whom you need to determine whether a page renders as an HTML error page or whether it's really json in the response to detect whether your auth silently failed.