Twitter Authentication

This page illustrates how to authenticate Twitter identities with the Provenance SDK

Twitter Authentication Flow

When users attempt to verify their Twitter statistics through Clique's social oracles, they will undergo the Twitter authentication flow, as shown in the following diagram:


In order for the above authentication flow to work, we need you to provide the following two pieces of information:

Redirect URL

This is the URL of your website you will redirect your user to after he/she authorizes our Twitter Application to access his/her personal information. After installing the Clique SDK on your website, the Twitter client must be able to identify your frontend to perform secure authorization.
You will need this Redirect URL when applying for Twitter Application.

Twitter Application

  1. 2.
    Sign in with your Twitter account. You might need to apply for a developer account.
  2. 3.
    If you apply for the developer account, after verification, you will be prompted to enter a unique App name; or simply click “Add App” under “Project 1” on the dashboard.
  3. 4.
    Name your app
  4. 5.
    Note down the following:
    1. 1.
      API key
    2. 2.
      API key secret
    3. 3.
      Bearer Token
  5. 6.
    Click Edit and upload the App Icon.
  6. 7.
    Under User authentication settings click Set up
  7. 8.
    Fill in the following forms
    Callback URI:
    Please add your Redirect URLs here
    Website URL:
    Please add your Website URL here
  8. 9.
    Send the following two pieces of information to [email protected]
    1. 1.
      Redirect URLs
    2. 2.
      Twitter Application Client ID

Sample Code

Please refer to for sample code to get user's Twitter token in a privacy-preserving way.