[ 
https://issues.apache.org/jira/browse/COUCHDB-1238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pete Vander Giessen updated COUCHDB-1238:
-----------------------------------------

    Attachment: oauth_users_db_patch.zip

Per request, I ported Filipe's oauth users db code from ubuntuone to couch. In 
the attached zip (oauth_uses_db_patch.zip) is an updated couch_httpd_oauth.erl, 
a .patch of the changes, and a test file called oauth_users_db.js. 

What this code is: Felipe's code, with the ubuntuone specific delegation stuff 
stripped out. My Erlang fu is still pretty weak, so I may have done slightly 
naive stuff. Felipe: if you'd give it a once over to make sure nothing looks 
too terrible, I'd appreciate it. 

Note: I was having a hard time getting the new spidermonkey to compile on my 
box (OSX Snow Leopard). If anybody has any pointers to useful tips on getting 
it to work, I'd really appreciate them, too. Since there aren't any differences 
between trunk and 1.1.x in couch_httpd_oauth.erl, I went ahead and wrote and 
tested this against 1.1.x. It should work just fine in trunk. I'm going to work 
on getting trunk to compile to make doubly sure, but since the code very 
probably works just fine, I wanted to get it posted here, without further 
delay. 

> CouchDB uses _users db for storing oauth credentials
> ----------------------------------------------------
>
>                 Key: COUCHDB-1238
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1238
>             Project: CouchDB
>          Issue Type: New Feature
>          Components: Database Core
>    Affects Versions: 1.1
>            Reporter: Pete Vander Giessen
>            Assignee: Filipe Manana
>             Fix For: 1.2
>
>         Attachments: git_commits_as_patch.zip, oauth_users_db_patch.zip
>
>
> We want to store oauth credentials in the _users db, rather than in the .ini. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to