Skip to content

Quarkus ommits default HTTP port when validating URI in DPoP #48110

@mocenas

Description

@mocenas

Describe the bug

Problem with quarkus.oidc.token.authorization-scheme=dpop. Quarkus ommits default HTTP port 80 from request's URI, when validating DPoP proof.

When I:

  • Create DPoP proof for http://mysite:80/dpop
  • Make http request for URI http://mysite:80/dpop (and I checked network traffic, HTTP request actually contains the port number in URI)
  • Quarkus will decline the request stating that DPoP proof URI http://mysite:80/dpop does not match request URI http://mysite/dpop

Quarkus drops the default port somewhere during the processing. Explicitly declaring port 80 is not the most common thing, but can easily happen in automation.

Expected behavior

No response

Actual behavior

No response

How to Reproduce?

No response

Output of uname -a or ver

No response

Output of java -version

No response

Quarkus version or git rev

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions