OAuth Primer

Summary:
The following flow allows a user access to use a 3rd party protected resource (twitter api for example) with your app.
*If you want to simply use a twitter login to access your site that’s a different flow.

 

Details:
To follow along the process use this simple guide to get started. Also stackoverflow has a great walkthrough here too that is referenced in this same guide.

Table 1: OAuthProviders

Column Name Sample Parameters
ServiceName twitter  
ConsumerKey abc_from_twitter  
ConsumerSecret def_from_twitter  
oauthRequestTokenURL https://api.twitter.com/
oauth/request_token
IN key+secret
OUT
request token
oauthAuthorizeURL https://api.twitter.com/oauth/
authorize?oauth_token
=
IN
request token in url
OUT
pin (manual)
oauthAccessTokenURL https://api.twitter.com/oauth/
access_token
IN
key+secret+
request token+
pin
OUT
access token+secret
ReturnFromRequestURL http://mine.com/oauth/
returnrequest.aspx
 

 

Table 2: OAuthAccessTokens

UserId    
ServiceName    
AccessToken    
AccessSecret    

 

Table 3: OAuthTempRequestTokens

UserId    
ServiceName    
RequestToken    
AccessTokenPin    

 

image

 

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s