Skip to main content
Version: 2.0.0

Sign-in With Twitter X

OpenSSO support Sign in with Twitter X. If you want to use this feature, You have to activate this from config.js.

config.js
// ---
oauth: {
// ---
x: {
enable: false,
consumer_api_key: 'XXXXXXXXXXXX',
consumer_api_secret: 'XXXXXXXXXXXX',
client_id: 'XXXXXXXXXXXX',
client_secret: 'XXXXXXXXXXXX'
},
}
// ---

Description:

  • x.enable if set to true, then this feature will be activated.
  • x.consumer_api_key is the api key generated from twitter X.
  • x.consumer_api_secret is the api secret generated twitter X.
  • x.client_id is the client id generated from twitter X.
  • x.client_id is the client secret generated twitter X.

How to Get consumer_api_key, consumer_api_secret, client_id and client_secret

  1. Set Up Your Twitter Developer Account.

    • Create a Twitter Developer account and create an app in the Twitter Developer Portal.
    • Generate your API keys and secrets, click in menu tab Keys and Token.
  2. Edit User Authentication:

    • Under User Authentication Settings, click Edit.
    • Fill in the required details, see the picture below.

  3. Click Save.

  4. Done.

info
  • Consumer API Key and Consumer API Secret is required for Oauth-1.0a.
  • Client ID and Client Secret is required for Oauth 2 (future implementation).