Configure authentication via the -auth parameter
masterAuthentication is configured by passing a URI to the -auth parameter. The URI scheme determines the authentication method, and query parameters define the provider's settings. You can chain multiple authentication providers together using the else parameter to fall back to another provider if the current one fails.
# Example of chaining static auth to a basicfile auth
-auth 'static://?username=root&password=mycoolpass&else=basicfile://?path=/etc/dumbproxy.htpasswd'