Skip to content

feat: handle merged WWW-Authenticate challenges#170

Open
stevencartavia wants to merge 2 commits intotempoxyz:mainfrom
stevencartavia:multi-method-402
Open

feat: handle merged WWW-Authenticate challenges#170
stevencartavia wants to merge 2 commits intotempoxyz:mainfrom
stevencartavia:multi-method-402

Conversation

@stevencartavia
Copy link
Copy Markdown
Contributor

Support 402 responses with multiple payment challenges across one or more WWW-Authenticate headers.

Copy link
Copy Markdown
Collaborator

@brendanjryan brendanjryan left a comment

Choose a reason for hiding this comment

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

Thank you! One comment re: compatability of splitting

--

The splitter only ends a Payment challenge when it finds the next Payment.

This breaks valid headers where Payment is followed by another scheme:

Payment id="a", realm="api", method="tempo", intent="charge", request="e30", Basic realm="login"

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.

2 participants