load_credentials_from_metadata