* Correct installation documentation * Add stylized titles * Add some changes to the getting started documentation * Add changes for the backend guide * Add changes for the design guide * Add testing / Q&A guide improvements * Minor fixes to contributing docs * More improvements to the general doc * Improvements for frontend guide
3.7 KiB
| title |
|---|
| Twitter Authentication |
Twitter App and Authentication
DEV allows you to authenticate using Twitter. In order to use this authentication method in local development you will need to setup a Twitter App and retrieve its keys. Then you'll need to provide these keys to the Rails application.
Sign up
-
Sign in to your Twitter account.
-
In order to get the API keys, you will have to apply for a developer account. Click the Apply button.
-
Setup your Twitter account. Be sure you have your phone number and email address filled in.
-
Fill in your account information and give a name to your developer account.
-
Write down the reasons that you want to use Twitter API. Mention DEV's community and describe the issues and tests and things that you want to work on. Copy it, you might use it later ;)
-
Read :) and accept the Terms and Conditions.
-
Verify your email address once more and you will be done.
-
You are done.
Get API keys
-
Fill in the app name, description and URL
https://dev.to. -
Check the Enable Sign in with Twitter option and fill in the Callback URL
http://localhost:3000/users/auth/twitter/callback(or whatever port you run DEV on). -
Fill in the DEV information, Terms of Service
http://dev.to/termsand Privacy policyhttp://dev.to/privacy. -
Write down (or paste) the things that you will work on. Press Create.
-
Review the Twitter Developer Terms and agree to do nothing sketchy.
-
The app is all set!
-
One more change... From the app dashboard go to Permissions and check Request email addresses from users option.
-
From the same dashboard access the Keys and tokens and change them accordingly (name of Twitter key -> name of our
ENVvariable):API key -> TWITTER_KEY API secret key -> TWITTER_SECRET Access Token -> TWITTER_ACCESS_TOKEN Access Token Secret -> TWITTER_ACCESS_TOKEN_SECRET












