cloudant / nodejs-cloudant

Cloudant Node.js client library
Apache License 2.0
255 stars 90 forks source link

Used application/json for session POST #412

Closed ricellis closed 4 years ago

ricellis commented 4 years ago

Checklist

Description

Use application/json for _session POST of cookie auth

1. Steps to reproduce and the simplest code sample possible to demonstrate the issue

Pass a url containing percent-encoded user information.

2. What you expected to happen

cookieauth plugin session authentication to work correctly

3. What actually happened

401 unauthorized because the credentials were double encoded.

Approach

Schema & API Changes

Security and Privacy

Insignificant changes to handling of credentials

Testing

Monitoring and Logging

ricellis commented 4 years ago

@bessbd I tried to make the doc even more clear with an example in 245cbb0