Skip to content
Open

V2 #24

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
83496ec
refactor && add sessionStore functionality && sso
stefanpante Feb 12, 2020
9b16be5
fix bugs & update inner workings
stefanpante Feb 25, 2020
245e3b7
updated readm
stefanpante Feb 25, 2020
feba122
add trust proxy
stefanpante Feb 25, 2020
cec6ad1
fix authentication methods table
stefanpante Feb 25, 2020
5543486
fix authentication methods table
stefanpante Feb 25, 2020
668aa74
update readme and use hooks
stefanpante Feb 26, 2020
15be8dc
update readme and use hooks
stefanpante Feb 26, 2020
3b25a1f
- update readme
stefanpante Feb 27, 2020
17a4ad1
remove unused dependencies & files
stefanpante Feb 27, 2020
fbc54e5
2.0.0-0
stefanpante Feb 27, 2020
43a61f7
change build plan to support down till 8
stefanpante Mar 3, 2020
9243327
fix casing
stefanpante Mar 3, 2020
d1b07de
2.0.0-1
stefanpante Mar 3, 2020
950cc0d
wrong default causes problems (should be array instead of string)
stefanpante Mar 9, 2020
fae9150
Use default authentication method in SSO redirect URL for low session…
PrinceAnsong Apr 6, 2020
df88bb6
2.0.0-2
stefanpante Apr 6, 2020
906f75b
Fix typo in highest assurance level search loop (#26)
PrinceAnsong Apr 7, 2020
c21aa08
Fix naming of authentication method param during logout
PrinceAnsong Jun 11, 2020
3758b4d
Merge pull request #27 from PrinceAnsong/bugfix/fix-renamed-authentic…
Jan-Bart Jun 11, 2020
249b584
Version bump
Jan-Bart Jun 11, 2020
d2a0abe
2.0.0-4
Jan-Bart Jun 11, 2020
c3346de
Delete sessions after successful logout instead of before logout
PrinceAnsong Jun 18, 2020
1964474
Merge pull request #28 from PrinceAnsong/bugfix/delete-sessions-after…
Jan-Bart Jun 19, 2020
ae15cfd
2.0.0-5
Jan-Bart Jun 22, 2020
3c24236
hinted login is workiung (#32)
stefanpante Apr 29, 2021
0f47412
2.1.0
stefanpante Apr 29, 2021
757ecf1
add logger
stefanpante Jun 8, 2021
31081d2
2.1.1-0
stefanpante Jun 8, 2021
5222193
add debug info
stefanpante Jun 8, 2021
2e0add8
2.1.1-1
stefanpante Jun 8, 2021
76ab0ff
update logging
stefanpante Jun 8, 2021
f6297eb
2.1.1-2
stefanpante Jun 8, 2021
65bb907
add additional login, change itsme to high
stefanpante Jun 8, 2021
377cfde
2.1.1-3
stefanpante Jun 8, 2021
672adce
revert itsme to high
stefanpante Jun 8, 2021
f6f11eb
2.1.1-4
stefanpante Jun 8, 2021
17ce05e
add logs to sso middleware
stefanpante Jun 21, 2021
b375496
give users the ability to seit save_consent to false
stefanpante Nov 18, 2021
4de0437
2.1.1
stefanpante Nov 18, 2021
81c01cc
2.2.0
stefanpante Nov 18, 2021
56a0ba7
add force auth param
stefanpante Nov 30, 2021
95dbb4f
2.3.0
stefanpante Nov 30, 2021
f0c4395
iam-aprofiel-phone method
vademo May 23, 2022
837eeb8
Merge pull request #53 from digipolisantwerp/feature/v2AddAuthMethod
Jan-Bart May 31, 2022
d35431c
2.3.1
Jan-Bart Jun 28, 2022
379e150
Update package.lock + add dist folder for release
Jan-Bart Aug 11, 2022
cd3590b
Added dist
Jan-Bart Aug 11, 2022
4f7cad0
🔧 Added publishConfig to prevent publishing to internal registry
Jan-Bart Aug 11, 2022
d9b4a53
Fix auth_method astad.aprofiel.v1
Jan-Bart Nov 17, 2022
8d53a09
2.3.3
Jan-Bart Nov 17, 2022
35ad62c
Added test and documentation upgrade
Jan-Bart Nov 17, 2022
dcf7f1f
2.3.4
Jan-Bart Nov 17, 2022
72524cb
Merge pull request #55 from digipolisantwerp/bug/ACAPP-434
Jan-Bart Nov 17, 2022
28c8e97
chore: update dependencies + add lintr + add github workflows
horstenwillem Jan 30, 2023
fe6ded4
add Typescript types
horstenwillem Jan 30, 2023
9f56c3f
add .github folder to npmignore
horstenwillem Jan 30, 2023
756ee58
Merge pull request #61 from horstenwillem/chore/maintenance
Jan-Bart Aug 16, 2023
4da4b53
Add configurable fromUrl domain check
osamah-dgp Feb 15, 2024
b950b41
Fix syntax error in readme docs
osamah-dgp Feb 15, 2024
5a5704b
Fix linting issues
osamah-dgp Feb 15, 2024
b97e906
Add test checking fromUrl logic, fix existing tests, add invalid url …
osamah-dgp Feb 15, 2024
81d6dd8
Merge pull request #72 from osamah-dgp/ASTAD-28445-open-redirect-issu…
Jan-Bart Feb 15, 2024
4ff199e
2.4.0
Jan-Bart Feb 19, 2024
9d71102
Updated changelog
Jan-Bart Feb 19, 2024
efeb6cb
Fix ts issues
osamah-dgp Feb 20, 2024
c56fdb6
Small lint fix
osamah-dgp Feb 20, 2024
9acbf7d
Add minimum node 15 requirement
osamah-dgp Feb 20, 2024
b076602
Merge pull request #73 from osamah-dgp/ASTAD-28445-open-redirect-issu…
Jan-Bart Feb 20, 2024
a3aa530
Updated lock-file
Jan-Bart Feb 20, 2024
4785a8e
2.4.1
Jan-Bart Feb 20, 2024
191786d
Add crash handler to failed refresh calls and additional error logging
osamah-dgp Mar 6, 2024
27447ff
Lint fixes
osamah-dgp Mar 6, 2024
096f06d
Merge pull request #74 from osamah-dgp/ASTAD-28488-crash-fixes
Jan-Bart Mar 7, 2024
1dbff22
2.4.2
Jan-Bart Mar 7, 2024
5e2e6bd
Fix ASTAD-28929 open redirect
May 7, 2025
52c36c3
2.4.3-0
May 7, 2025
befd0d0
Fix open redirect on logout for users without session
May 7, 2025
a1e5c3b
2.4.3-1
May 7, 2025
0ad2371
2.5.0
May 15, 2025
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
27 changes: 27 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "18"
}
}
]
],
"env": {
"test": {
"plugins": [
"istanbul"
]
}
},
"plugins": [
[
"@babel/plugin-transform-runtime",
{
"corejs": 2
}
]
]
}
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
dist
coverage
.nyc_output
examples
292 changes: 19 additions & 273 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,273 +1,19 @@
{ "ecmaVersion" : 6,
"env" : { "es6" : true,
"mocha" : true,
"node" : true
},
"globals" : { "__base" : true },
"parserOptions" : { "ecmaFeatures" : { "arrowFunctions" : true,
"binaryLiterals" : false,
"blockBindings" : true,
"generators" : true,
"octalLiterals" : false,
"templateStrings" : true
} },
"rules" : { "accessor-pairs" : 0,
"array-bracket-spacing" : 0,
"block-scoped-var" : 2,
"brace-style" : [ 2,
"1tbs",
{ "allowSingleLine" : true }
],
"callback-return" : 0,
"camelcase" : [ 2,
{ "properties" : "never" }
],
"comma-dangle" : [ 2,
"never"
],
"comma-spacing" : [ 2,
{ "after" : true,
"before" : false
}
],
"comma-style" : [ 2,
"last"
],
"complexity" : [ 0,
11
],
"computed-property-spacing" : 0,
"consistent-return" : 0,
"consistent-this" : 0,
"curly" : [ 2,
"multi-line"
],
"default-case" : 2,
"dot-location" : 0,
"dot-notation" : [ 2,
{ "allowKeywords" : true }
],
"eol-last" : 2,
"eqeqeq" : [ 2,
"allow-null"
],
"func-names" : 1,
"func-style" : 0,
"guard-for-in" : 2,
"handle-callback-err" : 0,
"id-length" : [ 2,
{ "exceptions" : [ "_" ],
"min" : 2,
"properties" : "never"
}
],
"id-match" : 0,
"indent" : [ 2,
2
],
"init-declarations" : 0,
"jsx-quotes" : 2,
"key-spacing" : [ 2,
{ "afterColon" : true,
"beforeColon" : false
}
],
"keyword-spacing" : [ 2,
{ "after" : true,
"before" : true,
"overrides" : { "case" : { "after" : true },
"return" : { "after" : true },
"throw" : { "after" : true }
}
}
],
"linebreak-style" : 0,
"lines-around-comment" : 0,
"max-depth" : [ 0,
4
],
"max-len" : [ 0,
80,
4
],
"max-nested-callbacks" : 0,
"max-params" : [ 0,
3
],
"max-statements" : [ 0,
10
],
"new-cap" : [ 2,
{ "newIsCap" : true }
],
"new-parens" : 0,
"newline-after-var" : 0,
"no-alert" : 1,
"no-array-constructor" : 0,
"no-bitwise" : 0,
"no-caller" : 2,
"no-catch-shadow" : 0,
"no-cond-assign" : [ 2,
"always"
],
"no-console" : 0,
"no-constant-condition" : 1,
"no-continue" : 0,
"no-control-regex" : 2,
"no-debugger" : 1,
"no-delete-var" : 2,
"no-div-regex" : 0,
"no-dupe-args" : 2,
"no-dupe-keys" : 2,
"no-duplicate-case" : 2,
"no-else-return" : 2,
"no-empty" : 2,
"no-eq-null" : 0,
"no-eval" : 2,
"no-ex-assign" : 2,
"no-extend-native" : 2,
"no-extra-bind" : 2,
"no-extra-boolean-cast" : 0,
"no-extra-parens" : [ 2,
"functions"
],
"no-extra-semi" : 2,
"no-fallthrough" : 2,
"no-floating-decimal" : 2,
"no-func-assign" : 2,
"no-implicit-coercion" : 0,
"no-implied-eval" : 2,
"no-inline-comments" : 0,
"no-inner-declarations" : 2,
"no-invalid-regexp" : 2,
"no-invalid-this" : 0,
"no-irregular-whitespace" : 2,
"no-iterator" : 2,
"no-label-var" : 0,
"no-labels" : 2,
"no-lone-blocks" : 2,
"no-lonely-if" : 0,
"no-loop-func" : 2,
"no-mixed-requires" : [ 0,
false
],
"no-mixed-spaces-and-tabs" : 2,
"no-multi-spaces" : 2,
"no-multi-str" : 2,
"no-multiple-empty-lines" : [ 2,
{
"max" : 2,
"maxBOF" : 1,
"maxEOF" : 1
}
],
"no-native-reassign" : 2,
"no-negated-in-lhs" : 2,
"no-nested-ternary" : 2,
"no-new" : 2,
"no-new-func" : 2,
"no-new-object" : 2,
"no-new-require" : 0,
"no-new-wrappers" : 2,
"no-obj-calls" : 2,
"no-octal" : 2,
"no-octal-escape" : 2,
"no-param-reassign" : 0,
"no-path-concat" : 0,
"no-plusplus" : 0,
"no-process-env" : 0,
"no-process-exit" : 0,
"no-proto" : 2,
"no-redeclare" : 2,
"no-regex-spaces" : 2,
"no-restricted-modules" : 0,
"no-return-assign" : 2,
"no-script-url" : 2,
"no-self-compare" : 2,
"no-sequences" : 2,
"no-shadow" : 2,
"no-shadow-restricted-names" : 2,
"no-spaced-func" : 2,
"no-sparse-arrays" : 2,
"no-sync" : 0,
"no-ternary" : 0,
"no-throw-literal" : 2,
"no-trailing-spaces" : 2,
"no-undef" : 2,
"no-undef-init" : 0,
"no-undefined" : 0,
"no-underscore-dangle" : 0,
"no-unexpected-multiline" : 0,
"no-unneeded-ternary" : 0,
"no-unreachable" : 2,
"no-unused-expressions" : 2,
"no-unused-vars" : [ 2,
{ "args" : "after-used",
"vars" : "local"
}
],
"no-use-before-define" : 2,
"no-useless-call" : 0,
"no-void" : 0,
"no-warning-comments" : [ 0,
{ "location" : "start",
"terms" : [ "todo",
"fixme",
"xxx"
]
}
],
"no-with" : 2,
"object-curly-spacing" : 0,
"one-var" : [ 2,
"never"
],
"operator-assignment" : 0,
"operator-linebreak" : 0,
"padded-blocks" : 0,
"quote-props" : 0,
"quotes" : [ 2,
"single",
"avoid-escape"
],
"radix" : 2,
"semi" : [ 2,
"always"
],
"semi-spacing" : [ 2,
{ "after" : true,
"before" : false
}
],
"sort-vars" : 0,
"space-before-blocks" : 2,
"space-before-function-paren" : [ 2,
"never"
],
"space-in-parens" : 0,
"space-infix-ops" : 2,
"space-unary-ops" : 0,
"spaced-comment" : [ 2,
"always",
{ "exceptions" : [ "-",
"+"
],
"markers" : [ "=",
"!"
]
}
],
"strict" : [ 2,
"global"
],
"use-isnan" : 2,
"valid-jsdoc" : 0,
"valid-typeof" : 2,
"vars-on-top" : 0,
"wrap-iife" : [ 2,
"any"
],
"wrap-regex" : 0,
"yoda" : 2
}
}
{
"extends": "airbnb-base",
"env": {
"es6": true,
"node": true,
"mocha": true
},
"rules": {
"import/prefer-default-export": "off",
"object-curly-newline": "off",
"no-throw-literal": "off",
"no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_"
}
]
}
}
26 changes: 26 additions & 0 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Continuous Integration

on: [pull_request]

jobs:
build:
name: Sanitize & Tests
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [15.x, 16.x, 18.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install

- run: npm run lint
- run: npm run build
- run: npm run test
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ build/Release
# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules

dist/
# Editors
*.sublime*
nbproject/*
Expand All @@ -44,3 +44,4 @@ nbproject/*
# Sass /
**\.sass-cache
Gemfile.lock
.env
18 changes: 17 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
examples
# Eslint configuration
.eslintignore
.eslintrc

# Build configuration
.babelrc
rollup.config.js
.travis.yml

# Tests
test

# Examples
examples

# Workflows
.github
3 changes: 3 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@istanbuljs/nyc-config-babel"
}
Loading