oras-project / rust-oci-client

A Rust crate to interact with OCI registries
Apache License 2.0
86 stars 45 forks source link

feat: return auth token from Client::auth #105

Closed mattarnoatibm closed 8 months ago

mattarnoatibm commented 8 months ago

Return the auth token from Client::auth if the container registry supports bearer token authentication.

mattarnoatibm commented 8 months ago

Hi Flavio. Thanks for looking at this PR.

Yes, I tested this change is sufficient using a feature branch of the guest-components/image-rs crate and the signature_verification_xrss test from that crate, which uses a custom container registry API extension (the get signatures one).