19
By: Vijay Naik Numaan Ahmed

OAuth

Embed Size (px)

Citation preview

Page 1: OAuth

By:Vijay NaikNumaan Ahmed

Page 2: OAuth

Overview

• What is OAuth?• Why do we need OAuth?• Architecture• OAuth & Force.com• Connected App Administration• Hands on

Page 3: OAuth

Access Resources on Browser

Page 4: OAuth

3rd Party App

Page 5: OAuth

3rd Party App

Page 6: OAuth

Modified Flow

Page 7: OAuth

What Is OAuth?

• Open Authorization• Authorization protocol

- To allow 3rd party apps to access data on your behalf- Without revealing the password- Sometime even without presence of the user

• A framework to allow secure API access

Page 8: OAuth

Why do we need OAuth?• To allow 3rd party apps to access data on your behalf without

revealing password• Sharing Password is a bad thing• Provide Restricted Access, i.e. allow access to selected

resources• Revoke access without changing password

Page 9: OAuth

Steps

• Generate Access Token (Session Id) using OAuth Flow

• Make API calls using Access Token

Page 10: OAuth

OAuth Is…

“a process of generating Access Token, without revealing the password”

Page 11: OAuth

OAuth & Force.com

Page 12: OAuth

Web Server Flow

Page 13: OAuth

HTTP Request

Method

Endpoint

Body

Header

Http Request

Grant_Type

Authorization_Code

Consumer_Id

Consumer_Secret_Code

RedirectUri

Page 14: OAuth

User Agent Flow

Page 15: OAuth

Refresh Token Flow

Page 16: OAuth

User Name Password Flow

Page 17: OAuth

Connected App Administration

• Setting the scopes• Setup Trusted IP Ranges• Expire Refresh Token• Set Session Policies• Block Apps

Page 18: OAuth

Hands On!

Page 19: OAuth

http://bit.ly/1p0vZBd