use default credential provider in samples

This refactors the samples to remove the dependency on a local YAML file in which the user puts credentials.

The samples should use the default provider chain, instead, which is more secure and easier to code.