Skip to content

How to actually use the Twitter API after 3-legged OAuth? 🤔 #2961

Answered by kangmingtay
wottpal asked this question in Questions
Discussion options

You must be logged in to vote

Hi @wottpal, yes, the provider_token returned is the oauth_token. Unfortunately, we do not return the oauth_token_secret because twitter supports an oauth1.0 flow which means that the oauth_token and oauth_token_secret are long-lived tokens. In the event of a CSRF attack, an attacker will be able to obtain both tokens in the session and make requests on the behalf of your users without your knowledge. This is one of the vulnerabilities of long-lived tokens especially for twitter because the tokens never expire unless a user revokes them.

Replies: 14 comments 28 replies

Comment options

You must be logged in to vote
3 replies
@wottpal
Comment options

@kangmingtay
Comment options

@gabrielperales
Comment options

Answer selected by kangmingtay
Comment options

You must be logged in to vote
1 reply
@gabrielperales
Comment options

Comment options

You must be logged in to vote
4 replies
@kangmingtay
Comment options

@modbp
Comment options

@elliottetzkorn
Comment options

@feresr
Comment options

Comment options

You must be logged in to vote
9 replies
@kangmingtay
Comment options

@elliottetzkorn
Comment options

@wottpal
Comment options

@finnstrand
Comment options

@raae
Comment options

Comment options

You must be logged in to vote
11 replies
@finnstrand
Comment options

@angezanetti
Comment options

@arbhassan
Comment options

@angezanetti
Comment options

@aaronsmulktis
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment