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

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay