Skip to content
This repository has been archived by the owner on Nov 16, 2019. It is now read-only.

[api] login option for application/x-www-form-urlencoded #13

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

doublerebel
Copy link

@doublerebel doublerebel commented Apr 26, 2016

Hello,

Cloudant requires form encoding for logins, but accepts JSON otherwise. This patch enables the form encoding and is backwards-compatible.

I had some trouble getting the tests to run locally, but I don't see this causing any regressions. Since Travis is setup for this repo I can make sure this PR passes all tests before merge.

Thanks!

@doublerebel
Copy link
Author

As we can see in the build history something about Node 0.8 causes the tests to fail when manipulating the password. It seems the tests were never fully passing on Node 0.8 anyway, since they relied on crypto.pbkdf2Sync which wasn't added until 0.9.

I've fixed the Couch setup so that it detects Travis and adjusts permissions to successfully run in the Travis environment. Now all tests are passing, including the one added per my PR.

Thanks for your work, would love to get this merged!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant