Quantcast
Channel: Mobile - Couchbase Forums
Viewing all articles
Browse latest Browse all 1117

Can see my user in list of users but failed to authenticate

$
0
0

I created the user via curl (201) and can see his details

curl -u Administrator:password http://localhost:4985/mydb/_user/Edge1User

{“name”:“Edge1User”,“email”:“”,“disabled”:false,“all_channels”:[“!”]}%
curl -u Edge1User:pass http://localhost:4985/mydb/_changes

{“error”:“Unauthorized”,“reason”:“Invalid login”}

I am running sync gateway in docker with the below configuration

{
    "bootstrap": {
      "server": "couchbase://cb",
      "username": "Administrator",
      "password": "password",
      "server_tls_skip_verify": true,
      "use_tls_server": false,
      "ca_cert_path": "",
      "group_id": "default"
    },
    "api": {
      "admin_interface": "0.0.0.0:4985",
      "public_interface": "0.0.0.0:4984",
      "metrics_interface": "0.0.0.0:4986",
      "profile_interface": "",
      "admin_interface_authentication": true,
      "metrics_interface_authentication": false,
      "cors": {
        "origin": ["*"],
        "login_origin": ["*"],
        "headers": ["*"],
        "max_age": 17280000
      }
    },
    "logging": {
      "console": {
        "enabled": true,
        "log_level": "info",
        "log_keys": ["HTTP", "Auth", "CRUD", "Changes"]
      }
    },
    "auth": {},
    "replicator": {
    
    }
  }

I have seen notes saying use databases, users etc but the container fails to start with message unknown key “databases”.

5 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 1117

Trending Articles