Skip to content

Commit cb9b9db

Browse files
authored
Merge pull request #151 from gouthamvel/patch-1
Update to Readme for 3-legged authorization
2 parents 20a7abc + 106a0ed commit cb9b9db

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.rdoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ When user returns create an access_token
4747
hash = { oauth_token: session[:token], oauth_token_secret: session[:token_secret]}
4848
request_token = OAuth::RequestToken.from_hash(@consumer, hash)
4949
@access_token = @request_token.get_access_token
50+
# For 3-legged authorization, flow oauth_verifier is passed as param in callback
51+
# @access_token = @request_token.get_access_token(oauth_verifier: params[:oauth_verifier])
5052
@photos = @access_token.get('/photos.xml')
5153

5254
Now that you have an access token, you can use Typhoeus to interact with the OAuth provider if you choose.

0 commit comments

Comments
 (0)