Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Www-Authenticate not being read #885

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

blancqua
Copy link
Contributor

@blancqua blancqua commented Dec 4, 2024

Fixes #884

@blancqua
Copy link
Contributor Author

blancqua commented Dec 4, 2024

@microsoft-github-policy-service agree

@blancqua blancqua force-pushed the blancqua/www-auth-fix branch from ea1e8dd to 7ecb1b3 Compare December 4, 2024 20:22
return response.headers()
.entrySet()
.stream()
.filter(entry -> WWW_AUTHENTICATE_HEADER.equalsIgnoreCase(entry.getKey()))
Copy link
Member

Choose a reason for hiding this comment

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

I think this warrants a unit test, just updating the existing one from here 68bba51#diff-c1e78d16db8b6cb86ef4e37c4f14c7950221b0fd619b2ab501499c588b5c0833R620

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @bgavrilMS ! I extended the existing tests to run with both variations of the header key. Slipped in some small refactor as well to avoid duplication, hope you don't mind.

Copy link
Member

@bgavrilMS bgavrilMS left a comment

Choose a reason for hiding this comment

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

LGTM, just needs a small unit test.

Thanks so much @blancqua

@blancqua blancqua force-pushed the blancqua/www-auth-fix branch from 7ecb1b3 to 85846f8 Compare December 6, 2024 07:32
@blancqua
Copy link
Contributor Author

blancqua commented Dec 6, 2024

Hi @bgavrilMS ! I extended the existing tests to run with both variations of the header key. Slipped in some small refactor as well to avoid duplication, hope you don't mind.

Copy link
Collaborator

@Avery-Dunn Avery-Dunn left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks for the help with this!

@Avery-Dunn Avery-Dunn merged commit 90af4d5 into AzureAD:dev Dec 6, 2024
1 check passed
@blancqua
Copy link
Contributor Author

blancqua commented Dec 7, 2024

Thanks, any clue when there might be a release including this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants