Skip to content

Better parsing for www-authenticate headers - #155

Merged
adityaramani merged 1 commit into
apple:mainfrom
adityaramani:auth-token
Jun 20, 2025
Merged

adityaramani merged 1 commit into
apple:mainfrom
adityaramani:auth-token

Conversation

@adityaramani

Copy link
Copy Markdown
Contributor

There was a bug where the www-authenticate header in the HTTP response from a registry would not be parsed accurately.

Specifically, if the header value had more than one <space> character, the entire header would be ignored. This PR fixes this bug and adds unit test to detect this in the future.

Fixes apple/container#240
And most likely fixes apple/container#237

Signed-off-by: Aditya Ramani <a_ramani@apple.com>
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.

[Bug]: AuthToken Authentication not working with Container Registry for Oracle [Bug]: No Www-Authenticate support

2 participants