Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
1.2
-
None
-
OS X 10.6.8, couchdb built via build-couchdb w/ couchdb_browserid & geocouch plugins
Description
create a user that has OAuth consumer key, secret, token, and token secret fields:
{
"_id": "org.couchdb.user:jim.klo@gmail.com",
"_rev": "2-c82b774940546d812f459df92c8e0e00",
"type": "user",
"name": "jim.klo@gmail.com",
"roles": [
"browserid"
],
"salt": "3daafe56a143d8fa08ced7cccfdb2a70",
"browserid": true,
"oauth": {
"consumer_keys":
,
"tokens":
}
}
create a valid oauth 1.0 form post with url encoded content:
curl -H'Content-Type: application/x-www-form-urlencoded' -d 'oauth_consumer_key=jim.klo%40gmail.com&oauth_token=node_sign_token&oauth_version=1.0&oauth_timestamp=1340752816&oauth_nonce=dT2fqv&oauth_signature_method=HMAC-SHA1&oauth_signature=hNSttzb9jMdy%2FhmI2pYBQmmeouI%3D ' -k 'https://jim-klos-macbook-pro.local/_session'
return is:
{"error":"unauthorized","reason":"Name or password is incorrect."}log shows this:
[Tue, 26 Jun 2012 23:20:19 GMT] [debug] [<0.15281.2>] 'POST' /_session
from "127.0.0.1"
Headers: [
,
,
,
,
,
,
,
,
,
,
,
,
,
]
[Tue, 26 Jun 2012 23:20:19 GMT] [debug] [<0.15281.2>] OAuth Params: []
[Tue, 26 Jun 2012 23:20:19 GMT] [debug] [<0.15281.2>] Attempt Login:
[Tue, 26 Jun 2012 23:20:19 GMT] [info] [<0.15281.2>] 127.0.0.1 - - POST /_session 401
[Tue, 26 Jun 2012 23:20:19 GMT] [debug] [<0.15281.2>] httpd 401 error response: