Configure Azure OAuth 2.0 secrets


You must configure your app’s Azure OAuth 2.0 secrets in the following cases:

Before you proceed, register your new app in Azure and configure it for OAuth 2.0, as described in Configure an Azure App.

Updating your app’s Azure OAuth 2.0 secrets

  1. Sign in to the Azure portal (https://azure.microsoft.com) and navigate to “App Registrations”.

    App Registrations page

  2. Click the application. The Overview page opens.

  3. In the Overview page, take note of the following secrets: Application ID, Directory (tenant) ID, Client secret, Redirect URI. You will need these in a subsequent step.

    App Overview page

  4. In the SBS Console, run the updateApp mutation and provide the previously obtained authorization details as parameters to AzureClientSecret.

mutation updateAppAzure($id: ID!, $input: UpdateAppInput!) {
  updateApp(id: $id, input: $input) {
    azureClientSecret{
      web {
        application_id
      }
    }
  }
}

Make sure to replace variables with the values mentioned in step 3 above.

{
  "id":"YOUR_SBS_APP_ID",
  "input": {
    "azureClientSecret": {
      "web": {
        "tenant_id": "YOUR_AZURE_TENANT_ID",
        "application_id": "YOUR_AZURE_APPLICATION_ID",
        "client_secret": "YOUR_AZURE_CLIENT_SECRET",
        "redirect_uri": "YOUR_AZURE_REDIRECT_URI"
      }
    }
  }
}