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

Check for DPoPNonce with case-insensitive TryGetValues method #445

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

drasticactions
Copy link

When checking for "DPoP-Nonce," this method checks against the Key value in the headers and uses a string comparison. This can fail because that header, like any other, can be case-insensitive, leading to issues where it can't get the value properly even though it is in the response.

TryGetValues will search for headers regardless of the case. Switching to that here, this method will work in all cases (pardon the pun, it took me hours of debugging to figure out this is what was broken, lol).

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

Successfully merging this pull request may close these issues.

1 participant