An Introduction to OAuth 2
digitalocean.com·2d
🔑OAuth
Preview
Report Post

Introduction

OAuth 2 lets third-party apps access user data without handling passwords. Instead of asking users for their credentials, OAuth 2 delegates authentication to the service provider (like Google or GitHub) and issues tokens that represent specific permissions.

Here’s what you need to know: OAuth 2 is an authorization framework, not authentication. It answers “What can this app do?” not “Who is this user?” When you click “Sign in with Google” on a website, that’s typically OpenID Connect (which adds authentication) built on top of OAuth 2.

Why OAuth 2 exists: Before OAuth 2, applications either asked users for passwords (security risk) or required users to share API keys (too permissive). OAuth 2 solves this by letting us…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help