documentation for basic auth and stub for digest