Always set auth-required instead of auth-embedded if credentials were used from credential store
If credentials are specified in the content source URL, but get rejected and the credentials from the credential store are used, the private
property on the git origin should be set to auth-required
instead of auth-embedded
. The purpose of this (internal) value is to communicate which auth was used. If the auth is embedded, we can't be sure whether the server requires auth. But if the credential store is used, then we're sure that it is.
We have flexibility here since the return value of the status method on the credential store is documented for internal use only.