Twitter connection throws InternalOAuthError

Problem Statement

When trying to authenticate via Twitter, the user gets redirected to the application with an error.

  • error access_denied
  • error_description InternalOAuthError: Could not authenticate you.

Steps to reproduce

  • enable auth0 within twitter
  • create a Twitter social connection
  • create an application to authenticate with Auth0

Solution

We suggest you recreate API key and Secret within Twitter.

Make sure to set the corresponding values in the connection settings.

Make sure your application has “elevated access” on Twitter.

If using Terraform

https://registry.terraform.io/providers/auth0/auth0/latest/docs/resources/connection

Make sure you use the right field names in the options object.

-API Key Secret

-API Key
1 Like