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
ACL Implementation - initial commit - still a WIP #1
Merged
Changes from 5 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
c7d6151
initial
cicorias 7c185fa
update version
cicorias be1cb51
0.1.2
cicorias 56aa599
addming schema
cicorias 3f19860
adding secure-compare
cicorias 12c60c7
added working sample
cicorias 54e308a
working sample
cicorias ffb2f60
0.1.3
cicorias f9963ab
addressing review items
cicorias 79cb295
0.1.4
cicorias a338d05
adding readme
cicorias b8e90fa
Further Code Review Items
cicorias f008fa5
adding acceptance test
cicorias e6bca6c
updating acceptance tests
cicorias f2461df
updating
cicorias 712d0c9
stuff
cicorias ccaf0f1
updates for working version
cicorias 3ca6a95
update ignore
cicorias 2f69b90
address review
cicorias File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -31,3 +31,8 @@ node_modules | |
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
|
||
# pouchdb | ||
db/* | ||
sample/db/* |
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,82 @@ | ||
{ | ||
"disallowUnusedParams": true, | ||
"jsDoc": { | ||
"checkAnnotations": "jsdoc3", | ||
"checkParamExistence": true, | ||
"checkParamNames": true, | ||
"checkTypes": "strictNativeCase", | ||
"requireParamTypes": true, | ||
"checkRedundantAccess": "enforceLeadingUnderscore", | ||
"checkRedundantParams": true, | ||
"checkRedundantReturns": true, | ||
"checkReturnTypes": true, | ||
"leadingUnderscoreAccess": true, | ||
"requireDescriptionCompleteSentence": true, | ||
"requireReturnTypes": true | ||
}, | ||
"maximumLineLength": { | ||
"value": 80, | ||
"allExcept": ["regex", "urlComments", "require"] | ||
}, | ||
"maximumNumberOfLines": 1000, | ||
"requireCamelCaseOrUpperCaseIdentifiers": true, | ||
"requireCapitalizedConstructors": true, | ||
"requireCommaBeforeLineBreak": true, | ||
"requireCurlyBraces": [ | ||
"if", | ||
"else", | ||
"for", | ||
"while", | ||
"do", | ||
"try", | ||
"catch", | ||
"case", | ||
"default" | ||
], | ||
"requireDotNotation": { "allExcept": [ "keywords" ] }, | ||
"requireOperatorBeforeLineBreak": [ | ||
"?", | ||
"=", | ||
"+", | ||
"-", | ||
"/", | ||
"*", | ||
"==", | ||
"===", | ||
"!=", | ||
"!==", | ||
">", | ||
">=", | ||
"<", | ||
"<=" | ||
], | ||
"requireSemicolons": true, | ||
"requireSpaceAfterKeywords": [ | ||
"do", | ||
"for", | ||
"if", | ||
"else", | ||
"switch", | ||
"case", | ||
"try", | ||
"catch", | ||
"void", | ||
"while", | ||
"with", | ||
"return", | ||
"typeof", | ||
"function" | ||
], | ||
"requireSpaceAfterComma": true, | ||
"requireSpaceAfterLineComment": true, | ||
"requireSpaceBetweenArguments": true, | ||
"requireSpacesInConditionalExpression": { | ||
"afterTest": true, | ||
"beforeConsequent": true, | ||
"afterConsequent": true, | ||
"beforeAlternate": true | ||
}, | ||
"safeContextKeyword": ["self"], | ||
"validateIndentation": 2, | ||
"validateQuoteMarks": "'" | ||
} |
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,19 @@ | ||
{ | ||
"eqeqeq": true, | ||
"noarg": true, | ||
"undef": true, | ||
"unused": "vars", | ||
"eqnull": true, | ||
"node": true, | ||
"strict": "global", | ||
"nonbsp": true, | ||
"forin": true, | ||
"futurehostile": true, | ||
"expr": true, | ||
"nonew": true, | ||
"singleGroups": true, | ||
"latedef": true, | ||
"freeze": true, | ||
"maxdepth": 3, | ||
"esversion": 6 | ||
} |
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,10 @@ | ||
language: node_js | ||
node_js: | ||
- stable | ||
- "4.1" | ||
- "0.12" | ||
- "0.11" | ||
os: | ||
- linux | ||
script: "npm run-script test-travis" | ||
after_script: "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js" |
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,190 @@ | ||
// Available variables which can be used inside of strings. | ||
// ${workspaceRoot}: the root folder of the team | ||
// ${file}: the current opened file | ||
// ${fileBasename}: the current opened file's basename | ||
// ${fileDirname}: the current opened file's dirname | ||
// ${fileExtname}: the current opened file's extension | ||
// ${cwd}: the current working directory of the spawned process | ||
|
||
// A task runner that calls the Typescript compiler (tsc) and | ||
// Compiles a HelloWorld.ts program | ||
{ | ||
"version": "0.1.0", | ||
|
||
// The command is tsc. Assumes that tsc has been installed using npm install -g typescript | ||
"command": "tsc", | ||
|
||
// The command is a shell script | ||
"isShellCommand": true, | ||
|
||
// Show the output window only if unrecognized errors occur. | ||
"showOutput": "silent", | ||
|
||
// args is the HelloWorld program to compile. | ||
"args": ["HelloWorld.ts"], | ||
|
||
// use the standard tsc problem matcher to find compile problems | ||
// in the output. | ||
"problemMatcher": "$tsc" | ||
} | ||
|
||
// A task runner that calls the Typescript compiler (tsc) and | ||
// compiles based on a tsconfig.json file that is present in | ||
// the root of the folder open in VSCode | ||
/* | ||
{ | ||
"version": "0.1.0", | ||
|
||
// The command is tsc. Assumes that tsc has been installed using npm install -g typescript | ||
"command": "tsc", | ||
|
||
// The command is a shell script | ||
"isShellCommand": true, | ||
|
||
// Show the output window only if unrecognized errors occur. | ||
"showOutput": "silent", | ||
|
||
// Tell the tsc compiler to use the tsconfig.json from the open folder. | ||
"args": ["-p", "."], | ||
|
||
// use the standard tsc problem matcher to find compile problems | ||
// in the output. | ||
"problemMatcher": "$tsc" | ||
} | ||
*/ | ||
|
||
// A task runner configuration for gulp. Gulp provides a less task | ||
// which compiles less to css. | ||
/* | ||
{ | ||
"version": "0.1.0", | ||
"command": "gulp", | ||
"isShellCommand": true, | ||
"tasks": [ | ||
{ | ||
"taskName": "less", | ||
// Make this the default build command. | ||
"isBuildCommand": true, | ||
// Show the output window only if unrecognized errors occur. | ||
"showOutput": "silent", | ||
// Use the standard less compilation problem matcher. | ||
"problemMatcher": "$lessCompile" | ||
} | ||
] | ||
} | ||
*/ | ||
|
||
// Uncomment the following section to use jake to build a workspace | ||
// cloned from https://github.com/Microsoft/TypeScript.git | ||
/* | ||
{ | ||
"version": "0.1.0", | ||
// Task runner is jake | ||
"command": "jake", | ||
// Need to be executed in shell / cmd | ||
"isShellCommand": true, | ||
"showOutput": "silent", | ||
"tasks": [ | ||
{ | ||
// TS build command is local. | ||
"taskName": "local", | ||
// Make this the default build command. | ||
"isBuildCommand": true, | ||
// Show the output window only if unrecognized errors occur. | ||
"showOutput": "silent", | ||
// Use the redefined Typescript output problem matcher. | ||
"problemMatcher": [ | ||
"$tsc" | ||
] | ||
} | ||
] | ||
} | ||
*/ | ||
|
||
// Uncomment the section below to use msbuild and generate problems | ||
// for csc, cpp, tsc and vb. The configuration assumes that msbuild | ||
// is available on the path and a solution file exists in the | ||
// workspace folder root. | ||
/* | ||
{ | ||
"version": "0.1.0", | ||
"command": "msbuild", | ||
"args": [ | ||
// Ask msbuild to generate full paths for file names. | ||
"/property:GenerateFullPaths=true" | ||
], | ||
"taskSelector": "/t:", | ||
"showOutput": "silent", | ||
"tasks": [ | ||
{ | ||
"taskName": "build", | ||
// Show the output window only if unrecognized errors occur. | ||
"showOutput": "silent", | ||
// Use the standard MS compiler pattern to detect errors, warnings | ||
// and infos in the output. | ||
"problemMatcher": "$msCompile" | ||
} | ||
] | ||
} | ||
*/ | ||
|
||
// Uncomment the following section to use msbuild which compiles Typescript | ||
// and less files. | ||
/* | ||
{ | ||
"version": "0.1.0", | ||
"command": "msbuild", | ||
"args": [ | ||
// Ask msbuild to generate full paths for file names. | ||
"/property:GenerateFullPaths=true" | ||
], | ||
"taskSelector": "/t:", | ||
"showOutput": "silent", | ||
"tasks": [ | ||
{ | ||
"taskName": "build", | ||
// Show the output window only if unrecognized errors occur. | ||
"showOutput": "silent", | ||
// Use the standard MS compiler pattern to detect errors, warnings | ||
// and infos in the output. | ||
"problemMatcher": [ | ||
"$msCompile", | ||
"$lessCompile" | ||
] | ||
} | ||
] | ||
} | ||
*/ | ||
// A task runner example that defines a problemMatcher inline instead of using | ||
// a predefined one. | ||
/* | ||
{ | ||
"version": "0.1.0", | ||
"command": "tsc", | ||
"isShellCommand": true, | ||
"args": ["HelloWorld.ts"], | ||
"showOutput": "silent", | ||
"problemMatcher": { | ||
// The problem is owned by the typescript language service. Ensure that the problems | ||
// are merged with problems produced by Visual Studio's language service. | ||
"owner": "typescript", | ||
// The file name for reported problems is relative to the current working directory. | ||
"fileLocation": ["relative", "${cwd}"], | ||
// The actual pattern to match problems in the output. | ||
"pattern": { | ||
// The regular expression. Matches HelloWorld.ts(2,10): error TS2339: Property 'logg' does not exist on type 'Console'. | ||
"regexp": "^([^\\s].*)\\((\\d+|\\d+,\\d+|\\d+,\\d+,\\d+,\\d+)\\):\\s+(error|warning|info)\\s+(TS\\d+)\\s*:\\s*(.*)$", | ||
// The match group that denotes the file containing the problem. | ||
"file": 1, | ||
// The match group that denotes the problem location. | ||
"location": 2, | ||
// The match group that denotes the problem's severity. Can be omitted. | ||
"severity": 3, | ||
// The match group that denotes the problem code. Can be omitted. | ||
"code": 4, | ||
// The match group that denotes the problem's message. | ||
"message": 5 | ||
} | ||
} | ||
} | ||
*/ |
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,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2016 Shawn Cicoria | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You should probably mark that not as yourself but as for Microsoft There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. doh... |
||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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,2 @@ | ||
# SALTI | ||
[![Build Status](https://travis-ci.org/cicorias/salt2.svg?branch=master)](https://travis-ci.org/cicorias/salt2) |
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,37 @@ | ||
"use strict"; | ||
|
||
//go here with the schema and build away... | ||
//http://jeremydorn.com/json-editor/ | ||
//http://bit.ly/1Qs3l66 | ||
|
||
//ideally - 1 less check if path has a trailing /.. | ||
// ie. /foo/ is faster than /bar | ||
|
||
module.exports = [{ | ||
"path": "/", | ||
"roles": [{ | ||
"role": "public", | ||
"verbs": ["get"] | ||
}, { | ||
"role": "user", | ||
"verbs": ["get"] | ||
}] | ||
}, { | ||
"path": "/foo/", | ||
"roles": [{ | ||
"role": "public", | ||
"verbs": ["get", "post"] | ||
}, { | ||
"role": "user", | ||
"verbs": ["get", "put", "post"] | ||
}] | ||
}, { | ||
"path": "/bar", | ||
"roles": [{ | ||
"role": "public", | ||
"verbs": ["get"] | ||
}, { | ||
"role": "user", | ||
"verbs": ["get"] | ||
}] | ||
}]; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is any VS Code specific files necessary here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removing..