Specify charset in WWW-Authenticate for Basic Auth#18760
Specify charset in WWW-Authenticate for Basic Auth#18760jzheaux merged 2 commits intospring-projects:mainfrom
WWW-Authenticate for Basic Auth#18760Conversation
...main/java/org/springframework/security/web/authentication/www/BasicAuthenticationFilter.java
Show resolved
Hide resolved
.../java/org/springframework/security/web/authentication/www/BasicAuthenticationEntryPoint.java
Outdated
Show resolved
Hide resolved
.../org/springframework/security/web/authentication/www/BasicAuthenticationEntryPointTests.java
Show resolved
Hide resolved
fc49059 to
e932168
Compare
|
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. |
jzheaux
left a comment
There was a problem hiding this comment.
Thanks, @therepanic! I've left my feedback inline.
...main/java/org/springframework/security/web/authentication/www/BasicAuthenticationFilter.java
Show resolved
Hide resolved
.../java/org/springframework/security/web/authentication/www/BasicAuthenticationEntryPoint.java
Outdated
Show resolved
Hide resolved
.../java/org/springframework/security/web/authentication/www/BasicAuthenticationEntryPoint.java
Outdated
Show resolved
Hide resolved
.../java/org/springframework/security/web/authentication/www/BasicAuthenticationEntryPoint.java
Outdated
Show resolved
Hide resolved
|
Thanks for review. I followed your suggestions and pushed the change. I agree with your suggestions and followed them, pushing the change. |
jzheaux
left a comment
There was a problem hiding this comment.
Thanks for the updates, @therepanic. I've left just a little more feedback.
.../java/org/springframework/security/web/authentication/www/BasicAuthenticationEntryPoint.java
Show resolved
Hide resolved
.../java/org/springframework/security/web/authentication/www/BasicAuthenticationEntryPoint.java
Outdated
Show resolved
Hide resolved
.../org/springframework/security/web/authentication/www/BasicAuthenticationEntryPointTests.java
Show resolved
Hide resolved
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>
|
Thanks for the updates, @therepanic! I've also polished the documentation a bit, including mentioning this in |
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