DEV Community

Cover image for What's OAuth2, anyway?
Roman Glushko
Roman Glushko

Posted on

What's OAuth2, anyway?

I have finally gotten a chance to dive into the weeds of the OAuth2 protocol and ask all why questions around its components and design ๐Ÿ™Œ

I have posted my notes and thoughts as the article that covers:

  • ๐Ÿค”Why do we need OAuth2 and what were the alternatives before it came?
  • ๐ŸคThe OAuth2 roles, the general workflow and TOFU
  • ๐Ÿค–OAuth2 Client Applications, Static Registration and Credentials
  • ๐Ÿ”’Authorization Servers and their typical API
  • ๐ŸŽŸ๏ธAccess tokens. Why do we need them?
  • ๐Ÿ”„ Whatโ€™s the point of having access tokens and what they represent?
  • ๐Ÿ“šOAuth2 Scopes. What do they really mean?
  • ๐Ÿ’ƒ OAuth2 Authorization Code Flow. Why is it designed this way? The PKCE extension.
  • ๐Ÿ’ƒ OAuth2 Implicit Flow. Whatโ€™s so implicit about it? Why it was created in OAuth2.0 and deprecated in the OAuth2.1 Draft
  • ๐Ÿค– OAuth2 Client Credentials Flow or how to access the Resource Server on Client Application behalf?
  • ๐Ÿ”‘ OAuth2 ROC Flow and why was it โ€œdeprecatedโ€ from day one?
  • ๐Ÿ“Ÿ OAuth2 Device Flow or how to do OAuth2 when there is no browser on your target device?
  • ๐Ÿ—บ๏ธ Guide how to pick the right flow for your use case

The full article โฌ…๏ธ

Hope someone find this helpful ๐Ÿ™Œ

Top comments (0)