Skip to content

Specify charset in WWW-Authenticate for Basic Auth#18760

Merged
jzheaux merged 2 commits intospring-projects:mainfrom
therepanic:gh-18755
Mar 10, 2026
Merged

Specify charset in WWW-Authenticate for Basic Auth#18760
jzheaux merged 2 commits intospring-projects:mainfrom
therepanic:gh-18755

Conversation

@therepanic
Copy link
Copy Markdown
Contributor

In this commit, we add support for the charset from RFC-7617, which definitely solves the problem when the client does not know what charset we are parsing with.

Closes: gh-18755

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Feb 18, 2026
@therepanic therepanic force-pushed the gh-18755 branch 2 times, most recently from fc49059 to e932168 Compare February 18, 2026 19:20
@therepanic
Copy link
Copy Markdown
Contributor Author

It turned out that some tests also required modifications and the addition of a charset. I wrote about this here: #18760 (comment) and here: #18760 (comment).

And over time, I'm starting to think that maybe the tests should still pass in this case? Then we'll have to create some kind of toggle switch, so we can enable charset additions. I'd like to know the best way to do this to fit the project.

I'm not sure what's best.

Copy link
Copy Markdown
Contributor

@jzheaux jzheaux left a comment

Choose a reason for hiding this comment

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

Thanks, @therepanic! I've left my feedback inline.

@jzheaux jzheaux self-assigned this Feb 26, 2026
@jzheaux jzheaux added in: web An issue in web modules (web, webmvc) type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Feb 26, 2026
@therepanic
Copy link
Copy Markdown
Contributor Author

Thanks for review. I followed your suggestions and pushed the change. I agree with your suggestions and followed them, pushing the change.

@therepanic therepanic requested a review from jzheaux February 28, 2026 17:19
Copy link
Copy Markdown
Contributor

@jzheaux jzheaux left a comment

Choose a reason for hiding this comment

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

Thanks for the updates, @therepanic. I've left just a little more feedback.

@jzheaux jzheaux added the status: waiting-for-feedback We need additional information before we can continue label Mar 4, 2026
@therepanic therepanic requested a review from jzheaux March 6, 2026 19:47
therepanic and others added 2 commits March 10, 2026 07:44
In this commit, we add support for the charset from RFC-7617, which
definitely solves the problem when the client does not know what charset
we are parsing with.

Closes: spring-projectsgh-18755

Signed-off-by: Andrey Litvitski <andrey1010102008@gmail.com>
Signed-off-by: Josh Cummings <3627351+jzheaux@users.noreply.github.com>
@jzheaux jzheaux enabled auto-merge (rebase) March 10, 2026 13:45
@jzheaux
Copy link
Copy Markdown
Contributor

jzheaux commented Mar 10, 2026

Thanks for the updates, @therepanic! I've also polished the documentation a bit, including mentioning this in whats-new.adoc so folks can be aware of the change. This will merge once the build passes.

@jzheaux jzheaux removed the status: waiting-for-feedback We need additional information before we can continue label Mar 10, 2026
@jzheaux jzheaux added this to the 7.1.0-M3 milestone Mar 10, 2026
@jzheaux jzheaux merged commit 8dcaa6d into spring-projects:main Mar 10, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: web An issue in web modules (web, webmvc) type: enhancement A general enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Specify charset in WWW-Authenticate for Basic Auth

3 participants