DEV Community

thecloudgarage
thecloudgarage

Posted on

OAuth2.0 M2M with OKTA, Spring Boot & Boomi Integration

Objective

An efficient search API based on Spring boot which is protected via OAuth2.0. Use OKTA OAuth2.0 Machine2Machine instead of Web based OAuth2.0. The m2m method implements Client Credentials flow and is recommended for server-side (AKA confidential) client applications with no end user, which normally describes machine-to-machine communication.

Additionally build a Boomi based HTTP client that gets authenticated data from the Spring boot API (OPTIONAL)

Example: An internal API (Boomi HTTP client or CURL) calling another third party API (Spring boot) which is secured via OKTA. Your client application/API needs to securely store its Client ID and secret and pass those to Okta in exchange for an access token. At a high-level, the flow only has four steps:

image

Prequisites

  • Basic familiarity with Spring Boot, Postgresql, docker, Boomi, OAuth2 workflows
  • Docker host with docker-compose installed and access to Internet
  • Boomi Atomsphere account (optional in case you want to spin up the Client API)

Continue reading on GitHub...

https://github.com/thecloudgarage/springboot-examples/blob/main/validated/springboot-efficient-search-rest-api-with-okta-m2m/README.md

A developer toolkit for building lightning-fast dashboards into SaaS apps

A developer toolkit for building lightning-fast dashboards into SaaS apps

Embed in minutes, load in milliseconds, extend infinitely. Import any chart, connect to any database, embed anywhere. Scale elegantly, monitor effortlessly, CI/CD & version control.

Get early access

Top comments (0)

Feature flag article image

Create a feature flag in your IDE in 5 minutes with LaunchDarkly’s MCP server ⏰

How to create, evaluate, and modify flags from within your IDE or AI client using natural language with LaunchDarkly's new MCP server. Follow along with this tutorial for step by step instructions.

Read full post