couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Stott <nrst...@gmail.com>
Subject Re: Bug in Password
Date Tue, 24 Aug 2010 16:20:37 GMT
That is the id, but I was referring to the "name" field.

{
   "_id": "org.couchdb.user:nrstott@gmail.com",
   "_rev": "1-fbc8402aa4d61bf0acd04ab8763760e4",
   "name": "nrstott@gmail.com",
   "type": "user",
   "roles": [
   ]
}

That's the actual document.

On Tue, Aug 24, 2010 at 8:44 AM, Benoit Chesneau <bchesneau@gmail.com> wrote:
> On Tue, Aug 24, 2010 at 3:32 PM, Nathan Stott <nrstott@gmail.com> wrote:
>> It's saved in couch like "username@example.com"
>>
>> I have saved users named "nrstott@gmail.com" for example and that's
>> how it shows up in the "name" field in the user doc
>>
>> On Tue, Aug 24, 2010 at 4:43 AM, Benoit Chesneau <bchesneau@gmail.com> wrote:
>>> On Tue, Aug 24, 2010 at 8:08 AM, Nathan Stott <nrstott@gmail.com> wrote:
>>>> You can reproduce it easily using curl or a web browser.  If your
>>>> username has an @ in it, you can't use URL authentication successfully
>>>> even if you url encode the username.
>>>>
>>>
>>> At the end couchdb see only the headers. So maybe it's the way the
>>> user was saved in the doc. Can you check how it is saved compared to
>>> the pparam you pass in your client or browser ?
>>>
>>> - benoît
>>
>
> I think it should be org.couchdb.user:username as id in user db. Need
> to check though.
>
> - benoit
>

Mime
View raw message