Menu

Which OAuth flow does your app need?
📰

Which OAuth flow does your app need?

DEV Community: security·Anton·3 days ago
#4CiGF1Ya
#devtosecurity#devto#dev#server#agent
Long article (2475 words) — no AI summary yet.
Reading 0:00
15s threshold

"I just need a login for my React app." The answers to that request usually arrive as a list of specifications: RFC 6749 for OAuth itself, RFC 7636 for PKCE, OpenID Connect on top, RFC 8252 if it is a mobile app, RFC 8628 if it is a TV, RFC 8707 if you have an API. Every item on the list is correct, but none of them says which flow your app needs.

I build FoxAuth, an OAuth 2.1 and OpenID Connect server, and that request is the one I hear first from new users. The list is the wrong place to start: the OAuth flow you need comes from two facts about your situation, and once you know them you need one line of that list, not all of it. Below are the two questions, the answer each combination gets, and the page we built on the FoxAuth site that asks them for you.

The OAuth flow follows from who acts and, for a person, where the code runs

The first question is who is acting: a person signing in, a program with no person behind it, or an AI agent. The second depends on the first.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.