Skip to content

Avoiding always-failing basic auth #76

Description

@voelkle-unige

Hello and thanks for this very useful lib!

Container image registries which don't allow basic auth always receive a first basic authenticated request before falling back to the oauth dance. For example:

ContainerImage('registry.gitlab.com/gitlab-org/gitlab-runner:alpine').get_digest(auth={})

Our IT complains about these spurious 401 requests but I don't see a wait to bypass them. Would it make sense to add a mechanism to pass pre-obtained bearer tokens? I can submit a patch if this looks reasonable to you.

Cheers,

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions