Skip to content

Conversation

@bhalsey
Copy link
Contributor

@bhalsey bhalsey commented Dec 22, 2025

Problem

We need the ability to test DPoP proofs.

Solution

Add

public RequestBuilder withDPoPProofProvider(DPoPProofProvider dPoPProofProvider) {
    this.dPoPProofProvider = dPoPProofProvider;
    return this;
  }

to RequestBuilder so a DPoPProofProvider can get required information and build a DPoP proof header with a constructed JWT.

Not adding actual JWT building functionality to Prime at this time, but might choose to do so later.

bhalsey and others added 4 commits December 22, 2025 14:31
Not a framework problem per se, but a lot of tests in applications that use PMVC expect this header to be set on test requests using RequestBuilder.
if (locales.isEmpty()) {
// request.getLocale() returns a default locale if none are set by httpRequestConsumer but
// we still want to set to the system's default, if none were explicitly set.
locales = List.of(Locale.getDefault());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this work with Brady's change to the GHA test runners? Or is it a separate workaround?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a merge from main of Brady's fix to pick up the default locale.

Copy link
Contributor

@spwitt spwitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth bumping version to something unreleased to avoid confusion? Or just another thing you'd have to keep updating on the feature branch?

@bhalsey
Copy link
Contributor Author

bhalsey commented Jan 6, 2026

Worth bumping version to something unreleased to avoid confusion? Or just another thing you'd have to keep updating on the feature branch?

I don't think it's necessary b/c PMVC doesn't get updated very often. But Brady might have other ideas. :)

@bhalsey bhalsey merged commit ded71f9 into feature/dpop Jan 6, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants