OAuth 2 Explained In Simple Terms
Key Takeaways
OAuth 2 explained in simple terms for system design
Full Transcript
[Music] have you ever tried wrapping your mind around o off2 but ended up lost in the sea of jargons that's why we're here today we're breaking down these complex Concepts into digestible explanations let's Dive Right In imagine the early days of the internet sharing info was straightforward just hand over your username and password to another service and they could access anything they wanted this practice is fry upon these days but we might still encounter this practice in certain personal finance software to scrape information from crusto Banks luckily we have something much better these days enter OA 2 OA 2 is like giving someone a special key this key allows them to access specific information in another application we control who gets access to our data without having to share a password and yes we can revoke that key at any time now let's play this out with an example consider a photo storage application Snap Store we've been using it to store our photos and now we want to print some of them using a thirdparty printing service PR magic instead of manually uploading each photo to PR magic we ask PR magic to do the job with a simple click we Grant PR magic permission to access our photos on Snap Store using o Off 2 preager can then access our Snap Store photos on our behalf without ever knowing our Snap Store login credentials this is an example of the O off flow is an elegant stance between us Prem magic and snap store all orchestrated by o of2 now let's unpack this further in this context we are the resource owner because we own our photos on Snap Store Snap Store is the resource server that stores our photos pre magic is the client that wants to access the photos the authorization server could be a part of snap store or an external identity provider and is responsible for handling the O off2 process let's follow the oof2 flow in this scenario it begins when we instruct pre magic to fetch photos from Snap Store pre magic sends a client ID and scope which represent the access level requested to snap store's authorization server as a resource owner we authenticate directly with SNAP store and Grant Prem magic the consent to access our photos once consent is granted the authorization server sends an authorization code back to PR magic Prim magic then presents this authorization code is client ID and client secret to the authorization server now the client secret is a private key shared only between PR magic and the authorization server if the authorization server verifies the authorization code client ID and client secret IT issues an access token to PR magic finally Prim magic uses this access token to request our photos from snap store's resource server this all off to process ensures that our Snap Store login credentials are never exposed to pre magic while allowing pre magic to access only the photos we authorized it to see it's also important to note that the access token can be set to expire after a certain time or can be revoked by us at any point providing an additional layer of security oa2 also support refresh tokens which can be used to obtain a new access token when the o one expires without requiring our in ition that's o off to in a nutshell is an essential piece of the web security infrastructure and the backbone of many secure Seamless app interactions we use daily if you like our videos you may like our system design newsletter as well it covers topics and Trends in large scale system design trusted by 400,000 readers subscribe that blog. byby go.com
Original Description
Get a Free System Design PDF with 158 pages by subscribing to our weekly newsletter: https://bytebytego.ck.page/subscribe
Animation tools: Adobe Illustrator and After Effects.
Checkout our bestselling System Design Interview books:
Volume 1: https://amzn.to/3Ou7gkd
Volume 2: https://amzn.to/3HqGozy
The digital version of System Design Interview books: https://bit.ly/3mlDSk9
ABOUT US:
Covering topics and trends in large-scale system design, from the authors of the best-selling System Design Interview series.
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from ByteByteGo · ByteByteGo · 51 of 60
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
▶
52
53
54
55
56
57
58
59
60
What happens when you type a URL into your browser?
ByteByteGo
System Design: Why is Kafka fast?
ByteByteGo
System Design: How to store passwords in the database?
ByteByteGo
Big Misconceptions about Bare Metal, Virtual Machines, and Containers
ByteByteGo
FAANG System Design Interview: Design A Location Based Service (Yelp, Google Places)
ByteByteGo
Scan To Pay in 2 Minutes
ByteByteGo
Consistent Hashing | Algorithms You Should Know #1
ByteByteGo
System Design: Why is single-threaded Redis so fast?
ByteByteGo
HTTP/1 to HTTP/2 to HTTP/3
ByteByteGo
What Is REST API? Examples And How To Use It: Crash Course System Design #3
ByteByteGo
The Secret Sauce Behind NoSQL: LSM Tree
ByteByteGo
Bloom Filters | Algorithms You Should Know #2 | Real-world Examples
ByteByteGo
Back-Of-The-Envelope Estimation / Capacity Planning
ByteByteGo
How To Choose The Right Database?
ByteByteGo
How Does Live Streaming Platform Work? (YouTube live, Twitch, TikTok Live)
ByteByteGo
Latency Numbers Programmer Should Know: Crash Course System Design #1
ByteByteGo
What Are Microservices Really All About? (And When Not To Use It)
ByteByteGo
How Does Apple/Google Pay Work?
ByteByteGo
Proxy vs Reverse Proxy (Real-world Examples)
ByteByteGo
What is API Gateway?
ByteByteGo
What Is GraphQL? REST vs. GraphQL
ByteByteGo
What Is Single Sign-on (SSO)? How It Works
ByteByteGo
What Is A CDN? How Does It Work?
ByteByteGo
What is RPC? gRPC Introduction.
ByteByteGo
SSL, TLS, HTTPS Explained
ByteByteGo
FANG Interview Question | Process vs Thread
ByteByteGo
What is OSI Model | Real World Examples
ByteByteGo
CAP Theorem Simplified
ByteByteGo
Kubernetes Explained in 6 Minutes | k8s Architecture
ByteByteGo
CI/CD In 5 Minutes | Is It Worth The Hassle: Crash Course System Design #2
ByteByteGo
Why Is System Design Interview Important?
ByteByteGo
8 Key Data Structures That Power Modern Databases
ByteByteGo
System Design Interview: A Step-By-Step Guide
ByteByteGo
Top 5 Redis Use Cases
ByteByteGo
Debugging Like A Pro
ByteByteGo
But What Is Cloud Native Really All About?
ByteByteGo
Everything You Need to Know About DNS: Crash Course System Design #4
ByteByteGo
The Most Beloved Burger for Developers
ByteByteGo
10+ Key Memory & Storage Systems: Crash Course System Design #5
ByteByteGo
Cache Systems Every Developer Should Know
ByteByteGo
Top 7 ChatGPT Developer Hacks
ByteByteGo
How ChatGPT Works Technically | ChatGPT Architecture
ByteByteGo
10 Key Data Structures We Use Every Day
ByteByteGo
Top 7 Most-Used Distributed System Patterns
ByteByteGo
Secret To Optimizing SQL Queries - Understand The SQL Execution Order
ByteByteGo
Amazon Prime Video Ditches AWS Serverless, Saves 90%
ByteByteGo
Top 6 Most Popular API Architecture Styles
ByteByteGo
Top 5 Most-Used Deployment Strategies
ByteByteGo
How Discord Stores TRILLIONS of Messages
ByteByteGo
Uncovering Stack Overflow's Shocking Architecture
ByteByteGo
OAuth 2 Explained In Simple Terms
ByteByteGo
Demystifying the Unusual Evolution of the Netflix API Architecture
ByteByteGo
1 Year Of YouTube | Best System Design Series
ByteByteGo
DevOps vs SRE vs Platform Engineering | Clear Big Misconceptions
ByteByteGo
Top 7 Ways to 10x Your API Performance
ByteByteGo
Why Google and Meta Put Billion Lines of Code In 1 Repository?
ByteByteGo
Git MERGE vs REBASE: Everything You Need to Know
ByteByteGo
Top 6 Load Balancing Algorithms Every Developer Should Know
ByteByteGo
Algorithms You Should Know Before System Design Interviews
ByteByteGo
Top 5 Most Used Architecture Patterns
ByteByteGo
More on: Systems Design Basics
View skill →Related Reads
📰
📰
📰
📰
Beyond the Hype: How to Actually Maximize Cursor for High-Performance Vibe Coding
Dev.to · Bishal Deb Roy
I Bookmarked 30+ GitHub Repos for System Design: Here Are the 10 You Actually Need in 2026
Medium · Programming
State Synchronization at the Edge: Implementing Distributed Key-Value Stores for High-Volume Application Dashboards
Dev.to · AI Expert
Knowledge Is Not a Store: Why Every Container Died and Every Loop Survived
Dev.to · Oleksander
🎓
Tutor Explanation
DeepCamp AI