# Twitter Client Credentials Grant Ref [OAuth 2.0 Bearer Token](https://developer.twitter.com/en/docs/authentication/oauth-2-0) ## Prerequisites 1. Create a Project then create an App Ref https://developer.twitter.com/en/docs/apps/app-management ``` Project Name: oauth2-rs-demo Project use: Doing academic research ``` ``` App details NAME: oauth2-rs-demo-dev DESCRIPTION: OAuth2 test ENVIRONMENT: Development ``` ``` User authentication settings App permissions: Read and write Request email from users Type of App: Web App, Automated App or Bot Redirect URL: https://oauth2-rs.lvh.me/auth/twitter/callback Website URL: https://oauth2-rs.lvh.me Terms of service: https://oauth2-rs.lvh.me/privacy Privacy policy: https://oauth2-rs.lvh.me/privacy ``` ``` Keys and tokens OAuth 2.0 Client ID and Client Secret Client ID: Client Secret: ```