Set up the Twitter provider

Twitter is one of the OAuth 2.0 identity providers you can use to authenticate visitors to your Power Pages site. OAuth 2.0–based identity providers require a client ID, client secret, and sometimes a redirect or reply URL. This article describes the following steps:

Set up Twitter in Power Pages

  1. In your Power Pages site, select Set up > Identity providers.

    If no identity providers appear, make sure External login is set to On in your site's general authentication settings.

  2. To the right of Twitter, select More Commands () > Configure or select the provider name.

  3. Leave the provider name as it is or change it if you like.

    The provider name is the text on the button that users see when they select their identity provider on the sign-in page.

  4. Select Next.

  5. Under Reply URL, select Copy.

  6. Select Open Twitter.

    Don't close your Power Pages browser tab. You'll return to it soon.

Create an app registration in Twitter

Register an application in Twitter with your site's reply URL as the redirect URL.

Note

If you use or add a custom domain name or change your site's base URL, you must set up your identity provider to use the correct reply URL. The Twitter app uses the reply URL to redirect users to your website after authentication.

  1. Sign in to Twitter Application Management.

  2. Select Create New App.

  3. Enter the name of your app and a brief description.

  4. Enter your site's URL.

  5. In Callback URL, paste the reply URL you copied.

  6. Select Create your Twitter application.

  7. Select Create my access token.

  8. Select the Keys and Access Tokens tab.

  9. Copy the Consumer Key (API Key) and Consumer Secret (API Secret).

Enter site settings in Power Pages

  1. Return to the Power Pages Configure identity provider page you left earlier.

  2. Under Configure site settings, paste the following values:

    • Client ID​: Paste the Consumer Key you copied.
    • Client secret: Paste the Consumer Secret you copied.

Optional additional settings for OAuth 2.0 identity providers

See also

Set up site authentication