Gajendra
2.3K posts

Gajendra
@DevilGAJJU
aajao lad lo 🦾🦾
rajasthan, india Katılım Haziran 2020
74 Takip Edilen34 Takipçiler
Gajendra retweetledi

How OAuth 2.0 works
(clearly explained in under 2 mins):
OAuth can be thought of as a digital handshake between the app, service, and user, with everyone agreeing on what is shared.
It's an authorization framework that enables applications to access a user’s data on another service (like Facebook or GitHub) 𝘄𝗶𝘁𝗵𝗼𝘂𝘁 𝘀𝗵𝗮𝗿𝗶𝗻𝗴 𝘁𝗵𝗲 𝘂𝘀𝗲𝗿’𝘀 𝗽𝗮𝘀𝘀𝘄𝗼𝗿𝗱.
How it works:
𝗧𝗵𝗲 𝗽𝗿𝗼𝗰𝗲𝘀𝘀 𝗴𝗲𝗻𝗲𝗿𝗮𝗹𝗹𝘆 𝗳𝗼𝗹𝗹𝗼𝘄𝘀 𝟲 𝘀𝘁𝗲𝗽𝘀 𝘄𝗶𝘁𝗵 𝟰 𝗰𝗼𝗺𝗽𝗼𝗻𝗲𝗻𝘁𝘀 𝘁𝘆𝗽𝗶𝗰𝗮𝗹𝗹𝘆 𝗶𝗻𝘃𝗼𝗹𝘃𝗲𝗱:
• Client (app wanting access)
• Resource owner (user)
• Authorization server
• Resource server
𝗧𝗼 𝘂𝗻𝗱𝗲𝗿𝘀𝘁𝗮𝗻𝗱 𝘁𝗵𝗲 𝗽𝗿𝗼𝗰𝗲𝘀𝘀, 𝗹𝗲𝘁’𝘀 𝘁𝗮𝗸𝗲 𝗮 𝗹𝗼𝗼𝗸 𝗮𝘁 𝗵𝗼𝘄 𝗮 𝗴𝗮𝗺𝗲 𝘄𝗼𝘂𝗹𝗱 𝗰𝗼𝗻𝗻𝗲𝗰𝘁 𝘁𝗼 𝗮 𝗽𝗹𝗮𝘆𝗲𝗿’𝘀 𝗙𝗮𝗰𝗲𝗯𝗼𝗼𝗸 𝗮𝗰𝗰𝗼𝘂𝗻𝘁.
𝟭) 𝗥𝗲𝗾𝘂𝗲𝘀𝘁 𝗮𝗰𝗰𝗲𝘀𝘀
Within the game (client), the player (user) clicks on a “connect with Facebook” button to link their profile and find friends.
𝟮) 𝗥𝗲𝗱𝗶𝗿𝗲𝗰𝘁 𝘁𝗼 𝘀𝗲𝗿𝘃𝗶𝗰𝗲
The game redirects the player to Facebook’s (service’s) login page.
𝟯) 𝗣𝗲𝗿𝗺𝗶𝘀𝘀𝗶𝗼𝗻 𝗿𝗲𝗾𝘂𝗲𝘀𝘁
After logging in, the data that the game is requesting access to will be shown to the player which they can either allow or deny.
𝟰) 𝗔𝘂𝘁𝗵𝗼𝗿𝗶𝘇𝗮𝘁𝗶𝗼𝗻 𝗰𝗼𝗱𝗲
If the player gives their approval, Facebook redirects the player back to the game with an authorization code (from authorization server). The code is a temporary credential that proves the player’s consent.
𝟱) 𝗘𝘅𝗰𝗵𝗮𝗻𝗴𝗲 𝗰𝗼𝗱𝗲 𝗳𝗼𝗿 𝘁𝗼𝗸𝗲𝗻
The game now sends the authorization code along with its own identification to Facebook’s server in the background. Facebook identifies the authorization code and the game’s identity and returns an access token.
𝟲) 𝗨𝘀𝗲 𝘁𝗵𝗲 𝘁𝗼𝗸𝗲𝗻
The game can now use the access token to request the agreed-upon data from Facebook (from the resource server), like the player's friends list.
In this process, the player’s Facebook credentials were never shared, but the game was able to access the agreed-upon player data from Facebook. This is what OAuth 2.0 facilitates; allowing third-party applications to access data from services in a secure manner without sharing credentials.
OAuth 2.0 provides multiple grant types to cater to different use cases. These grant types dictate how the application gets an access token. For most web applications, the Authorization Code Grant is the recommended and most secure method to obtain access tokens.
What else would you add?
--
👋 PS: Get our System Design Handbook FREE when you join our newsletter. Join 28,001+ engineers: lucode.co/luc-newsletter…
--
🔖 Save for later.
♻️ Repost to help other engineers learn and grow.
➕ Follow Nikki Siapno + turn on notifications.

English

| ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄|
Pitch your product here
We'll promote it for FREE
|_____________|
\ (•◡•) /
\ /
——
| |
|_ |_
If this post gets 1k likes
This post will be paid promoted for 3 days.
Last time over 1 million people saw our promoted post.
Also share this with friends who could use a little boost!
English
Gajendra retweetledi

Open-source LLM model that generates 720p HD videos
Hugging Models@HuggingModels
Generates 720p videos from text. Production-ready diffusion for instant video creation.
English


@4GamerNews Try Night at the mall
store.steampowered.com/app/3685680/Ni…
English

「Fit Boxing 3」,「ペルソナ5 ザ・ロイヤル」のアレンジ楽曲を収録する追加パックを1月8日に配信
4gamer.net/s/G083254.2512…
「Wake Up, Get Up, Get Out There」など5曲を収録。シリーズ初となるコラボ衣装も登場する

日本語
Gajendra retweetledi


🔥 To receive $MET, register and vote by September 23, 2025. 📷
Jоin the actiоn!🌳WknKmYXB
@nicklawson85 @ilker_ilker344 @SolanaMexa @bams_cult
English

🔥 To receive $MET, register and vote by September 23, 2025. 📷
Jоin the actiоn!🌳3yHotPvl
@Aleksandr124krk @V0947808289 @cooobieboy @IdJdan
English

🔥 To receive $MET, register and vote by September 23, 2025. 📷
Jоin the actiоn!🌳1YwlaXdM
@papchris50 @universitytopg @sewergod69 @gov111990
English

🔥 To receive $MET, register and vote by September 23, 2025. 📷
Jоin the actiоn!🌳n6upQdj9
@XiimoSOL @MdSahid277859 @DavidYoon374947 @chick3nrice69
English

🔥 To receive $MET, register and vote by September 23, 2025. 📷
Jоin the actiоn!🌳rfR85ZW2
@DF440295 @BoredClint @SkrrrToThaBank @kkuiskku
English

🔥 To receive $MET, register and vote by September 23, 2025. 📷
Jоin the actiоn!🌳sl7ikBeS
@dylanjbuck @IMRLLYRICHH @ShashikTweets @FrappioMelba
English





