Get Started with Quarkus and OIDC Authentication

Get Started with Quarkus and OIDC Authentication

Learn how to use Java and Quarkus to create a REST API with JAX-RS, and secure it with OAuth 2.0 and OIDC.

Jayakrishnan

At this point https://developer.okta.com/…, I am getting the following response instead of 200 OK response


HTTP/1.1 403 Forbidden
Content-Length: 9
Content-Type: text/plain;charset=UTF-8

Forbidden

Any pointers as to what might be going wrong ?

Jayakrishnan

When I commented out this line of code, it returned some response.

//@RolesAllowed({“Everyone”})

Command:
http :8080/secured “Authorization: Bearer $TOKEN"

Response

HTTP/1.1 200 OK
Content-Length: 104
Content-Type: text/plain;charset=UTF-8

hello + <my-email-id>, isSecure: false, authScheme: Bearer, hasJWT: true, groups:

Mich mich

I have the same issue. Any response ?

Mich mich

You have to had a groups claim that includes Everyone

isilona

It took me some time to figure it out so will add the required steps
In okta dashboard API - Authorization Servers - Claims - Add Claim
Name -> groups
Include in token type > Access Token
Value type -> Groups
Filter -> Matches regex -> .*