Test Social Connections with Auth0 Developer Keys

When using any of the available Social Identity Providers, you need to register your application with the relevant Identity Provider in order to obtain a Client ID and Client Secret.

Auth0 allows you to test a Social Identity Provider without specifying your own Client ID and Client Secret by using Auth0 developer keys. This allows you to quickly enable and test a specific Social Identity Provider, but it should not be used in production.

For production environments, make sure to follow the steps for your chosen provider to obtain the Client ID and Client secret from the provider, this will avoid the limitations of using developer keys.

Client ID and Client Secret

The exact terminology of a Client ID / Client Secret may differ between various Identity Providers. For example, Twitter refers to these as a Consumer Key / Consumer Secret and LinkedIn refers to an API Key / Secret Key.

Limitations of Developer Keys

They Auth0 developer keys are to be used for testing purposes so there are a few caveats you need to be aware of when using them. These may cause your application to behave differently - or some functionality to not work at all - depending on whether you use your own Client ID and Client Secret, or whether you use the Auth0 developer keys.

  1. When using the Auth0 developer keys, the consent screen for the various Identity Providers will display Auth0's logo and information to your users. When you register your own application you have the opportunity to use your own logo and other application information.

  2. Single Sign On will not function properly when using the Auth0 developer keys. The reason for this is that the Auth0 developer applications with all the relevant Identity Providers are configured to call back to the URL https://login.auth0.com/login/callback instead of the callback URL for your own tenant, i.e. https://YOUR_AUTH0_DOMAIN/login/callback.

    This results in the SSO cookie not being set on your own tenant domain, so the next time a user authenticates no SSO cookie will be detected, even if you configured your client to Use Auth0 instead of the Identity Provider to do Single Sign On.

  3. Redirecting users from Rules will not function properly. This is because redirect rules are resumed on the endpoint https://YOUR_AUTH0_DOMAIN/continue. When using Auth0's developer keys, the session is established on a special endpoint that is generic and tenant agnostic, and calling /continue will not find your previous session, resulting in an error.

  4. Federated Logout does not work. When using the Auth0 developer keys, calling /v2/logout?federated will sign the user out of Auth0, but not out of the Social Identity Provider.

  5. prompt=none won't work on the /authorize endpoint. Auth0.js' renewAuth() method uses prompt=none internally, so that won't work either.

  6. If Auth0 is acting as a SAML Identity Provider and you use a social connection with the Auth0 developer keys, the generated SAML response will have some errors, like a missing InResponseTo attribute or an empty AudienceRestriction element.