@inrupt/solid-client-authn-browser 1.16.0 → 1.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/dist/ClientAuthentication.d.ts +4 -13
  2. package/dist/Session.d.ts +4 -4
  3. package/dist/dependencies.d.ts +1 -1
  4. package/dist/index.js +773 -28
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.mjs +746 -0
  7. package/dist/index.mjs.map +1 -0
  8. package/dist/login/oidc/AggregateOidcHandler.d.ts +2 -1
  9. package/dist/login/oidc/AggregateRedirectHandler.d.ts +2 -1
  10. package/dist/login/oidc/ClientRegistrar.d.ts +1 -1
  11. package/dist/login/oidc/IssuerConfigFetcher.d.ts +1 -1
  12. package/dist/login/oidc/OidcLoginHandler.d.ts +1 -1
  13. package/dist/login/oidc/Redirector.d.ts +1 -1
  14. package/dist/login/oidc/incomingRedirectHandler/AuthCodeRedirectHandler.d.ts +3 -6
  15. package/dist/login/oidc/incomingRedirectHandler/ErrorOidcHandler.d.ts +1 -1
  16. package/dist/login/oidc/incomingRedirectHandler/FallbackRedirectHandler.d.ts +1 -1
  17. package/dist/login/oidc/oidcHandlers/AuthorizationCodeWithPkceOidcHandler.d.ts +3 -6
  18. package/dist/login/oidc/oidcHandlers/OidcHandlerCanHandleTest.d.ts +1 -1
  19. package/dist/login/oidc/refresh/TokenRefresher.d.ts +2 -2
  20. package/dist/logout/buildRpInitiatedLogout.d.ts +2 -0
  21. package/dist/sessionInfo/SessionInfoManager.d.ts +4 -13
  22. package/dist/solid-client-authn.bundle.js +32 -2
  23. package/dist/solid-client-authn.bundle.js.map +1 -0
  24. package/dist/storage/BrowserStorage.d.ts +1 -1
  25. package/dist/storage/StorageUtility.d.ts +2 -1
  26. package/package.json +17 -17
  27. package/rollup.config.mjs +46 -0
  28. package/src/ClientAuthentication.spec.ts +4 -4
  29. package/src/ClientAuthentication.ts +8 -45
  30. package/src/Session.spec.ts +4 -4
  31. package/src/Session.ts +44 -13
  32. package/src/__mocks__/ClientAuthentication.ts +3 -3
  33. package/src/constant.ts +1 -1
  34. package/src/defaultSession.spec.ts +1 -1
  35. package/src/defaultSession.ts +5 -3
  36. package/src/dependencies.node.spec.ts +1 -1
  37. package/src/dependencies.spec.ts +1 -1
  38. package/src/dependencies.ts +10 -5
  39. package/src/index.browser.spec.ts +1 -1
  40. package/src/index.browser.ts +1 -1
  41. package/src/index.spec.ts +1 -1
  42. package/src/index.ts +1 -1
  43. package/src/login/__mocks__/LoginHandler.ts +2 -2
  44. package/src/login/oidc/AggregateOidcHandler.spec.ts +3 -5
  45. package/src/login/oidc/AggregateOidcHandler.ts +3 -3
  46. package/src/login/oidc/AggregateRedirectHandler.ts +3 -3
  47. package/src/login/oidc/ClientRegistrar.spec.ts +1 -1
  48. package/src/login/oidc/ClientRegistrar.ts +2 -2
  49. package/src/login/oidc/IssuerConfigFetcher.spec.ts +8 -4
  50. package/src/login/oidc/IssuerConfigFetcher.ts +12 -5
  51. package/src/login/oidc/OidcLoginHandler.spec.ts +3 -5
  52. package/src/login/oidc/OidcLoginHandler.ts +5 -3
  53. package/src/login/oidc/Redirector.spec.ts +1 -1
  54. package/src/login/oidc/Redirector.ts +2 -2
  55. package/src/login/oidc/__mocks__/ClientRegistrar.ts +2 -2
  56. package/src/login/oidc/__mocks__/IOidcHandler.ts +2 -2
  57. package/src/login/oidc/__mocks__/IOidcOptions.ts +2 -2
  58. package/src/login/oidc/__mocks__/IssuerConfigFetcher.ts +2 -2
  59. package/src/login/oidc/__mocks__/Redirector.ts +2 -2
  60. package/src/login/oidc/incomingRedirectHandler/AuthCodeRedirectHandler.spec.ts +37 -39
  61. package/src/login/oidc/incomingRedirectHandler/AuthCodeRedirectHandler.ts +31 -20
  62. package/src/login/oidc/incomingRedirectHandler/ErrorOidcHandler.spec.ts +3 -4
  63. package/src/login/oidc/incomingRedirectHandler/ErrorOidcHandler.ts +3 -3
  64. package/src/login/oidc/incomingRedirectHandler/FallbackRedirectHandler.spec.ts +3 -4
  65. package/src/login/oidc/incomingRedirectHandler/FallbackRedirectHandler.ts +2 -2
  66. package/src/login/oidc/oidcHandlers/AuthorizationCodeWithPkceOidcHandler.spec.ts +3 -3
  67. package/src/login/oidc/oidcHandlers/AuthorizationCodeWithPkceOidcHandler.ts +13 -51
  68. package/src/login/oidc/oidcHandlers/OidcHandlerCanHandleTest.ts +2 -2
  69. package/src/login/oidc/refresh/TokenRefresher.spec.ts +7 -6
  70. package/src/login/oidc/refresh/TokenRefresher.ts +6 -4
  71. package/src/login/oidc/refresh/__mocks__/TokenRefresher.ts +2 -2
  72. package/src/logout/{GeneralLogoutHandler.ts → buildRpInitiatedLogout.ts} +21 -20
  73. package/src/sessionInfo/SessionInfoManager.spec.ts +2 -2
  74. package/src/sessionInfo/SessionInfoManager.ts +13 -91
  75. package/src/sessionInfo/__mocks__/SessionInfoManager.ts +2 -2
  76. package/src/storage/BrowserStorage.spec.ts +1 -1
  77. package/src/storage/BrowserStorage.ts +2 -2
  78. package/src/storage/StorageUtility.ts +3 -2
  79. package/src/storage/__mocks__/LocalStorage.ts +1 -1
  80. package/src/util/UUIDGenerator.spec.ts +1 -1
  81. package/src/util/UuidGenerator.ts +1 -1
  82. package/src/util/__mocks__/UuidGenerator.ts +2 -2
  83. package/dist/ClientAuthentication.js +0 -80
  84. package/dist/ClientAuthentication.js.map +0 -1
  85. package/dist/Session.js +0 -150
  86. package/dist/Session.js.map +0 -1
  87. package/dist/constant.js +0 -7
  88. package/dist/constant.js.map +0 -1
  89. package/dist/defaultSession.js +0 -52
  90. package/dist/defaultSession.js.map +0 -1
  91. package/dist/dependencies.js +0 -41
  92. package/dist/dependencies.js.map +0 -1
  93. package/dist/index.browser.js +0 -28
  94. package/dist/index.browser.js.map +0 -1
  95. package/dist/login/oidc/AggregateOidcHandler.js +0 -10
  96. package/dist/login/oidc/AggregateOidcHandler.js.map +0 -1
  97. package/dist/login/oidc/AggregateRedirectHandler.js +0 -10
  98. package/dist/login/oidc/AggregateRedirectHandler.js.map +0 -1
  99. package/dist/login/oidc/ClientRegistrar.js +0 -47
  100. package/dist/login/oidc/ClientRegistrar.js.map +0 -1
  101. package/dist/login/oidc/IssuerConfigFetcher.js +0 -124
  102. package/dist/login/oidc/IssuerConfigFetcher.js.map +0 -1
  103. package/dist/login/oidc/OidcLoginHandler.js +0 -40
  104. package/dist/login/oidc/OidcLoginHandler.js.map +0 -1
  105. package/dist/login/oidc/Redirector.js +0 -17
  106. package/dist/login/oidc/Redirector.js.map +0 -1
  107. package/dist/login/oidc/__mocks__/IOidcOptions.d.ts +0 -2
  108. package/dist/login/oidc/__mocks__/IOidcOptions.js +0 -25
  109. package/dist/login/oidc/__mocks__/IOidcOptions.js.map +0 -1
  110. package/dist/login/oidc/incomingRedirectHandler/AuthCodeRedirectHandler.js +0 -91
  111. package/dist/login/oidc/incomingRedirectHandler/AuthCodeRedirectHandler.js.map +0 -1
  112. package/dist/login/oidc/incomingRedirectHandler/ErrorOidcHandler.js +0 -26
  113. package/dist/login/oidc/incomingRedirectHandler/ErrorOidcHandler.js.map +0 -1
  114. package/dist/login/oidc/incomingRedirectHandler/FallbackRedirectHandler.js +0 -20
  115. package/dist/login/oidc/incomingRedirectHandler/FallbackRedirectHandler.js.map +0 -1
  116. package/dist/login/oidc/oidcHandlers/AuthorizationCodeWithPkceOidcHandler.js +0 -56
  117. package/dist/login/oidc/oidcHandlers/AuthorizationCodeWithPkceOidcHandler.js.map +0 -1
  118. package/dist/login/oidc/oidcHandlers/OidcHandlerCanHandleTest.js +0 -47
  119. package/dist/login/oidc/oidcHandlers/OidcHandlerCanHandleTest.js.map +0 -1
  120. package/dist/login/oidc/refresh/TokenRefresher.js +0 -31
  121. package/dist/login/oidc/refresh/TokenRefresher.js.map +0 -1
  122. package/dist/logout/GeneralLogoutHandler.d.ts +0 -7
  123. package/dist/logout/GeneralLogoutHandler.js +0 -15
  124. package/dist/logout/GeneralLogoutHandler.js.map +0 -1
  125. package/dist/sessionInfo/SessionInfoManager.js +0 -96
  126. package/dist/sessionInfo/SessionInfoManager.js.map +0 -1
  127. package/dist/solid-client-authn.bundle.js.LICENSE.txt +0 -17
  128. package/dist/storage/BrowserStorage.js +0 -18
  129. package/dist/storage/BrowserStorage.js.map +0 -1
  130. package/dist/storage/StorageUtility.js +0 -10
  131. package/dist/storage/StorageUtility.js.map +0 -1
  132. package/dist/util/UuidGenerator.js +0 -10
  133. package/dist/util/UuidGenerator.js.map +0 -1
  134. package/licenses.csv +0 -147
  135. package/src/logout/GeneralLogoutHandler.spec.ts +0 -72
  136. package/src/logout/__mocks__/LogoutHandler.ts +0 -38
  137. package/webpack.browser.js +0 -39
  138. package/webpack.common.js +0 -42
  139. package/webpack.config.js +0 -28
  140. package/webpack.dev.js +0 -37
  141. package/webpack.prod.js +0 -23
