Skip to content

fetchBearerToken reverts too easily to basic authentication #972

@TerryHowe

Description

@TerryHowe

The fetchBearerToken method seems to revert to basic authentication too easily. With docker.io for instance, they claim to only support bearer auth in their 'WWW-Authenticate', but they do not support RefresherToken as a password or personal access token. You can use bearer authentication with as pasword with either a password or a personal access token though.

https://github.com/oras-project/oras-go/blob/main/registry/remote/auth/client.go#L305

I am getting reports of other registries that request bearer via the WWW-Authenticate and auth fails with ORAS because it reverts to basic auth which is not supported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions