Skip to content

Authorization: Bearer <xxx> is not supported #199

Open
@stepancheg

Description

@stepancheg

Hello,

I'm reading the library,

https://docs.rs/oci-client/0.14.0/oci_client/secrets/enum.RegistryAuth.html

pub enum RegistryAuth {
    Anonymous,
    Basic([String](https://doc.rust-lang.org/nightly/alloc/string/struct.String.html), [String](https://doc.rust-lang.org/nightly/alloc/string/struct.String.html)),
}

There's no option to authenticate with token, for example, with a token returned from gcloud auth print-access-token, which is, to my understanding, is meant to be sent as Authorization: Bearer <xxx> header.

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