Couchdb 为什么require\u valid\u user参数不断提示用户身份验证?
所以我的问题是: 每当我在CouchDB配置中将Couchdb 为什么require\u valid\u user参数不断提示用户身份验证?,couchdb,Couchdb,所以我的问题是: 每当我在CouchDB配置中将require\u valid\u user设置为true时,每次我进行身份验证时,它都会提示我输入我的用户和密码 只有当我尝试使用_utils/时,问题才会出现。当我做卷发请求时,我得到了肯定的回答 测试 卷曲要求:肯定 Mozilla/_utils/:出现问题 Google Chrome/_utils/:问题仍然存在 我想不出这个问题。如果您有任何提示,我们将不胜感激。谢谢大家! 配置 { "httpd_design_handlers":
require\u valid\u user
设置为true
时,每次我进行身份验证时,它都会提示我输入我的用户和密码
只有当我尝试使用_utils/时,问题才会出现。当我做卷发请求时,我得到了肯定的回答
测试
卷曲要求:肯定
Mozilla/_utils/:出现问题
Google Chrome/_utils/:问题仍然存在
我想不出这个问题。如果您有任何提示,我们将不胜感激。谢谢大家!
配置
{
"httpd_design_handlers": {
"_compact": "{couch_mrview_http, handle_compact_req}",
"_info": "{couch_mrview_http, handle_info_req}",
"_list": "{couch_mrview_show, handle_view_list_req}",
"_rewrite": "{couch_httpd_rewrite, handle_rewrite_req}",
"_show": "{couch_mrview_show, handle_doc_show_req}",
"_update": "{couch_mrview_show, handle_doc_update_req}",
"_view": "{couch_mrview_http, handle_view_req}"
},
"uuids": {
"algorithm": "sequential",
"max_count": "1000"
},
"stats": {
"rate": "1000",
"samples": "[0, 60, 300, 900]"
},
"cors": {
"credentials": "true",
"headers": "accept, authorization, content-type, origin, referer, x-csrf-token",
"methods": "GET, PUT, POST, HEAD, DELETE",
"origins": "*"
},
"httpd_global_handlers": {
"/": "{couch_httpd_misc_handlers, handle_welcome_req, <<\"Welcome\">>}",
"_active_tasks": "{couch_httpd_misc_handlers, handle_task_status_req}",
"_all_dbs": "{couch_httpd_misc_handlers, handle_all_dbs_req}",
"_config": "{couch_httpd_misc_handlers, handle_config_req}",
"_db_updates": "{couch_dbupdates_httpd, handle_req}",
"_log": "{couch_httpd_misc_handlers, handle_log_req}",
"_oauth": "{couch_httpd_oauth, handle_oauth_req}",
"_plugins": "{couch_plugins_httpd, handle_req}",
"_replicate": "{couch_replicator_httpd, handle_req}",
"_restart": "{couch_httpd_misc_handlers, handle_restart_req}",
"_session": "{couch_httpd_auth, handle_session_req}",
"_stats": "{couch_httpd_stats_handlers, handle_stats_req}",
"_utils": "{couch_httpd_misc_handlers, handle_utils_dir_req, \"../share/couchdb/www\"}",
"_uuids": "{couch_httpd_misc_handlers, handle_uuids_req}",
"favicon.ico": "{couch_httpd_misc_handlers, handle_favicon_req, \"../share/couchdb/www\"}"
},
"attachments": {
"compressible_types": "text/*, application/javascript, application/json, application/xml",
"compression_level": "8"
},
"admins": {
"admin": "hidden"
},
"query_server_config": {
"os_process_limit": "25",
"reduce_limit": "true"
},
"vendor": {
"name": "The Apache Software Foundation",
"version": "1.6.1"
},
"replicator": {
"connection_timeout": "60000",
"db": "_replicator",
"http_connections": "20",
"max_replication_retry_count": "infinity",
"retries_per_request": "10",
"socket_options": "[{keepalive, true}, {nodelay, false}]",
"ssl_certificate_max_depth": "3",
"verify_ssl_certificates": "false",
"worker_batch_size": "500",
"worker_processes": "4"
},
"couch_httpd_oauth": {
"use_users_db": "false"
},
"ssl": {
"port": "6984",
"ssl_certificate_max_depth": "1",
"verify_ssl_certificates": "false"
},
"log": {
"file": "../var/log/couchdb/couch.log",
"include_sasl": "true",
"level": "info"
},
"view_compaction": {
"keyvalue_buffer_size": "2097152"
},
"query_servers": {
"coffeescript": "./couchjs.exe ../share/couchdb/server/main-coffee.js",
"javascript": "./couchjs.exe ../share/couchdb/server/main.js"
},
"daemons": {
"auth_cache": "{couch_auth_cache, start_link, []}",
"compaction_daemon": "{couch_compaction_daemon, start_link, []}",
"external_manager": "{couch_external_manager, start_link, []}",
"httpd": "{couch_httpd, start_link, []}",
"index_server": "{couch_index_server, start_link, []}",
"os_daemons": "{couch_os_daemons, start_link, []}",
"query_servers": "{couch_query_servers, start_link, []}",
"replicator_manager": "{couch_replicator_manager, start_link, []}",
"stats_aggregator": "{couch_stats_aggregator, start, []}",
"stats_collector": "{couch_stats_collector, start, []}",
"uuids": "{couch_uuids, start, []}",
"vhosts": "{couch_httpd_vhost, start_link, []}"
},
"httpd": {
"allow_jsonp": "false",
"authentication_handlers": "{couch_httpd_oauth, oauth_authentication_handler}, {couch_httpd_auth, cookie_authentication_handler}, {couch_httpd_auth, default_authentication_handler}",
"bind_address": "0.0.0.0",
"default_handler": "{couch_httpd_db, handle_request}",
"enable_cors": "true",
"log_max_chunk_size": "1000000",
"port": "5984",
"secure_rewrites": "true",
"socket_options": "[{recbuf, 262144}, {sndbuf, 262144}]",
"vhost_global_handlers": "_utils, _uuids, _session, _oauth, _users"
},
"httpd_db_handlers": {
"_all_docs": "{couch_mrview_http, handle_all_docs_req}",
"_changes": "{couch_httpd_db, handle_changes_req}",
"_temp_view": "{couch_mrview_http, handle_temp_view_req}",
"_view_cleanup": "{couch_mrview_http, handle_cleanup_req}"
},
"database_compaction": {
"checkpoint_after": "5242880",
"doc_buffer_size": "524288"
},
"couch_httpd_auth": {
"allow_persistent_cookies": "false",
"auth_cache_size": "50",
"authentication_db": "_users",
"authentication_redirect": "/_utils/session.html",
"iterations": "10",
"require_valid_user": "true",
"secret": "ec2364797d3c4da0a1d89e1d44d92e99",
"timeout": "600"
},
"couchdb": {
"attachment_stream_buffer_size": "4096",
"database_dir": "../var/lib/couchdb",
"delayed_commits": "true",
"file_compression": "snappy",
"max_dbs_open": "100",
"max_document_size": "4294967296",
"os_process_timeout": "5000",
"plugin_dir": "%locallibdir%/plugins",
"uri_file": "../var/run/couchdb/couch.uri",
"util_driver_dir": "../lib/couch-1.6.1/priv/lib",
"uuid": "13d376d472463626725ae62b7f14ef18",
"view_index_dir": "../var/lib/couchdb"
},
"compaction_daemon": {
"check_interval": "300",
"min_file_size": "131072"
}
}
{
“httpd_设计_处理程序”:{
“_compact”:“{coach_mrview_http,handle_compact_req}”,
“_info”:“{coach_mrview_http,handle_info_req}”,
“_list”:“{coach_mrview_show,handle_view_list_req}”,
“_rewrite”:“{coach_httpd_rewrite,handle_rewrite_req}”,
“_show”:“{coach_mrview_show,handle_doc_show_req}”,
“_update”:“{coach_mrview_show,handle_doc_update_req}”,
“\u视图”:“{coach\u mrview\u http,handle\u view\u req}”
},
“UUID”:{
“算法”:“顺序”,
“最大计数”:“1000”
},
“统计数据”:{
“费率”:“1000”,
“样本”:“[0,60,300,900]”
},
“cors”:{
“凭证”:“正确”,
“标题”:“接受、授权、内容类型、来源、引用、x-csrf-token”,
“方法”:“获取、放置、发布、标题、删除”,
“起源”:“*”
},
“httpd_全局_处理程序”:{
“/”:“{coach_httpd_misc_handlers,handle_welcome_req,}”,
“_active_tasks”:“{coach_httpd_misc_handlers,handle_task_status_req}”,
“_all_dbs”:“{coach_httpd_misc_handlers,handle_all_dbs_req}”,
“_config”:“{coach_httpd_misc_handlers,handle_config_req}”,
“_db_updates”:“{coach_dbupdates_httpd,handle_req}”,
“_log”:“{coach_httpd_misc_handlers,handle_log_req}”,
“_oauth”:“{coach_httpd_oauth,handle_oauth_req}”,
“_plugins”:“{coach_plugins_httpd,handle_req}”,
“_replicate”:“{coach_replicator_httpd,handle_req}”,
“_restart”:“{coach_httpd_misc_handlers,handle_restart_req}”,
“_session”:“{coach_httpd_auth,handle_session_req}”,
“_stats”:“{coach_httpd_stats_handlers,handle_stats_req}”,
“\u utils”:“{coach\u httpd\u misc\u handler\u utils\u dir\u req,\”./share/couchdb/www\”}”,
“_uuids”:“{coach_httpd_misc_handlers,handle_uuids_req}”,
“favicon.ico:“{coach\u httpd\u misc\u handler\u favicon\u req,\”./share/couchdb/www\”}”
},
“附件”:{
“可压缩_类型”:“text/*,application/javascript,application/json,application/xml”,
“压缩级别”:“8”
},
“管理员”:{
“管理”:“隐藏”
},
“查询服务器配置”:{
“操作系统进程限制”:“25”,
“减少限制”:“正确”
},
“供应商”:{
“名称”:“Apache软件基金会”,
“版本”:“1.6.1”
},
“复制因子”:{
“连接超时”:“60000”,
“db”:“复制器”,
“http_连接”:“20”,
“最大复制重试次数”:“无限”,
“每个请求重试次数”:“10次”,
“套接字选项”:“[{keepalive,true},{nodelay,false}]”,
“ssl证书最大深度”:“3”,
“验证ssl证书”:“假”,
“工人批量大小”:“500”,
“工作进程”:“4”
},
“coach_httpd_oauth”:{
“使用用户数据库”:“错误”
},
“ssl”:{
“端口”:“6984”,
“ssl证书最大深度”:“1”,
“验证ssl证书”:“假”
},
“日志”:{
“文件”:“./var/log/couchdb/coach.log”,
“include_sasl”:“true”,
“级别”:“信息”
},
“视图压缩”:{
“键值缓冲区大小”:“2097152”
},
“查询服务器”:{
“coffeescript”:“/couchjs.exe../share/couchdb/server/main coffee.js”,
“javascript”:“../couchjs.exe../share/couchdb/server/main.js”
},
“守护进程”:{
“auth_cache”:“{coach_auth_cache,start_link,[]}”,
“压缩守护程序”:“{coach\u compression\u daemon,start\u link,[]}”,
“外部管理器”:“{coach\u external\u manager,start\u link,[]}”,
“httpd”:“{coach_httpd,start_link,[]}”,
“索引服务器”:“{coach\u索引服务器,启动链接,[]}”,
“os_守护程序”:“{coach_os_守护程序,启动链接,[]}”,
“查询服务器”:“{coach\u查询服务器,启动链接,[]}”,
“复制器管理器”:“{coach\u replicator\u manager,start\u link,[]}”,
“统计数据聚合器”:“{coach_统计数据聚合器,开始,[]}”,
“stats_收集器”:“{coach_stats_收集器,开始,[]}”,
“uuids”:“{coach_uuids,start,[]}”,
“vhost”:“{coach_httpd_vhost,start_link,[]}”
},
“httpd”:{
“allow_jsonp”:“false”,
“验证处理程序”:“{coach_httpd_oauth,oauth_authentication_handler},{coach_httpd_auth,cookie_authentication_handler},{coach_httpd_auth,default_authentication_handler}”,
“绑定地址”:“0.0.0.0”,
“默认\u处理程序”:“{coach\u httpd\u db,handle\u request}”,
“enable_cors”:“true”,
“日志最大块大小”:“1000000”,
“端口”:“5984”,
“安全重写”:“真”,
“套接字选项”:“[{recbuf,262144},{sndbuf,262144}]”,
“vhost\u全局\u处理程序”:“\u utils、\u uuids、\u session、\u oauth、\u用户”
},
“httpd_db_处理程序”:{
“_all_docs”:“{coach_mrview_http,handle_all_docs_req}”,
“_changes”:“{coach_httpd_db,handle_changes_req}”,
“_temp_view”:“{coach_mrview_http,handle_temp_view_req}”,
_view_cleanup:“{coach_mrview_http,handle_cleanup_req}”
},
“数据库压缩”:{
“之后的检查点”:“5242880”,
“文档缓冲区大小”:“524288”
},
“coach_httpd_auth”:{
“允许\u持久\u cookies”:“false”,
“验证缓存大小”:“50”,
“身份验证数据库”:“用户”,
“身份验证重定向”:“/\u utils/session.html”,
“迭代”:“10”,
“需要有效用户”:“true”,
“秘密”:“ec2364797d3c4da0a1d89e1d44d92e99”,
“超时”:“600”
},
“couchdb”:{
“附件\流\缓冲区\大小”:“4096”,
“数据库目录”:“./var/lib/couchdb”,
“延迟提交”:“真”,
“文件压缩”:“snappy”,
“max_dbs_open”:“100”,
“最大文档大小”:“4294967296”,
“操作系统进程”
[httpd]
WWW-Authenticate = Basic realm="administrator"
...
[couch_httpd_auth]
require_valid_user = true