add auth_type to the config, document it. (current supported types: basic, digest)

also, fix test broken by the earlier verify_ssl_cert check in