Skip to content

Fix token auth when service is missing#58

Merged
davedoesdev merged 1 commit intodavedoesdev:masterfrom
jvstme:service-optional
May 5, 2025
Merged

Fix token auth when service is missing#58
davedoesdev merged 1 commit intodavedoesdev:masterfrom
jvstme:service-optional

Conversation

@jvstme
Copy link
Copy Markdown
Contributor

@jvstme jvstme commented Oct 15, 2024

Make the service parameter optional, since some registries do not use it. The same logic can be found in containerd.

Fixes #57

Make the `service` parameter optional when
fetching a bearer token, since some registries do
not use it.

The same logic can be found in containerd:
https://github.com/containerd/containerd/blob/61f91b963ef244daec1bda6700fe3f0b1aee50c6/core/remotes/docker/auth/fetch.go#L187
@davedoesdev davedoesdev merged commit 6e39731 into davedoesdev:master May 5, 2025
@davedoesdev
Copy link
Copy Markdown
Owner

@jvstme great thanks!

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.

Error during token authentication: KeyError: 'service'

2 participants