This repository has been archived by the owner on Dec 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
259 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ node_js: | |
- "4.1" | ||
- "0.12" | ||
- "0.11" | ||
- "0.10" | ||
os: | ||
- linux | ||
script: "npm run-script test-travis" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
* | Path | Method | PouchDB API | | ||
* |------|--------|-------------| | ||
* | / | GET | NA [3] | | ||
* | /:db | GET | info | | ||
* | /:db/_all_docs | GET, HEAD, POST [1] | allDocs | | ||
* | /:db/_bulk_get | POST | bulkGet | | ||
* | /:db/_changes | GET, POST [2] | changes | | ||
* | /:db/_local/thali_:id | GET, PUT, DELETE | get, put, remove | | ||
* | /:db/_local/:id | | ||
* | /:db/_revs_diff | POST | revsDiff | | ||
* | /:db/:id | GET | get | | ||
|
||
review the detailed spec | ||
https://github.com/thaliproject/Thali_CordovaPlugin/blob/vNext/thali/NextGeneration/security/thaliACLLayer.js | ||
|
||
|
||
|
||
if no identity, verify that it's loopback address calling. | ||
|
||
* If req.connection.pskIdentity is null/undefined then we MUST: | ||
* - check req.ip to make sure that the IP address is set to | ||
* "127.0.0.1" | ||
* - make a case sensitive string compare and make sure that | ||
* the value of the authorization header after the "CLEAR" keyword matches | ||
* the value set in this object. | ||
* If both checks pass then we MUST call next(). Otherwise we MUST immediately | ||
* return a 401 Unauthorized and close the connection as defined below. For now | ||
* we won't worry about also returning a www-authenticate header. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.