package/licenses.csv DELETED
@@ -1,147 +0,0 @@
1
- "module name","license","repository"
2
- "@inrupt/oidc-dpop-client-browser@0.2.0","MIT",""
3
- "@inrupt/solid-client-authn-browser@0.2.0","MIT","https://github.com/inrupt/solid-client-authn"
4
- "@inrupt/solid-client-authn-core@0.2.0","MIT","https://github.com/inrupt/solid-client-authn"
5
- "@panva/asn1.js@1.0.0","MIT","https://github.com/panva/asn1.js"
6
- "@types/form-urlencoded@2.0.1","MIT","https://github.com/DefinitelyTyped/DefinitelyTyped"
7
- "@types/jjv@1.0.29","MIT","https://github.com/DefinitelyTyped/DefinitelyTyped"
8
- "@types/jsonwebtoken@8.5.0","MIT","https://github.com/DefinitelyTyped/DefinitelyTyped"
9
- "@types/lodash.clonedeep@4.5.6","MIT","https://github.com/DefinitelyTyped/DefinitelyTyped"
10
- "@types/lodash@4.14.161","MIT","https://github.com/DefinitelyTyped/DefinitelyTyped"
11
- "@types/node-jose@1.1.5","MIT","https://github.com/DefinitelyTyped/DefinitelyTyped"
12
- "@types/node@14.11.2","MIT","https://github.com/DefinitelyTyped/DefinitelyTyped"
13
- "@types/url-parse@1.4.3","MIT","https://github.com/DefinitelyTyped/DefinitelyTyped"
14
- "@types/uuid@8.3.0","MIT","https://github.com/DefinitelyTyped/DefinitelyTyped"
15
- "abstract-leveldown@0.12.4","MIT","https://github.com/rvagg/node-abstract-leveldown"
16
- "asn1.js@5.4.1","MIT","https://github.com/indutny/asn1.js"
17
- "base64-js@1.3.1","MIT","https://github.com/beatgammit/base64-js"
18
- "base64url@3.0.1","MIT","https://github.com/brianloveswords/base64url"
19
- "bl@0.8.2","MIT","https://github.com/rvagg/bl"
20
- "bn.js@4.11.9","MIT","https://github.com/indutny/bn.js"
21
- "bn.js@5.1.3","MIT","https://github.com/indutny/bn.js"
22
- "brorand@1.1.0","MIT","https://github.com/indutny/brorand"
23
- "browserify-aes@1.2.0","MIT","https://github.com/crypto-browserify/browserify-aes"
24
- "browserify-cipher@1.0.1","MIT","https://github.com/crypto-browserify/browserify-cipher"
25
- "browserify-des@1.0.2","MIT","https://github.com/crypto-browserify/browserify-des"
26
- "browserify-fs@1.0.0","MIT*","https://github.com/mafintosh/browserify-fs"
27
- "browserify-rsa@4.0.1","MIT","https://github.com/crypto-browserify/browserify-rsa"
28
- "browserify-sign@4.2.1","ISC","https://github.com/crypto-browserify/browserify-sign"
29
- "buffer-equal-constant-time@1.0.1","BSD-3-Clause","https://github.com/goinstant/buffer-equal-constant-time"
30
- "buffer-es6@4.9.3","MIT","https://github.com/calvinmetcalf/buffer-es6"
31
- "buffer-from@1.1.1","MIT","https://github.com/LinusU/buffer-from"
32
- "buffer-xor@1.0.3","MIT","https://github.com/crypto-browserify/buffer-xor"
33
- "buffer@5.6.0","MIT","https://github.com/feross/buffer"
34
- "build-module@1.0.7","ISC","https://github.com/bnwan/buildModule"
35
- "cipher-base@1.0.4","MIT","https://github.com/crypto-browserify/cipher-base"
36
- "clone@0.1.19","MIT","https://github.com/pvorb/node-clone"
37
- "concat-stream@1.6.2","MIT","https://github.com/maxogden/concat-stream"
38
- "core-js@2.6.11","MIT","https://github.com/zloirock/core-js"
39
- "core-util-is@1.0.2","MIT","https://github.com/isaacs/core-util-is"
40
- "create-ecdh@4.0.4","MIT","https://github.com/crypto-browserify/createECDH"
41
- "create-hash@1.2.0","MIT","https://github.com/crypto-browserify/createHash"
42
- "create-hmac@1.1.7","MIT","https://github.com/crypto-browserify/createHmac"
43
- "cross-fetch@3.0.6","MIT","https://github.com/lquixada/cross-fetch"
44
- "crypto-browserify@3.12.0","MIT","https://github.com/crypto-browserify/crypto-browserify"
45
- "crypto-js@3.3.0","MIT","https://github.com/brix/crypto-js"
46
- "crypto-random-string@3.3.0","MIT","https://github.com/sindresorhus/crypto-random-string"
47
- "deferred-leveldown@0.2.0","MIT","https://github.com/Level/deferred-leveldown"
48
- "des.js@1.0.1","MIT","https://github.com/indutny/des.js"
49
- "diffie-hellman@5.0.3","MIT","https://github.com/crypto-browserify/diffie-hellman"
50
- "ecdsa-sig-formatter@1.0.11","Apache-2.0","https://github.com/Brightspace/node-ecdsa-sig-formatter"
51
- "elliptic@6.5.3","MIT","https://github.com/indutny/elliptic"
52
- "errno@0.1.7","MIT","https://github.com/rvagg/node-errno"
53
- "es6-promise@4.2.8","MIT","https://github.com/stefanpenner/es6-promise"
54
- "evp_bytestokey@1.0.3","MIT","https://github.com/crypto-browserify/EVP_BytesToKey"
55
- "foreach@2.0.5","MIT","https://github.com/manuelstofer/foreach"
56
- "form-urlencoded@4.2.1","MIT","https://github.com/iambumblehead/form-urlencoded"
57
- "fwd-stream@1.0.4","MIT*","https://github.com/mafintosh/fwd-stream"
58
- "hash-base@3.1.0","MIT","https://github.com/crypto-browserify/hash-base"
59
- "hash.js@1.1.7","MIT","https://github.com/indutny/hash.js"
60
- "hmac-drbg@1.0.1","MIT","https://github.com/indutny/hmac-drbg"
61
- "idb-wrapper@1.7.2","MIT","https://github.com/jensarps/IDBWrapper"
62
- "ieee754@1.1.13","BSD-3-Clause","https://github.com/feross/ieee754"
63
- "indexof@0.0.1","MIT*",""
64
- "inherits@2.0.4","ISC","https://github.com/isaacs/inherits"
65
- "is-object@0.1.2","MIT","https://github.com/Colingo/is-object"
66
- "is@0.2.7","MIT*","https://github.com/enricomarino/is"
67
- "isarray@0.0.1","MIT","https://github.com/juliangruber/isarray"
68
- "isarray@1.0.0","MIT","https://github.com/juliangruber/isarray"
69
- "isbuffer@0.0.0","MIT","https://github.com/juliangruber/isbuffer"
70
- "jose@2.0.2","MIT","https://github.com/panva/jose"
71
- "jsonwebtoken@8.5.1","MIT","https://github.com/auth0/node-jsonwebtoken"
72
- "jwa@1.4.1","MIT","https://github.com/brianloveswords/node-jwa"
73
- "jws@3.2.2","MIT","https://github.com/brianloveswords/node-jws"
74
- "level-blobs@0.1.7","MIT*","https://github.com/mafintosh/level-blobs"
75
- "level-filesystem@1.2.0","MIT*","https://github.com/mafintosh/level-filesystem"
76
- "level-fix-range@1.0.2","MIT","https://github.com/dominictarr/level-fix-range"
77
- "level-fix-range@2.0.0","MIT","https://github.com/dominictarr/level-fix-range"
78
- "level-hooks@4.5.0","MIT*","https://github.com/dominictarr/level-hooks"
79
- "level-js@2.2.4","BSD-2-Clause","https://github.com/maxogden/level.js"
80
- "level-peek@1.0.6","MIT","https://github.com/dominictarr/level-peek"
81
- "level-sublevel@5.2.3","MIT","https://github.com/dominictarr/level-sublevel"
82
- "levelup@0.18.6","MIT","https://github.com/rvagg/node-levelup"
83
- "lodash.clonedeep@4.5.0","MIT","https://github.com/lodash/lodash"
84
- "lodash.includes@4.3.0","MIT","https://github.com/lodash/lodash"
85
- "lodash.isboolean@3.0.3","MIT","https://github.com/lodash/lodash"
86
- "lodash.isinteger@4.0.4","MIT","https://github.com/lodash/lodash"
87
- "lodash.isnumber@3.0.3","MIT","https://github.com/lodash/lodash"
88
- "lodash.isplainobject@4.0.6","MIT","https://github.com/lodash/lodash"
89
- "lodash.isstring@4.0.1","MIT","https://github.com/lodash/lodash"
90
- "lodash.once@4.1.1","MIT","https://github.com/lodash/lodash"
91
- "lodash@4.17.20","MIT","https://github.com/lodash/lodash"
92
- "long@4.0.0","Apache-2.0","https://github.com/dcodeIO/long.js"
93
- "ltgt@2.2.1","MIT","https://github.com/dominictarr/ltgt"
94
- "md5.js@1.3.5","MIT","https://github.com/crypto-browserify/md5.js"
95
- "miller-rabin@4.0.1","MIT","https://github.com/indutny/miller-rabin"
96
- "minimalistic-assert@1.0.1","ISC","https://github.com/calvinmetcalf/minimalistic-assert"
97
- "minimalistic-crypto-utils@1.0.1","MIT","https://github.com/indutny/minimalistic-crypto-utils"
98
- "ms@2.1.2","MIT","https://github.com/zeit/ms"
99
- "node-fetch@2.6.1","MIT","https://github.com/bitinn/node-fetch"
100
- "node-forge@0.10.0","(BSD-3-Clause OR GPL-2.0)","https://github.com/digitalbazaar/forge"
101
- "node-jose@2.0.0","Apache-2.0","https://github.com/cisco/node-jose"
102
- "object-keys@0.2.0","MIT","https://github.com/ljharb/object-keys"
103
- "object-keys@0.4.0","MIT","https://github.com/ljharb/object-keys"
104
- "octal@1.0.0","MIT","https://github.com/mafintosh/octal"
105
- "oidc-client@1.10.1","Apache-2.0","https://github.com/IdentityModel/oidc-client-js"
106
- "once@1.4.0","ISC","https://github.com/isaacs/once"
107
- "pako@1.0.11","(MIT AND Zlib)","https://github.com/nodeca/pako"
108
- "parse-asn1@5.1.6","ISC","https://github.com/crypto-browserify/parse-asn1"
109
- "pbkdf2@3.1.1","MIT","https://github.com/crypto-browserify/pbkdf2"
110
- "process-es6@0.11.6","MIT","https://github.com/calvinmetcalf/node-process-es6"
111
- "process-nextick-args@2.0.1","MIT","https://github.com/calvinmetcalf/process-nextick-args"
112
- "process@0.11.10","MIT","https://github.com/shtylman/node-process"
113
- "prr@0.0.0","MIT","https://github.com/rvagg/prr"
114
- "prr@1.0.1","MIT","https://github.com/rvagg/prr"
115
- "public-encrypt@4.0.3","MIT","https://github.com/crypto-browserify/publicEncrypt"
116
- "querystringify@2.2.0","MIT","https://github.com/unshiftio/querystringify"
117
- "randombytes@2.1.0","MIT","https://github.com/crypto-browserify/randombytes"
118
- "randomfill@1.0.4","MIT","https://github.com/crypto-browserify/randomfill"
119
- "readable-stream@1.0.34","MIT","https://github.com/isaacs/readable-stream"
120
- "readable-stream@1.1.14","MIT","https://github.com/isaacs/readable-stream"
121
- "readable-stream@2.3.7","MIT","https://github.com/nodejs/readable-stream"
122
- "readable-stream@3.6.0","MIT","https://github.com/nodejs/readable-stream"
123
- "requires-port@1.0.0","MIT","https://github.com/unshiftio/requires-port"
124
- "ripemd160@2.0.2","MIT","https://github.com/crypto-browserify/ripemd160"
125
- "rollup-plugin-node-builtins@2.1.2","ISC","https://github.com/calvinmetcalf/rollup-plugin-node-builtins"
126
- "safe-buffer@5.1.2","MIT","https://github.com/feross/safe-buffer"
127
- "safe-buffer@5.2.1","MIT","https://github.com/feross/safe-buffer"
128
- "safer-buffer@2.1.2","MIT","https://github.com/ChALkeR/safer-buffer"
129
- "semver@2.3.2","BSD*","https://github.com/isaacs/node-semver"
130
- "semver@5.7.1","ISC","https://github.com/npm/node-semver"
131
- "sha.js@2.4.11","(MIT AND BSD-3-Clause)","https://github.com/crypto-browserify/sha.js"
132
- "string-range@1.2.2","MIT","https://github.com/dominictarr/string-range"
133
- "string_decoder@0.10.31","MIT","https://github.com/rvagg/string_decoder"
134
- "string_decoder@1.1.1","MIT","https://github.com/nodejs/string_decoder"
135
- "tslib@1.13.0","0BSD","https://github.com/Microsoft/tslib"
136
- "type-fest@0.8.1","(MIT OR CC0-1.0)","https://github.com/sindresorhus/type-fest"
137
- "typedarray-to-buffer@1.0.4","MIT","https://github.com/feross/typedarray-to-buffer"
138
- "typedarray@0.0.6","MIT","https://github.com/substack/typedarray"
139
- "url-parse@1.4.7","MIT","https://github.com/unshiftio/url-parse"
140
- "util-deprecate@1.0.2","MIT","https://github.com/TooTallNate/util-deprecate"
141
- "uuid@3.4.0","MIT","https://github.com/uuidjs/uuid"
142
- "uuid@8.3.1","MIT","https://github.com/uuidjs/uuid"
143
- "wrappy@1.0.2","ISC","https://github.com/npm/wrappy"
144
- "xtend@2.0.6","MIT","https://github.com/Raynos/xtend"
145
- "xtend@2.1.2","MIT","https://github.com/Raynos/xtend"
146
- "xtend@2.2.0","MIT","https://github.com/Raynos/xtend"
147
- "xtend@3.0.0","MIT","https://github.com/Raynos/xtend"
@@ -1,72 +0,0 @@
1
- //
2
- // Copyright 2022 Inrupt Inc.
3
- //
4
- // Permission is hereby granted, free of charge, to any person obtaining a copy
5
- // of this software and associated documentation files (the "Software"), to deal in
6
- // the Software without restriction, including without limitation the rights to use,
7
- // copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
8
- // Software, and to permit persons to whom the Software is furnished to do so,
9
- // subject to the following conditions:
10
- //
11
- // The above copyright notice and this permission notice shall be included in
12
- // all copies or substantial portions of the Software.
13
- //
14
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
15
- // INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
16
- // PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
17
- // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
18
- // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
19
- // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
- //
21
-
22
- import { it, describe, expect } from "@jest/globals";
23
- import { mockStorageUtility } from "@inrupt/solid-client-authn-core";
24
- import LogoutHandler from "./GeneralLogoutHandler";
25
- import { mockSessionInfoManager } from "../sessionInfo/__mocks__/SessionInfoManager";
26
-
27
- describe("GeneralLogoutHandler", () => {
28
- const defaultMocks = {
29
- sessionManager: mockSessionInfoManager(mockStorageUtility({})),
30
- };
31
- function getInitialisedHandler(
32
- mocks: Partial<typeof defaultMocks> = defaultMocks
33
- ): LogoutHandler {
34
- return new LogoutHandler(
35
- mocks.sessionManager ?? defaultMocks.sessionManager
36
- );
37
- }
38
-
39
- describe("canHandle", () => {
40
- it("should always be able to handle logout", async () => {
41
- const logoutHandler = getInitialisedHandler();
42
- await expect(logoutHandler.canHandle()).resolves.toBe(true);
43
- });
44
- });
45
-
46
- describe("handle", () => {
47
- it("should clear the local storage (both secure and not secure) when logging out", async () => {
48
- const nonEmptyStorage = mockStorageUtility({
49
- someUser: { someKey: "someValue" },
50
- });
51
- await nonEmptyStorage.setForUser(
52
- "someUser",
53
- { someKey: "someValue" },
54
- { secure: true }
55
- );
56
- const logoutHandler = getInitialisedHandler({
57
- sessionManager: mockSessionInfoManager(nonEmptyStorage),
58
- });
59
- await logoutHandler.handle("someUser");
60
- await expect(
61
- nonEmptyStorage.getForUser("someUser", "someKey", { secure: true })
62
- ).resolves.toBeUndefined();
63
- await expect(
64
- nonEmptyStorage.getForUser("someUser", "someKey", { secure: false })
65
- ).resolves.toBeUndefined();
66
- // This test is only necessary until the key is stored safely
67
- await expect(
68
- nonEmptyStorage.get("clientKey", { secure: false })
69
- ).resolves.toBeUndefined();
70
- });
71
- });
72
- });
@@ -1,38 +0,0 @@
1
- //
2
- // Copyright 2022 Inrupt Inc.
3
- //
4
- // Permission is hereby granted, free of charge, to any person obtaining a copy
5
- // of this software and associated documentation files (the "Software"), to deal in
6
- // the Software without restriction, including without limitation the rights to use,
7
- // copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
8
- // Software, and to permit persons to whom the Software is furnished to do so,
9
- // subject to the following conditions:
10
- //
11
- // The above copyright notice and this permission notice shall be included in
12
- // all copies or substantial portions of the Software.
13
- //
14
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
15
- // INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
16
- // PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
17
- // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
18
- // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
19
- // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
- //
21
-
22
- import {
23
- ILogoutHandler,
24
- IStorageUtility,
25
- } from "@inrupt/solid-client-authn-core";
26
- import { jest } from "@jest/globals";
27
- import { clear } from "../../sessionInfo/SessionInfoManager";
28
-
29
- export const mockLogoutHandler = (
30
- storageUtility: IStorageUtility
31
- ): ILogoutHandler => {
32
- return {
33
- canHandle: jest.fn(async (_localUserId: string) => Promise.resolve(true)),
34
- handle: jest.fn(async (localUserId: string) => {
35
- return clear(localUserId, storageUtility);
36
- }),
37
- };
38
- };
@@ -1,39 +0,0 @@
1
- //
2
- // Copyright 2022 Inrupt Inc.
3
- //
4
- // Permission is hereby granted, free of charge, to any person obtaining a copy
5
- // of this software and associated documentation files (the "Software"), to deal in
6
- // the Software without restriction, including without limitation the rights to use,
7
- // copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
8
- // Software, and to permit persons to whom the Software is furnished to do so,
9
- // subject to the following conditions:
10
- //
11
- // The above copyright notice and this permission notice shall be included in
12
- // all copies or substantial portions of the Software.
13
- //
14
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
15
- // INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
16
- // PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
17
- // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
18
- // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
19
- // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
- //
21
- const { merge } = require("webpack-merge");
22
- const path = require("path");
23
-
24
- const commonConfig = require("./webpack.common.js");
25
-
26
- module.exports = () => {
27
- const envConfig = require(`./webpack.prod.js`);
28
-
29
- const browserConfig = {
30
- output: {
31
- libraryTarget: "var",
32
- library: "solidClientAuthentication",
33
- filename: "solid-client-authn.bundle.js",
34
- path: path.resolve(__dirname, "dist"),
35
- },
36
- };
37
-
38
- return merge(commonConfig, envConfig, browserConfig);
39
- };
package/webpack.common.js DELETED
@@ -1,42 +0,0 @@
1
- //
2
- // Copyright 2022 Inrupt Inc.
3
- //
4
- // Permission is hereby granted, free of charge, to any person obtaining a copy
5
- // of this software and associated documentation files (the "Software"), to deal in
6
- // the Software without restriction, including without limitation the rights to use,
7
- // copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
8
- // Software, and to permit persons to whom the Software is furnished to do so,
9
- // subject to the following conditions:
10
- //
11
- // The above copyright notice and this permission notice shall be included in
12
- // all copies or substantial portions of the Software.
13
- //
14
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
15
- // INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
16
- // PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
17
- // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
18
- // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
19
- // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
- //
21
- module.exports = {
22
- entry: "./src/index.browser.ts",
23
- module: {
24
- rules: [
25
- {
26
- test: /\.tsx?$/,
27
- use: [
28
- {
29
- loader: "ts-loader",
30
- options: {
31
- configFile: "tsconfig.json",
32
- },
33
- },
34
- ],
35
- exclude: /node_modules/,
36
- },
37
- ],
38
- },
39
- resolve: {
40
- extensions: [".tsx", ".ts", ".js"],
41
- },
42
- };
package/webpack.config.js DELETED
@@ -1,28 +0,0 @@
1
- //
2
- // Copyright 2022 Inrupt Inc.
3
- //
4
- // Permission is hereby granted, free of charge, to any person obtaining a copy
5
- // of this software and associated documentation files (the "Software"), to deal in
6
- // the Software without restriction, including without limitation the rights to use,
7
- // copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
8
- // Software, and to permit persons to whom the Software is furnished to do so,
9
- // subject to the following conditions:
10
- //
11
- // The above copyright notice and this permission notice shall be included in
12
- // all copies or substantial portions of the Software.
13
- //
14
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
15
- // INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
16
- // PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
17
- // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
18
- // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
19
- // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
- //
21
- const { merge } = require("webpack-merge");
22
-
23
- const commonConfig = require("./webpack.common.js");
24
-
25
- module.exports = ({ env, addon }) => {
26
- const envConfig = require(`./webpack.${env}.js`);
27
- return merge(commonConfig, envConfig);
28
- };
package/webpack.dev.js DELETED
@@ -1,37 +0,0 @@
1
- //
2
- // Copyright 2022 Inrupt Inc.
3
- //
4
- // Permission is hereby granted, free of charge, to any person obtaining a copy
5
- // of this software and associated documentation files (the "Software"), to deal in
6
- // the Software without restriction, including without limitation the rights to use,
7
- // copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
8
- // Software, and to permit persons to whom the Software is furnished to do so,
9
- // subject to the following conditions:
10
- //
11
- // The above copyright notice and this permission notice shall be included in
12
- // all copies or substantial portions of the Software.
13
- //
14
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
15
- // INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
16
- // PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
17
- // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
18
- // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
19
- // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
- //
21
- const path = require("path");
22
- const HtmlWebpackPlugin = require("html-webpack-plugin");
23
-
24
- module.exports = {
25
- mode: "development",
26
- devtool: "inline-source-map",
27
- devServer: {
28
- contentBase: path.join(__dirname, "browserDist"),
29
- port: 9000,
30
- },
31
- plugins: [
32
- new HtmlWebpackPlugin({
33
- title: "Solid Authenticator Test Page",
34
- template: "./src/index.html",
35
- }),
36
- ],
37
- };
package/webpack.prod.js DELETED
@@ -1,23 +0,0 @@
1
- //
2
- // Copyright 2022 Inrupt Inc.
3
- //
4
- // Permission is hereby granted, free of charge, to any person obtaining a copy
5
- // of this software and associated documentation files (the "Software"), to deal in
6
- // the Software without restriction, including without limitation the rights to use,
7
- // copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
8
- // Software, and to permit persons to whom the Software is furnished to do so,
9
- // subject to the following conditions:
10
- //
11
- // The above copyright notice and this permission notice shall be included in
12
- // all copies or substantial portions of the Software.
13
- //
14
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
15
- // INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
16
- // PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
17
- // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
18
- // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
19
- // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
- //
21
- module.exports = {
22
- mode: "production",
23
- };