add a basicAuth to the config of the API

It could be interesting to have an basic authentication to the API
I created this patch for my API