Twitter verification
varunv5000 opened this issue · 1 comments
To solve the sybil resistance problem in Tip Party, we must be able to verify users through Twitter so we can prove that an address belongs to a real person, and people would not be able to sign into Tip Party twice.
Twitter Verification Issues:
You need to go through a Twitter authentication process in order to either craft a tweet for a user, or allow the user to sign in with Twitter.
https://developer.twitter.com/en/docs/authentication/oauth-1-0a/obtaining-user-access-tokens
^This article goes through the steps which you must take to authenticate a user.
Step 1:
Obtain a request token from the Twitter API to pass on to the user to allow them to authenticate themselves
Step 2:
The user clicks “Allow access” when Tip Party is requesting access to their account
Step 3:
You then receive a usable access token from Step 2, which authenticates the user, and then you can get the user’s credentials and be able to craft tweets for them.
Currently, I’m still stuck on step 1 because the Twitter API is blocking my client from accessing the API. I believe it is because Twitter does not allow you to do this process from the client side of the application.
However, I’ve been able to access the API through Postman over here: https://www.postman.com/twitter/workspace/twitter-s-public-workspace/collection/9956214-784efcda-ed4c-4491-a4c0-a26470a67400?ctx=documentation
, and also through cURL.
We likely need to set up a server to access Twitter’s API from if we want to use Twitter’s authentication in our app.