Configuring Anypoint Studio For Authentication With Anypoint Platform Integrated With An Identity Provider

Author: Ashish Shrivastava

  1. In Anypoint Studio, from the Menu bar, go to Windows 🡪 Preferences and type “Browser” in the search bar. Select the Browser Settings option and choose Native as a default browser.  The built-in browser cannot exchange authentication token correctly with Identity Provider, so we need to choose Native Browser.
  1. If we don’t choose the Native and built-in browser options, the following error will be thrown.

   Error while checking if your session is valid

   Could not retrieve the persistent token

  Server Payload:

 {"error":"invalid_grant","error_description":"invalid code"}
  1. Next, search for Authentication, and when the user login window pops up, choose the Use Custom Domain option as shown below:
  1. In the new window, enter the custom domain name for your organization, you can get this information from your Profile Settings on the Anypoint Platform. Refer to the screenshots below:
  1. After entering an organization domain name, click continue, and a User Login window will pop up, choose to Continue with the Identity Provider option, refer to the below screenshot:
  1. If MFA(Multi-Factor Authentication) or 2FA (2-Factor Authentication) is enabled by Identity Provider, complete the verification steps for the same.
  1. Once authentication is done successfully with Identity Provider, the account will be added in Anypoint Studio. Then we can download dependencies, artifacts, and API Specifications from Anypoint Exchange and Design Center as per requirements.

We use cookies on this site to enhance your user experience. For a complete overview of how we use cookies, please see our privacy policy.