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

KTOR-5216 Parse header with multiple challenges #3277

Merged
merged 3 commits into from Dec 6, 2022

Conversation

marychatte
Copy link
Member

@marychatte marychatte commented Nov 29, 2022

Subsystem
Client

Motivation
Bug: method parseAuthorizationHeader does not parse multiple challenges and challenges can't be specified in multiple headers

Solution
New method parseAuthorizationHeaders, which can handle more cases
Add parsing of all headers WWW-Authenticate

@marychatte marychatte changed the title Parse header with multiple challenges KTOR-5216 Parse header with multiple challenges Nov 30, 2022
@rsinukov
Copy link
Contributor

@e5l can you review parsing part, please?

@rsinukov rsinukov requested a review from e5l November 30, 2022 16:28
Copy link
Member

@e5l e5l left a comment

Choose a reason for hiding this comment

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

LGTM, except Pair results in parsing

@marychatte marychatte force-pushed the authorization-header-multiple-challenges branch from f7f770b to f2b20d6 Compare December 4, 2022 16:48
@marychatte marychatte force-pushed the authorization-header-multiple-challenges branch from f2b20d6 to cfd97b1 Compare December 4, 2022 18:00
Copy link
Member

@e5l e5l left a comment

Choose a reason for hiding this comment

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

good job, lgtm

@marychatte marychatte force-pushed the authorization-header-multiple-challenges branch from 06cb895 to 0448780 Compare December 5, 2022 13:57
@marychatte marychatte force-pushed the authorization-header-multiple-challenges branch from 0448780 to 2ad05e2 Compare December 5, 2022 14:08
@marychatte marychatte merged commit dab18c0 into main Dec 6, 2022
@marychatte marychatte deleted the authorization-header-multiple-challenges branch December 6, 2022 15:36
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.

None yet

4 participants