OAuth aapne use to kiya hoga. Social media ya aur bhi websites mein login karte waqt lekin aapko shayad pata nahi ho ki wo OAuth tha. To OAuth kya hota hai?
OAuth (Open Authorization) ek authentication protocol hai, jo user data ko third-party applications aur services ke saath securely share karne me madad karta hai. Iska primary use case ye hota hai ki, jab aap ek application me login karte hain aur us application ko aapke social media account, email account, ya kisi aur online service ka access chahiye, to OAuth ka use hota hai.
OAuth kaam kaise karta hai?:
1. User Authentication: Jab aap kisi third-party application me login karte hain aur us application ko access dena chahte hain, to aapko apne login credentials provide karne ki anumati nahi hoti hai. To wahan par login karwane ke bajaye, aapko original service provider (jaise Google, Facebook, Twitter, etc.) ke login page par redirect kiya jata hai, jahan aap apne credentials enter karte hain.
2. Authorization Grant: Jab aap successfully login hote hain, to aap se pucha jata hai ki kya aap third-party application ko access dena chahte hain ya nahi. Aap isse allow ya deny kar sakte hain.
3. Access Token: Agar aap "allow" karte hain, to original service provider aapko ek "access token" pradan karta hai. Ye token third-party application ko user ke account tak pahunchne ki anumati deta hai, lekin aapke login credentials ya sensitive information ko share nahi karta.
4. Access: Third-party application, is access token ka istemal karke user ke data ko access kar sakta hai, jaise ki user's profile information, photos, email addresses, etc. Jo bhi cheezein access kar sakte hai wo, normally aapko bataya jaata hai access dene se pehle.
Is tarah se, OAuth user privacy ko protect karta hai, kyun ki user apne sensitive credentials ko third-party application ke sath directly share nahi karta. Iske alawa, users kabhi bhi access revoke kar sakte hain, aur unka data surakshit rahta hai.
OAuth ke kai alag-alag versions hain, jaise OAuth 1.0, OAuth 2.0, etc., jinme OAuth 2.0 ek pramukh aur adhunik version hai jo aajkal adhik istemal hota hai.
Samaj mein aaya ki OAuth kya hai? Koi questions ho isse related to comments mein pooche. Video kaisa laga wo bataaiye aur jisne bhi susbcribe karke bell icon press nahi kiya hai, kar lijiye kyunki bell icon press karne par hi notifications aayenge aapko new videos ke. Milenge next video mein jald hi. Dhanyawaad.