Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4,882 changes: 3,265 additions & 1,617 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion sandbox/oauth-example/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules
coverage
npm-debug.log
/dist
# Cache used by TypeScript's incremental build
*.tsbuildinfo
mochawesome-report
66 changes: 66 additions & 0 deletions sandbox/oauth-example/.env.defaults
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
NODE_ENV=production
LOG_LEVEL=info
USER_TEMP_PASSWORD=temp123!@
GOOGLE_AUTH_URL=q
GOOGLE_AUTH_CLIENT_ID=a
GOOGLE_AUTH_CLIENT_SECRET=q
GOOGLE_AUTH_TOKEN_URL=q
GOOGLE_AUTH_CALLBACK_URL=q
GOOGLE_TOKEN_INFO_URL=q
INSTAGRAM_AUTH_URL=q
INSTAGRAM_AUTH_CLIENT_ID=a
INSTAGRAM_AUTH_CLIENT_SECRET=q
INSTAGRAM_AUTH_TOKEN_URL=q
INSTAGRAM_AUTH_CALLBACK_URL=q
SAML_URL=q
SAML_CLIENT_ID=a
SAML_CLIENT_SECRET=q
SAML_TOKEN_URL=q
SAML_CALLBACK_URL=q
APPLE_AUTH_URL=q
APPLE_AUTH_CLIENT_ID=a
APPLE_AUTH_TEAM_ID=q
APPLE_AUTH_KEY_ID=q
APPLE_AUTH_CALLBACK_URL=q
FACEBOOK_AUTH_URL=q
FACEBOOK_AUTH_CLIENT_ID=a
FACEBOOK_AUTH_CLIENT_SECRET=q
FACEBOOK_AUTH_TOKEN_URL=q
FACEBOOK_AUTH_CALLBACK_URL=q
REDIS_PORT=a
REDIS_HOST=a
REDIS_URL=
REDIS_PASSWORD=a
REDIS_DATABASE=a
FORGOT_PASSWORD_LINK_EXPIRY=30
REQUEST_SIGNUP_LINK_EXPIRY=30

# AZURE AD
#boolean values will be 0 or 1

AZURE_AUTH_ENABLED=0
AZURE_IDENTITY_METADATA=https://login.microsoftonline.com/common/.well-known/openid-configuration
AZURE_AUTH_CLIENT_ID=a
AZURE_AUTH_REDIRECT_URL=url
AZURE_AUTH_CLIENT_SECRET=client_secret
AZURE_AUTH_ALLOW_HTTP_REDIRECT=1
AZURE_AUTH_COOKIE_INSTEAD_SESSION=1
AZURE_AUTH_PASS_REQ_CALLBACK=0
AZURE_AUTH_VALIDATE_ISSUER=0
AZURE_AUTH_B2C_TENANT=0
AZURE_AUTH_CLOCK_SKEW=300
AZURE_AUTH_LOG_LEVEL=
AZURE_AUTH_LOG_PII=1
AZURE_AUTH_NONCE_TIME=3600
AZURE_AUTH_NONCE_COUNT=10
AZURE_AUTH_ISSUER=

# key is 32 bit

AZURE_AUTH_COOKIE_KEY=

#iv is 12 bit

AZURE_AUTH_COOKIE_IV=

MAX_JWT_KEYS=2
20 changes: 20 additions & 0 deletions sandbox/oauth-example/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
NODE_ENV=
LOG_LEVEL=
DB_HOST=
DB_PORT=
DB_USER=
DB_PASSWORD=
DB_DATABASE=
DB_SCHEMA=
REDIS_HOST=
REDIS_PORT=
REDIS_URL=
REDIS_PASSWORD=
REDIS_DATABASE=
JWT_SECRET=
JWT_ISSUER=
GOOGLE_AUTH_URL=
GOOGLE_AUTH_CLIENT_ID=
GOOGLE_AUTH_CLIENT_SECRET=
GOOGLE_AUTH_TOKEN_URL=
GOOGLE_AUTH_CALLBACK_URL=
2 changes: 2 additions & 0 deletions sandbox/oauth-example/.eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ node_modules/
dist/
coverage/
migrations/
migration.js
.eslintrc.js
mochawesome-report/
10 changes: 10 additions & 0 deletions sandbox/oauth-example/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
module.exports = {
extends: '@loopback/eslint-config',
rules: {
'no-extra-boolean-cast': 'off',
'@typescript-eslint/interface-name-prefix': 'off',
'no-prototype-builtins': 'off',
'no-await-in-loop': 'error',
},
parserOptions: {
project: './tsconfig.json',
tsconfigRootDir: __dirname,
},
};
3 changes: 2 additions & 1 deletion sandbox/oauth-example/.mocharc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"exit": true,
"recursive": true,
"require": "source-map-support/register"
"require": "source-map-support/register",
"reporter": "mochawesome"
}
5 changes: 5 additions & 0 deletions sandbox/oauth-example/.nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": "@istanbuljs/nyc-config-typescript",
"all": true,
"reporter": ["html", "text-summary"]
}
3 changes: 3 additions & 0 deletions sandbox/oauth-example/.prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
dist
*.json
coverage
mochawesome-report
node_modules/
11 changes: 4 additions & 7 deletions sandbox/oauth-example/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"editor.trimAutoWhitespace": true,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true,
"source.fixAll.eslint": true
"source.organizeImports": "explicit",
"source.fixAll.eslint": "explicit"
},

"files.exclude": {
Expand All @@ -15,7 +15,7 @@
"**/.hg": true,
"**/.svn": true,
"**/CVS": true,
"dist": true,
"dist": true
},
"files.insertFinalNewline": true,
"files.trimTrailingWhitespace": true,
Expand All @@ -25,8 +25,5 @@
"typescript.preferences.quoteStyle": "single",
"eslint.run": "onSave",
"eslint.nodePath": "./node_modules",
"eslint.validate": [
"javascript",
"typescript"
]
"eslint.validate": ["javascript", "typescript"]
}
4 changes: 2 additions & 2 deletions sandbox/oauth-example/.yo-rc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@loopback/cli": {
"@sourceloop/cli": {
"packageManager": "npm",
"version": "4.1.0"
"version": "5.2.4"
}
}
Loading
Loading