pub fn parse_auth_object(
obj: &Map<String, Value>,
source: &str,
) -> Result<HashMap<String, AuthCredentials>, AuthError>Expand description
Parse Composer’s auth object — {http-basic, bearer, github-oauth, gitlab-token, gitlab-oauth}, each a map from host to credential — into a
map keyed by host. Other keys are ignored, so composer.json’s whole
config block can be passed. source prefixes each error message.