MuleSoft Connector for Dataflex

Build 20.0.7587

Creating a Custom OAuth App

When to Create a Custom OAuth App

Creating a custom OAuth app is optional as the connector is already registered with Dataflex and you can connect with its embedded credentials.

You might want to create a custom OAuth app to change the information displayed when users log into the Dataflex OAuth endpoint to grant permissions to the connector.

Follow the steps below to create a custom OAuth app and obtain the connection properties in a specific OAuth authentication flow.

Create a Custom OAuth App: Desktop

Follow the steps below to obtain the OAuth values for your app, the OAuthClientId and OAuthClientSecret.

  1. Log in to https://portal.azure.com.
  2. In the left-hand navigation pane, select Azure Active Directory then App Registrations and click the Add button.
  3. Select Web app / API.
  4. Enter an app name and any URL you would like for the sign-on URL. The sign-on URL is not used by the connector or in the authentication step, so it can be set to your home page or an arbitrary URL like http://localhost.
  5. After creating the app, in the Properties section of your app settings, set the Multi-Tenanted option to Yes.
  6. In the Reply URLs, enter http://localhost:33333, the connector's default. Or, set a different port of your choice and set CallbackURL to the exact reply URL you defined.
  7. In the Keys section, create a key for the app and select a duration.
  8. After you save the key, a value for the key is displayed once. Set OAuthClientSecret to the key value. Set OAuthClientId to the Application Id.
  9. Select Required Permissions and then click Add. Under Select an API, select the Dataflex permissions.
  10. Save your changes.

Create a Custom OAuth App: Headless Machines

Follow the steps below to obtain the OAuth values for your app, the OAuthClientId and OAuthClientSecret.
  1. Log in to https://portal.azure.com.
  2. In the left-hand navigation pane, select Azure Active Directory then App Registrations and click the Add button.
  3. Select Web app / API.
  4. Enter an app name and any URL you would like for the sign-on URL. The sign-on URL is not used by the connector or in the authentication step, so it can be set to your home page or an arbitrary URL like http://localhost.
  5. After creating the app, in the Properties section of your app settings, set the Multi-Tenanted option to Yes.
  6. In the Reply URLs, enter http://localhost:33333, the connector's default. Or, set a different port of your choice.
  7. In the Keys section, create a key for the app and select a duration.
  8. After you save the key, a value for the key is displayed once. Set OAuthClientSecret to the key value. Set OAuthClientId to the Application Id.
  9. Select Required Permissions and then click Add. Under Select an API, select the Dynamics CRM Online permissions.
  10. Save your changes.

Copyright (c) 2020 CData Software, Inc. - All rights reserved.
Build 20.0.7587