DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Newsletter
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Using OKTA as Client Provider in Mulesoft
  • MuleSoft Operational and API Management Capabilities
  • MuleSoft OAuth 2.0 Provider: Password Grant Type
  • Create Proxy Application for Mule APIs

Trending

  • A Non-Expiring AKS Deployment Token Could Read Secrets Across Three Namespaces
  • Constrained Decoding Models Explained: Encoders, Decoders and When to Use Them
  • GET, POST, PUT, DELETE: Choosing HTTP Verbs in a Real .NET Core Web API, Not Just by the Textbook
  • Building a Real Pipeline With senro: Monorepos, Caching, and Triggers

Draft This article hasn't been published, so readers can't see it.

In moderation This article is waiting for review, so readers can't see it yet.

Deleted This article has been deleted, so readers can't see it.

  1. DZone
  2. Software Design and Architecture
  3. Integration
  4. Set up MuleSoft AnyPoint Platform Identity Using Okta External Identity Provider

Set up MuleSoft AnyPoint Platform Identity Using Okta External Identity Provider

In this post, you will learn manual registration in MuleSoft Anypoint Platform Identity Management with OpenID Connect.

By 
Jitendra Bafna
·
Jan. 27, 20 · Tutorial
Post on X (opens in a new tab) Share on LinkedIn (opens in a new tab)
18.1K Views

Join the DZone community Save articles, join the discussion, and download Refcards and Trend Reports with a free account.

Join for free Already a member? Log in

Introduction

MuleSoft Anypoint Platform supports external identity providers like Open AM, Okta and PingFederate.

MuleSoft supports configure identity management using one of the following single sign-on standards:

  • OpenID Connect: End user identity verification by an authorization server including SSO
  • SAML 2.0: Web-based authorization including cross-domain SSO

In this post, you will learn manual registration in Anypoint Platform's Identity Management with OpenID Connect.

Prerequisite

  • Anypoint Platform account
  • Okta account

Setting Up Application in Okta

By default, when you login into the Okta developer portal, Go To API ->Authorization Server, and you will find the default Authorization Server.

Setting up application in Okta

In Okta, add a new application by clicking on the Application menu -> Add Application.

Setting up application in Okta

Now you can select Web and click on Next.

Setting up application in Okta

Now you need to fill in the details.

Name: Anypoint_Platform_Identity (You can give your own name)

Base URIs: https://anypoint.mulesoft.com/

Login redirect URIs: https://anypoint.mulesoft.com/accounts/login/{{domain}}/redirect (Domain can be found from Anypoint Platform Access Management → Organization)

Organization info form

Grant type allowed: Authorization Code

Finally, click on Done, and it will generate the Client Id and Client Secret.

client credentials form

We will require this Client Id and Client Secret when we start doing Manual Registration in Anypoint Platform.

Retrieving Okta Authorization Servers Metadata

In Okta, navigate to API Menu -> Authorization Servers -> default. After clicking on default, it will navigate you to another page. Click on Metadata URI, and it will provide Authorize and Token URL, which we will require during manual registration in Anypoint Platform.

Setting page

Setting Up Okta as External Identity in Anypoint Platform (Manual Registration)

For setting up Okta as External Identity in Anypoint Platform, Navigate to Access Management → External Identity → Identity Management → OpenID Connect

access management page

Once you select OpenID Connect from the drop-down menu, it will open a form where we will be doing manual registration.

Click on Manual registration.

external identity page

Use Client ID and Client Secret, which we have generated during the Okta application creation.

Authorize URL. The token URL can be found in the Okta Authorize Server Metadata.

Authorize URL: https://{{OKTA_Domain}}/oauth2/default/v1/authorize

Token URL: https://{{OKTA_Domain}}/oauth2/default/v1/token

User Info URL: https://{{ OKTA_Domain}}/oauth2/default/v1/userinfo

Finally, click on Save. This has completed the setup of the application in Okta and the External Identity OpenID connect manual Registration in Anypoint Platform.

Testing Sign-On Method on Anypoint Platform

For testing, you can browse the URL, https://anypoint.mulesoft.com/accounts/login/{{domain}}

This will redirect to the Okta login page for authentication instead of the Anypoint Platform login page.

Okta sign in page

It will redirect back to the Anypoint Platform home page after successful login.

Anypoint Platform page

You may need to set up roles in Anypoint Access Management for Okta users.

You can also learn how to perform Dynamic Client Registration in Anypoint Platform Using OKTA.


Further Reading

A Beginner’s Guide to Mule


MuleSoft application authentication

Opinions expressed by DZone contributors are their own.

Related

  • Using OKTA as Client Provider in Mulesoft
  • MuleSoft Operational and API Management Capabilities
  • MuleSoft OAuth 2.0 Provider: Password Grant Type
  • Create Proxy Application for Mule APIs

Partner Resources

×

Comments

Loading comments

The comments didn't load

Please try again in a moment.

Likes

Loading

The next likes didn't load. Please try again.

The likes didn't load

Please try again in a moment.

See who liked this

Log in or join DZone for free to see who liked this article.

Log in Join for free
  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook