composer-auth
Composer repository credentials, without an HTTP client.
AuthCredentials: one host's credential (http-basic,bearer,github-oauth,gitlab-token,gitlab-oauth), with the header name and value Composer sends for it. ItsDebugoutput never shows the secret.parse_auth_json/parse_auth_object: read theauth.jsonshape (also used byCOMPOSER_AUTHand composer.json'sconfigblock) into a map keyed by host.auth_key: the key a URL's credential is looked up under (host and port).
use ;
let auth = parse_auth_json.unwrap;
let creds = &auth;
assert_eq!;
assert_eq!;
Where the credentials come from (which files, which environment variables, in what order) is left to the caller.