Ran
|
Jobs
1
|
Files
36
|
Run time
1s
|
Badge
Embed ▾
README BADGES
|
push
travis-ci
feat: use PouchDB instance instead of CouchDB url BREAKING CHANGE: Before we passed `options.couchdb` to the hapi plugin, which then made direct requests to CouchDB, authenticating using the Cookie header ```js var options = { couchdb: { url: http://localhost:5984, admin: { username: admin, password: secret } } } ``` Now we pass in a PouchDB instance instead. We now calculate and validate session IDs directly in node using the server secret and the user account docs with [couchdb-calculate-session-id](https://github.com/hoodiehq/couchdb-calculate-session-id) ```js var PouchDB = require(PouchDB) PouchDB.plugin(require(pouchdb-users) var db = new PouchDB(http://localhost:5984/_users) db.useAsAuthenticationDB().then(function () { var options = { usersDb: db, admins: { admin: -pbkdf2-a2ca9d3ee,1081b31868d1f712e,10 }, secret: secret123 }) }) ``` * * * This commit was sponsored by &yet. Our friends at &yet have been supporters of Hoodie since its earliest days. <3 And they have availability for new projects! We think they’re some of the best people you can hire anywhere, but you can read what other people have to say about them and their work here: https://andyet.com/case-studies/
896 of 964 relevant lines covered (92.95%)
2.41 hits per line
Lines | Coverage | ∆ | File |
---|---|---|---|
1 |
90.91 |
13.13% | api/accounts/update.js |
1 |
94.44 |
-5.56% | api/sessions/add.js |
3 |
93.48 |
-6.52% | routes/account.js |
4 |
91.11 |
-8.89% | routes/accounts.js |
5 |
90.91 |
-9.09% | routes/session.js |
18 |
21.74 |
-78.26% | tests/integration/utils/couchdb-error-tests.js |
ID | Job ID | Ran | Files | Coverage | |
---|---|---|---|---|---|
1 | 179.1 | 36 |
92.95 |
Travis Job 179.1 |
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|