Skip to content

Commit 9764c11

Browse files
authored
Merge pull request #1 from isotoma/start-from-github-cognito-openid-wrapper
Initial code (a reworking of from github-cognito-openid-wrapper)
2 parents ff37f32 + 7a9f5e0 commit 9764c11

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+2058
-1
lines changed

.eslintrc.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"extends": [
3+
"airbnb-base",
4+
"prettier"
5+
],
6+
"rules": {
7+
"no-console": [
8+
"error",
9+
{
10+
"allow": [
11+
"warn",
12+
"error",
13+
"info"
14+
]
15+
}
16+
],
17+
"camelcase": 0
18+
},
19+
"overrides": [
20+
{
21+
"files": [
22+
"**/*.test.js"
23+
],
24+
"env": {
25+
"jest": true,
26+
"jasmine": true
27+
},
28+
"plugins": [
29+
"jest",
30+
"chai-expect",
31+
"chai-friendly"
32+
],
33+
"rules": {
34+
"no-unused-expressions": 0,
35+
"chai-friendly/no-unused-expressions": 2,
36+
"chai-expect/missing-assertion": 2,
37+
"chai-expect/terminating-properties": 2,
38+
"chai-expect/no-inner-compare": 2,
39+
"jest/no-disabled-tests": "warn",
40+
"jest/no-focused-tests": "error",
41+
"jest/no-identical-title": "error",
42+
"jest/prefer-to-have-length": "warn",
43+
"jest/valid-expect": 0
44+
}
45+
}
46+
]
47+
}

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
node_modules
2+
coverage
3+
pacts
4+
dist-web
5+
dist-lambda
6+
logs
7+
8+
config.sh
9+
*.key
10+
*.key.pub
11+
serverless-output.yml
12+
package-lock.json

.prettierrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"singleQuote": true
3+
}

.snyk

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
2+
version: v1.13.5
3+
ignore: {}
4+
# patches apply the minimum changes required to fix a vulnerability
5+
patch:
6+
SNYK-JS-AXIOS-174505:
7+
- axios:
8+
patched: '2019-05-06T06:05:06.784Z'
9+
SNYK-JS-HTTPSPROXYAGENT-469131:
10+
- snyk > proxy-agent > https-proxy-agent:
11+
patched: '2019-10-08T04:45:37.194Z'
12+
- snyk > proxy-agent > pac-proxy-agent > https-proxy-agent:
13+
patched: '2019-10-08T04:45:37.194Z'

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
language: node_js
2+
cache:
3+
directories:
4+
- "node_modules"
5+
node_js:
6+
- "node"
7+
env:
8+
global:
9+
- CC_TEST_REPORTER_ID=da46c045c47b340b3044989b44d42517cd36fd17c3e21ede55c45c49c7abe420
10+
dist: trusty
11+
install:
12+
- npm install
13+
before_script:
14+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
15+
- chmod +x ./cc-test-reporter
16+
- ./cc-test-reporter before-build
17+
script:
18+
- npm run lint
19+
- npm run test
20+
after_script:
21+
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT

LICENSE

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
BSD 3-Clause License
2+
3+
Copyright (c) 2018, Timothy Jones
4+
All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
9+
* Redistributions of source code must retain the above copyright notice, this
10+
list of conditions and the following disclaimer.
11+
12+
* Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
16+
* Neither the name of the copyright holder nor the names of its
17+
contributors may be used to endorse or promote products derived from
18+
this software without specific prior written permission.
19+
20+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

0 commit comments

Comments
 (0)