Set "Separate scopes with spaces" Option in Management API for Auth0 Custom Social Connections

Overview

This article describes how to set the Separate scopes with spaces option via the Management API for an OAuth2 custom social connection.

Applies To
  • Custom social connections
  • Management API
Cause

Some social IdPs require the connection scopes parameter to be space-delimited rather than comma-delimited, which is what the Dashboard toggle button Separate scopes with spaces is for. However, it is also possible to set this option via the Management API.

Solution

To set the Separate scopes with spaces via the Management API, follow these steps:

  1. Use the Get a connection endpoint, and copy the whole "options" object from the API response.
  2. Use the Update a connection endpoint, and paste the "options" object in the request body.
  3. Add the "useOauthSpecScope" attribute at the end of the options object and set its value to "true" to enable the Separate scopes with spaces option.
  4. Send the API request.

Example body for the Update a connection endpoint:

{
   "options":{
         //...connection options from step 1...
         "useOauthSpecScope": true
   }
}

Recommended content

No recommended content found...