Category: Security, Data

In this article, we’ll take a look at building a secured REST API by integrating with Okta as the identity provider via OpenID Connect (OIDC). This article is based on the DZone article Building a Java REST API with Quarkus, which explains how to create a Java REST API with Quarkus and Okta.

Now, we can execute an OIDC request in order to create an access token to authenticate users for our service.

Now that we have a JWT token to authenticate the user from Okta, we will be able to use this with our service to do the authentication.

Here, we can see we have simply mapped the service resources with the service paths and respective HTTP methods in order to define the functionality.

Related Articles