OAuth 2.0
OAuth 2.0
Seems like forever ago that I was considering OAuth, but I finally had an OAuth question on an interview today.
Version: OAuth 2.0
OAuth = Open Authorization
1. Authorization Protocol: Its primary purpose is authorization – granting access to specific resources, not verifying a user's identity.
2. Open Standard:
3. Secure Delegation: Grant specific permissions to applications to access their data on other services, like Google, Facebook, or Twitter, without giving away their passwords.
----------------------------------------------------
How OAuth works (in simple terms): [User = current app ]
Example:
A user wants to use a third-party application (like a photo editing app) that needs access to their photos stored on Google Photos.
1. User wants to do something.
2. Application requests authorization.
3. User authenticates and authorizes.
4. Authorization server issues token.
5. Application uses token to access resources.
6. Token can be revoked.
----------------------------------------------------
Key benefits of using OAuth:
1. Widespread Adoption.
2. Enhanced Security - Reduce Credential Theft.
3. Granular Control On App Permissions.
4. Improved User Experience - Allowing use existing account.
Comments
Post a Comment