0

I'm using the quarkus-oidc component to enforce the JWT token validation in calls to a microservice.

The point is there are some paths (/api/public/*) that can be invoked publicly (without needing an Authorization: Bearer JWT).

Is there a way to exclude paths from the token verification?

codependent
  • 23,193
  • 31
  • 166
  • 308

1 Answers1

0

Based on the documentation you can disable authorization for select paths like this:

quarkus.http.auth.permission.permit1.paths=/api/public/*
quarkus.http.auth.permission.permit1.methods=GET,HEAD
quarkus.http.auth.permission.permit1.policy=permit
knutwannheden
  • 680
  • 4
  • 7