Skip to content

Conversation

@MShekow
Copy link

@MShekow MShekow commented Jun 15, 2025

This PR addresses #38

It's a simple workaround to avoid KeyError: 'service' for registries such as mirror.gcr.io where the Bearer in the Www-Authenticate response header lacks a service field.

I suppose you might want to implement this differently/better. I needed a quick hack and couldn't wait for you to address #38 yourself.

…ut 'service' field in bearer response header
@MShekow MShekow changed the title Handle auth for endpoints with service field Handle auth for endpoints without service field Jun 15, 2025
Copy link
Owner

@crashvb crashvb left a comment

Choose a reason for hiding this comment

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

Thanks for the patch; sorry for the delay

@crashvb crashvb merged commit a6cb2e5 into crashvb:main Aug 5, 2025
1 of 4 checks passed
@crashvb
Copy link
Owner

crashvb commented Aug 5, 2025

Released as v1.0.3

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.

3 participants