@inrupt/solid-client-authn-browser 1.11.9-alpha.1 → 1.11.9-alpha.4

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 (262) hide show
  1. package/dist/index.es.js +4 -352
  2. package/dist/index.es.js.map +1 -0
  3. package/dist/index.js +12 -360
  4. package/dist/index.js.map +1 -1
  5. package/dist/solid-client-authn.bundle.js +14 -363
  6. package/dist/solid-client-authn.bundle.js.map +1 -0
  7. package/package.json +8 -5
  8. package/.eslintrc.js +0 -16
  9. package/NOTICE +0 -5
  10. package/coverage/clover.xml +0 -547
  11. package/coverage/coverage-final.json +0 -28
  12. package/coverage/lcov-report/base.css +0 -224
  13. package/coverage/lcov-report/block-navigation.js +0 -87
  14. package/coverage/lcov-report/favicon.png +0 -0
  15. package/coverage/lcov-report/index.html +0 -266
  16. package/coverage/lcov-report/prettify.css +0 -1
  17. package/coverage/lcov-report/prettify.js +0 -2
  18. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  19. package/coverage/lcov-report/sorter.js +0 -196
  20. package/coverage/lcov-report/src/ClientAuthentication.ts.html +0 -631
  21. package/coverage/lcov-report/src/Session.ts.html +0 -1435
  22. package/coverage/lcov-report/src/constant.ts.html +0 -163
  23. package/coverage/lcov-report/src/defaultSession.ts.html +0 -460
  24. package/coverage/lcov-report/src/dependencies.ts.html +0 -400
  25. package/coverage/lcov-report/src/iframe.ts.html +0 -394
  26. package/coverage/lcov-report/src/index.browser.ts.html +0 -157
  27. package/coverage/lcov-report/src/index.html +0 -206
  28. package/coverage/lcov-report/src/login/AggregateLoginHandler.ts.html +0 -226
  29. package/coverage/lcov-report/src/login/index.html +0 -116
  30. package/coverage/lcov-report/src/login/oidc/AggregateOidcHandler.ts.html +0 -226
  31. package/coverage/lcov-report/src/login/oidc/ClientRegistrar.ts.html +0 -415
  32. package/coverage/lcov-report/src/login/oidc/IssuerConfigFetcher.ts.html +0 -646
  33. package/coverage/lcov-report/src/login/oidc/OidcLoginHandler.ts.html +0 -436
  34. package/coverage/lcov-report/src/login/oidc/Redirector.ts.html +0 -229
  35. package/coverage/lcov-report/src/login/oidc/index.html +0 -176
  36. package/coverage/lcov-report/src/login/oidc/oidcHandlers/AuthorizationCodeWithPkceOidcHandler.ts.html +0 -478
  37. package/coverage/lcov-report/src/login/oidc/oidcHandlers/OidcHandlerCanHandleTest.ts.html +0 -319
  38. package/coverage/lcov-report/src/login/oidc/oidcHandlers/index.html +0 -131
  39. package/coverage/lcov-report/src/login/oidc/redirectHandler/AggregateRedirectHandler.ts.html +0 -226
  40. package/coverage/lcov-report/src/login/oidc/redirectHandler/AuthCodeRedirectHandler.ts.html +0 -667
  41. package/coverage/lcov-report/src/login/oidc/redirectHandler/ErrorOidcHandler.ts.html +0 -283
  42. package/coverage/lcov-report/src/login/oidc/redirectHandler/FallbackRedirectHandler.ts.html +0 -265
  43. package/coverage/lcov-report/src/login/oidc/redirectHandler/index.html +0 -161
  44. package/coverage/lcov-report/src/login/oidc/refresh/TokenRefresher.ts.html +0 -385
  45. package/coverage/lcov-report/src/login/oidc/refresh/index.html +0 -116
  46. package/coverage/lcov-report/src/login/webid/WebIdLoginHandler.ts.html +0 -250
  47. package/coverage/lcov-report/src/login/webid/index.html +0 -116
  48. package/coverage/lcov-report/src/logout/GeneralLogoutHandler.ts.html +0 -220
  49. package/coverage/lcov-report/src/logout/index.html +0 -116
  50. package/coverage/lcov-report/src/sessionInfo/SessionInfoManager.ts.html +0 -775
  51. package/coverage/lcov-report/src/sessionInfo/index.html +0 -116
  52. package/coverage/lcov-report/src/storage/BrowserStorage.ts.html +0 -229
  53. package/coverage/lcov-report/src/storage/StorageUtility.ts.html +0 -214
  54. package/coverage/lcov-report/src/storage/index.html +0 -131
  55. package/coverage/lcov-report/src/util/UuidGenerator.ts.html +0 -226
  56. package/coverage/lcov-report/src/util/index.html +0 -131
  57. package/coverage/lcov-report/src/util/urlPath.ts.html +0 -208
  58. package/coverage/lcov.info +0 -1001
  59. package/dist/ClientAuthentication.js +0 -64
  60. package/dist/ClientAuthentication.js.map +0 -1
  61. package/dist/Session.js +0 -165
  62. package/dist/Session.js.map +0 -1
  63. package/dist/constant.js +0 -7
  64. package/dist/constant.js.map +0 -1
  65. package/dist/defaultSession.js +0 -48
  66. package/dist/defaultSession.js.map +0 -1
  67. package/dist/dependencies.js +0 -41
  68. package/dist/dependencies.js.map +0 -1
  69. package/dist/iframe.js +0 -43
  70. package/dist/iframe.js.map +0 -1
  71. package/dist/index.browser.d.ts +0 -1
  72. package/dist/index.browser.js +0 -28
  73. package/dist/index.browser.js.map +0 -1
  74. package/dist/login/AggregateLoginHandler.js +0 -10
  75. package/dist/login/AggregateLoginHandler.js.map +0 -1
  76. package/dist/login/oidc/AggregateOidcHandler.js +0 -10
  77. package/dist/login/oidc/AggregateOidcHandler.js.map +0 -1
  78. package/dist/login/oidc/ClientRegistrar.js +0 -51
  79. package/dist/login/oidc/ClientRegistrar.js.map +0 -1
  80. package/dist/login/oidc/IssuerConfigFetcher.js +0 -124
  81. package/dist/login/oidc/IssuerConfigFetcher.js.map +0 -1
  82. package/dist/login/oidc/OidcLoginHandler.js +0 -40
  83. package/dist/login/oidc/OidcLoginHandler.js.map +0 -1
  84. package/dist/login/oidc/Redirector.js +0 -21
  85. package/dist/login/oidc/Redirector.js.map +0 -1
  86. package/dist/login/oidc/__mocks__/IOidcOptions.d.ts +0 -2
  87. package/dist/login/oidc/__mocks__/IOidcOptions.js +0 -25
  88. package/dist/login/oidc/__mocks__/IOidcOptions.js.map +0 -1
  89. package/dist/login/oidc/oidcHandlers/AuthorizationCodeWithPkceOidcHandler.js +0 -56
  90. package/dist/login/oidc/oidcHandlers/AuthorizationCodeWithPkceOidcHandler.js.map +0 -1
  91. package/dist/login/oidc/oidcHandlers/OidcHandlerCanHandleTest.js +0 -47
  92. package/dist/login/oidc/oidcHandlers/OidcHandlerCanHandleTest.js.map +0 -1
  93. package/dist/login/oidc/redirectHandler/AggregateRedirectHandler.js +0 -10
  94. package/dist/login/oidc/redirectHandler/AggregateRedirectHandler.js.map +0 -1
  95. package/dist/login/oidc/redirectHandler/AuthCodeRedirectHandler.js +0 -92
  96. package/dist/login/oidc/redirectHandler/AuthCodeRedirectHandler.js.map +0 -1
  97. package/dist/login/oidc/redirectHandler/ErrorOidcHandler.js +0 -26
  98. package/dist/login/oidc/redirectHandler/ErrorOidcHandler.js.map +0 -1
  99. package/dist/login/oidc/redirectHandler/FallbackRedirectHandler.js +0 -20
  100. package/dist/login/oidc/redirectHandler/FallbackRedirectHandler.js.map +0 -1
  101. package/dist/login/oidc/refresh/TokenRefresher.js +0 -31
  102. package/dist/login/oidc/refresh/TokenRefresher.js.map +0 -1
  103. package/dist/login/webid/WebIdLoginHandler.js +0 -12
  104. package/dist/login/webid/WebIdLoginHandler.js.map +0 -1
  105. package/dist/logout/GeneralLogoutHandler.js +0 -15
  106. package/dist/logout/GeneralLogoutHandler.js.map +0 -1
  107. package/dist/sessionInfo/SessionInfoManager.js +0 -95
  108. package/dist/sessionInfo/SessionInfoManager.js.map +0 -1
  109. package/dist/solid-client-authn.bundle.js.LICENSE.txt +0 -17
  110. package/dist/storage/BrowserStorage.js +0 -18
  111. package/dist/storage/BrowserStorage.js.map +0 -1
  112. package/dist/storage/StorageUtility.js +0 -10
  113. package/dist/storage/StorageUtility.js.map +0 -1
  114. package/dist/util/UuidGenerator.js +0 -10
  115. package/dist/util/UuidGenerator.js.map +0 -1
  116. package/dist/util/urlPath.js +0 -11
  117. package/dist/util/urlPath.js.map +0 -1
  118. package/docs/api/Makefile +0 -76
  119. package/docs/api/README.md +0 -46
  120. package/docs/api/build/docs-assets/README.md +0 -183
  121. package/docs/api/build/docs-assets/_static/css/inrupt.css +0 -349
  122. package/docs/api/build/docs-assets/_templates/breadcrumb-navigation.html +0 -10
  123. package/docs/api/build/docs-assets/_templates/copyright.html +0 -3
  124. package/docs/api/build/docs-assets/_templates/docs-sidebar.html +0 -32
  125. package/docs/api/build/docs-assets/_templates/docs-version-selector.html +0 -21
  126. package/docs/api/build/docs-assets/_templates/jira-feedback.html +0 -21
  127. package/docs/api/build/docs-assets/_templates/layout.html +0 -34
  128. package/docs/api/build/docs-assets/_templates/matomo.html +0 -18
  129. package/docs/api/build/docs-assets/_templates/navbar-logo.html +0 -5
  130. package/docs/api/build/docs-assets/_templates/navbar-nav.html +0 -44
  131. package/docs/api/build/docs-assets/_templates/prev-next.html +0 -19
  132. package/docs/api/build/docs-assets/_templates/versioned-canonical.html +0 -8
  133. package/docs/api/build/docs-assets/themes/inrupt/theme.conf +0 -18
  134. package/docs/api/build/doctrees/classes/ConfigurationError.doctree +0 -0
  135. package/docs/api/build/doctrees/classes/InMemoryStorage.doctree +0 -0
  136. package/docs/api/build/doctrees/classes/NotImplementedError.doctree +0 -0
  137. package/docs/api/build/doctrees/classes/Session.doctree +0 -0
  138. package/docs/api/build/doctrees/environment.pickle +0 -0
  139. package/docs/api/build/doctrees/functions.doctree +0 -0
  140. package/docs/api/build/doctrees/index.doctree +0 -0
  141. package/docs/api/build/doctrees/interfaces/ILoginInputOptions.doctree +0 -0
  142. package/docs/api/build/doctrees/interfaces/ISessionInfo.doctree +0 -0
  143. package/docs/api/build/doctrees/interfaces/ISessionOptions.doctree +0 -0
  144. package/docs/api/build/doctrees/interfaces/IStorage.doctree +0 -0
  145. package/docs/api/build/html/.buildinfo +0 -4
  146. package/docs/api/build/html/_static/basic.css +0 -905
  147. package/docs/api/build/html/_static/css/blank.css +0 -2
  148. package/docs/api/build/html/_static/css/index.ff1ffe594081f20da1ef19478df9384b.css +0 -6
  149. package/docs/api/build/html/_static/css/inrupt.css +0 -349
  150. package/docs/api/build/html/_static/css/theme.css +0 -120
  151. package/docs/api/build/html/_static/doctools.js +0 -323
  152. package/docs/api/build/html/_static/documentation_options.js +0 -12
  153. package/docs/api/build/html/_static/file.png +0 -0
  154. package/docs/api/build/html/_static/jquery-3.5.1.js +0 -10872
  155. package/docs/api/build/html/_static/jquery.js +0 -2
  156. package/docs/api/build/html/_static/js/index.be7d3bbb2ef33a8344ce.js +0 -32
  157. package/docs/api/build/html/_static/language_data.js +0 -297
  158. package/docs/api/build/html/_static/minus.png +0 -0
  159. package/docs/api/build/html/_static/plus.png +0 -0
  160. package/docs/api/build/html/_static/pygments.css +0 -74
  161. package/docs/api/build/html/_static/searchtools.js +0 -529
  162. package/docs/api/build/html/_static/underscore-1.13.1.js +0 -2042
  163. package/docs/api/build/html/_static/underscore.js +0 -6
  164. package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/LICENSE.txt +0 -34
  165. package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/css/all.min.css +0 -5
  166. package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-brands-400.eot +0 -0
  167. package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-brands-400.svg +0 -3570
  168. package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-brands-400.ttf +0 -0
  169. package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-brands-400.woff +0 -0
  170. package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-brands-400.woff2 +0 -0
  171. package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-regular-400.eot +0 -0
  172. package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-regular-400.svg +0 -803
  173. package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-regular-400.ttf +0 -0
  174. package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-regular-400.woff +0 -0
  175. package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-regular-400.woff2 +0 -0
  176. package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-solid-900.eot +0 -0
  177. package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-solid-900.svg +0 -4938
  178. package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-solid-900.ttf +0 -0
  179. package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-solid-900.woff +0 -0
  180. package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-solid-900.woff2 +0 -0
  181. package/docs/api/build/html/_static/webpack-macros.html +0 -25
  182. package/docs/api/build/html/classes/ConfigurationError.html +0 -726
  183. package/docs/api/build/html/classes/InMemoryStorage.html +0 -636
  184. package/docs/api/build/html/classes/NotImplementedError.html +0 -726
  185. package/docs/api/build/html/classes/Session.html +0 -2428
  186. package/docs/api/build/html/functions.html +0 -834
  187. package/docs/api/build/html/genindex.html +0 -311
  188. package/docs/api/build/html/index.html +0 -342
  189. package/docs/api/build/html/interfaces/ILoginInputOptions.html +0 -595
  190. package/docs/api/build/html/interfaces/ISessionInfo.html +0 -481
  191. package/docs/api/build/html/interfaces/ISessionOptions.html +0 -463
  192. package/docs/api/build/html/interfaces/IStorage.html +0 -531
  193. package/docs/api/build/html/objects.inv +0 -0
  194. package/docs/api/build/html/search.html +0 -340
  195. package/docs/api/build/html/searchindex.js +0 -1
  196. package/docs/api/build/source/classes/ConfigurationError.md +0 -159
  197. package/docs/api/build/source/classes/InMemoryStorage.md +0 -112
  198. package/docs/api/build/source/classes/NotImplementedError.md +0 -159
  199. package/docs/api/build/source/classes/Session.md +0 -907
  200. package/docs/api/build/source/functions.md +0 -235
  201. package/docs/api/build/source/index.rst +0 -13
  202. package/docs/api/build/source/interfaces/ILoginInputOptions.md +0 -109
  203. package/docs/api/build/source/interfaces/ISessionInfo.md +0 -63
  204. package/docs/api/build/source/interfaces/ISessionOptions.md +0 -60
  205. package/docs/api/build/source/interfaces/IStorage.md +0 -76
  206. package/docs/api/conf.py +0 -135
  207. package/docs/api/redirects.txt +0 -41
  208. package/docs/api/requirements.txt +0 -5
  209. package/docs/api/source/api/.nojekyll +0 -1
  210. package/docs/api/source/api/classes/ConfigurationError.md +0 -163
  211. package/docs/api/source/api/classes/InMemoryStorage.md +0 -112
  212. package/docs/api/source/api/classes/NotImplementedError.md +0 -163
  213. package/docs/api/source/api/classes/Session.md +0 -1426
  214. package/docs/api/source/api/index.md +0 -251
  215. package/docs/api/source/api/interfaces/ILoginInputOptions.md +0 -109
  216. package/docs/api/source/api/interfaces/ISessionInfo.md +0 -63
  217. package/docs/api/source/api/interfaces/ISessionOptions.md +0 -60
  218. package/docs/api/source/api/interfaces/IStorage.md +0 -76
  219. package/docs/api/source/functions.md +0 -3
  220. package/docs/api/source/index.rst +0 -13
  221. package/examples/demoAuthentiationMonitor/index.js +0 -34
  222. package/examples/demoAuthentiationMonitor/package-lock.json +0 -916
  223. package/examples/demoAuthentiationMonitor/package.json +0 -15
  224. package/examples/demoClientApp/.babelrc +0 -3
  225. package/examples/demoClientApp/package-lock.json +0 -11710
  226. package/examples/demoClientApp/package.json +0 -37
  227. package/examples/demoClientApp/src/DemoClientApp.js +0 -686
  228. package/examples/demoClientApp/src/index.html +0 -142
  229. package/examples/demoClientApp/src/index.js +0 -26
  230. package/examples/demoClientApp/webpack.config.js +0 -39
  231. package/examples/single/bundle/.babelrc +0 -3
  232. package/examples/single/bundle/README.md +0 -11
  233. package/examples/single/bundle/client-app-profile.ttl +0 -10
  234. package/examples/single/bundle/package-lock.json +0 -11196
  235. package/examples/single/bundle/package.json +0 -31
  236. package/examples/single/bundle/src/App.js +0 -123
  237. package/examples/single/bundle/src/index.html +0 -10
  238. package/examples/single/bundle/src/index.js +0 -26
  239. package/examples/single/bundle/webpack.config.js +0 -33
  240. package/examples/single/script/README.md +0 -11
  241. package/examples/single/script/index.html +0 -36
  242. package/examples/single/script/package-lock.json +0 -1293
  243. package/examples/single/script/package.json +0 -20
  244. package/examples/single/script/server.ts +0 -18
  245. package/jest.config.js +0 -10
  246. package/licenses.csv +0 -147
  247. package/rollup.config.js +0 -54
  248. package/sampleFlows/SolidAuthClientArchitecture.png +0 -0
  249. package/sampleFlows/authorization-code-with-pkce.png +0 -0
  250. package/sampleFlows/authorization-code-with-pkce.seqdiag +0 -46
  251. package/sampleFlows/authorization-code.png +0 -0
  252. package/sampleFlows/authorization-code.seqdiag +0 -50
  253. package/sampleFlows/client-credentials.png +0 -0
  254. package/sampleFlows/client-credentials.seqdiag +0 -38
  255. package/sampleFlows/legacy-implicit-flow.png +0 -0
  256. package/sampleFlows/legacy-implicit-flow.seqdiag +0 -43
  257. package/sampleFlows/self-signed.png +0 -0
  258. package/sampleFlows/self-signed.seqdiag +0 -49
  259. package/sampleFlows/signatory-access-control.seqdiag +0 -36
  260. package/sampleFlows/signatory-access-control.svg +0 -1
  261. package/tsconfig.eslint.json +0 -6
  262. package/tsconfig.json +0 -17
@@ -1,20 +0,0 @@
1
- {
2
- "name": "@inrupt/solid-client-authn-browser-via-script-tag-example",
3
- "version": "1.0.0",
4
- "description": "",
5
- "main": "index.js",
6
- "scripts": {
7
- "clean": "",
8
- "start": "ts-node server.ts",
9
- "dev": "npm run start",
10
- "test": "echo \"Error: no test specified\" && exit 1"
11
- },
12
- "author": "",
13
- "dependencies": {
14
- "@types/express": "^4.17.13",
15
- "express": "^4.17.3"
16
- },
17
- "devDependencies": {
18
- "ts-node": "^10.5.0"
19
- }
20
- }
@@ -1,18 +0,0 @@
1
- import express from "express";
2
- import path from "path";
3
-
4
- const PORT = 3001;
5
-
6
- const app = express();
7
-
8
- app.get("/", (req, res) => {
9
- res.sendFile(path.join(__dirname, "./index.html"));
10
- });
11
-
12
- app.get("/solid-client-authn.bundle.js", (req, res) => {
13
- res.sendFile(
14
- path.join(__dirname, "../../../dist/solid-client-authn.bundle.js")
15
- );
16
- });
17
-
18
- app.listen(PORT, () => console.log(`Listening on port [${PORT}]...`));
package/jest.config.js DELETED
@@ -1,10 +0,0 @@
1
- module.exports = {
2
- ...require("../../jest.config"),
3
- // Allows running tests from packages/browser/
4
- // testEnvironment: "<rootDir>/../../tests/environment/customEnvironment.js",
5
- testEnvironment: "<rootDir>/../../tests/environment/browserEnvironment.js",
6
-
7
- // Enable injectGlobals here to support jest-mock-console
8
- // https://github.com/bpedersen/jest-mock-console/issues/32
9
- injectGlobals: true,
10
- };
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"
package/rollup.config.js DELETED
@@ -1,54 +0,0 @@
1
- import pkg from "./package.json";
2
- import typescript from "rollup-plugin-typescript2";
3
- import nodeResolve from "@rollup/plugin-node-resolve";
4
- import nodePolyfills from "rollup-plugin-polyfill-node";
5
- import sourcemaps from "rollup-plugin-sourcemaps";
6
-
7
- export default {
8
- input: "./src/index.ts",
9
- output: [
10
- {
11
- file: pkg.main,
12
- format: "cjs",
13
- },
14
- {
15
- file: pkg.module,
16
- format: "esm",
17
- },
18
- {
19
- file: pkg.bundle,
20
- format: "umd",
21
- name: "solidClientAuthentication",
22
- globals: {
23
- // FIXME: inline oidc-client:
24
- "@inrupt/oidc-client": "oidcClient",
25
- "@inrupt/solid-client-authn-core": "solidClientAuthnCore",
26
- },
27
- },
28
- ],
29
- plugins: [
30
- nodePolyfills({
31
- include: ["events", "crypto"],
32
- }),
33
- sourcemaps(),
34
- nodeResolve({
35
- browser: true,
36
- preferBuiltins: true,
37
- resolveOnly: [
38
- "uuid",
39
- "@inrupt/solid-client-authn-core",
40
- "@inrupt/oidc-client-ext",
41
- ],
42
- }),
43
- typescript({
44
- // Use our own version of TypeScript, rather than the one bundled with the plugin:
45
- typescript: require("typescript"),
46
- tsconfigOverride: {
47
- compilerOptions: {
48
- module: "esnext",
49
- },
50
- },
51
- }),
52
- ],
53
- external: ["@inrupt/solid-client", "@inrupt/solid-client-authn-core"],
54
- };
@@ -1,46 +0,0 @@
1
- title: Authorization Code Flow with PKCE
2
-
3
- note left of RP: AUTHORIZATION
4
- note over RP: 1.Alice uses the decentphotos app
5
- note over RP: 2. Alice selets her OP or WebID
6
- RP->Alice's Pod (RS): 2.1 Retrieve Profile
7
- Alice's Pod (RS)->RP:
8
- RP->Alice's OP: 3. Requests OP configuration
9
- Alice's OP->RP: 4. Returns OP configuration
10
- RP->Alice's OP: 5. Requests OP JWKS
11
- Alice's OP->RP: 6. Returns OP JWKS
12
- note over RP: 7. Generates Private/Public key pair
13
- note over RP: 8. Generates PKCE nonce
14
- note over RP: 9. Saves both to local storage
15
- RP->Alice's OP: 10. Authorization Request
16
- Alice's OP->Decentphotos WebID: 11. Retrieves WebID
17
- Decentphotos WebID->Alice's OP:
18
- note over Alice's OP: 11. Validates redirect protocol with WebID
19
- note over Alice's OP: 12. Gets Alice's consent
20
- note over Alice's OP: 13. Generates an id_vc
21
- Alice's OP->RP: 12. Sends code to redirect protocol
22
- RP->Alice's OP: 13. Token requst with code and nonce proof
23
- note over Alice's OP: 14. Validates nonce proof
24
- Alice's OP->RP: 15. Sends id_vc inside id_token
25
-
26
-
27
- note left of RP: SENDING REQUEST
28
- note over RP: 1. Creates a pop_token
29
- RP->Bob's Pod (RS): 2. Request sent
30
- note over Bob's Pod (RS): 3. Checks pop_token Audience
31
- note over Bob's Pod (RS): 4. Checks client signature
32
- Bob's Pod (RS)->Alice's Pod (RS): 5. Retrieves Profile
33
- Alice's Pod (RS)->Bob's Pod (RS):
34
- note over Bob's Pod (RS): 6. Checks Issuer
35
- Bob's Pod (RS)->Alice's OP: 7. Retrieves OP configuration
36
- Alice's OP->Bob's Pod (RS):
37
- Bob's Pod (RS)->Alice's OP: 8. Requests JWKS
38
- Alice's OP->Bob's Pod (RS):
39
- note over Bob's Pod (RS): 9. Performs Authentication
40
- note over Bob's Pod (RS): 10. Performs Authorization
41
- Bob's Pod (RS)->RP: 11. Returns Result
42
-
43
- note left of RP: REFRESH TOKEN
44
- Bob's Pod (RS)->RP: 1. 401: token expired
45
- RP->Alice's OP: 2. Refresh token auth request
46
- Alice's OP->RP: 3. Return updated token
Binary file
@@ -1,50 +0,0 @@
1
- title: Authorization Code Grant
2
-
3
- note left of Alice's Browser: Authorization
4
- note over Decentphotos Server: 1. Has a public/private keypair
5
- note over Decentphotos WebID: 1. Has pub key cert
6
- note over Alice's Browser: 2. Alice navigates to decentphotos.example
7
- Alice's Browser->Decentphotos Server: 3. Retrieves webpage with session
8
- Decentphotos Server->Alice's Browser:
9
- note over Alice's Browser: 4. Alice selets her OP or WebID
10
- Alice's Browser->Decentphotos Server: 5. Requests login with OP / WebID
11
- Decentphotos Server->Alice's Pod (RS): 5.1 Retrieve Profile
12
- Alice's Pod (RS)->Decentphotos Server:
13
- Decentphotos Server->Alice's OP: 6. Requests OP configuration
14
- Alice's OP->Decentphotos Server:
15
- Decentphotos Server->Alice's OP: 7. Requests OP JWKS
16
- Alice's OP->Decentphotos Server:
17
- Decentphotos Server->Alice's Browser: 8. Redirects to Auth endpoint
18
- Alice's Browser->Alice's OP: 9. Authorization Request
19
- note over Alice's OP: 10. Gets Alice's consent
20
- Alice's OP->Alice's Browser: 11. Returns to redirect_url with access_code
21
- Alice's Browser-> Decentphotos Server: 12. Transfers Access Code
22
- Decentphotos Server->Alice's OP: 13. Auth request with proof of private key
23
- Alice's OP->Decentphotos WebID: 14. Retrieves app WebID
24
- Decentphotos WebID->Alice's OP:
25
- note over Alice's OP: 15. Validates cert with WebID
26
- note over Alice's OP: 16. Generates an access_code
27
- Alice's OP->Decentphotos Server: 17. Returns access_code and refresh_token
28
-
29
- note left of Alice's Browser: SENDING REQUEST
30
- Alice's Browser->Decentphotos Server: 1. Sends Request details
31
- note over Decentphotos Server: 2. Creates a pop_token
32
- Decentphotos Server->Bob's Pod (RS): 3. Request sent
33
- note over Bob's Pod (RS): 4. Checks pop_token Audience
34
- note over Bob's Pod (RS): 5. Checks client signature
35
- Bob's Pod (RS)->Alice's Pod (RS): 6. Retrieves Profile
36
- Alice's Pod (RS)->Bob's Pod (RS):
37
- note over Bob's Pod (RS): 7. Checks Issuer
38
- Bob's Pod (RS)->Alice's OP: 8. Retrieves OP configuration
39
- Alice's OP->Bob's Pod (RS):
40
- Bob's Pod (RS)->Alice's OP: 9. Requests JWKS
41
- Alice's OP->Bob's Pod (RS):
42
- note over Bob's Pod (RS): 10. Performs Authentication
43
- note over Bob's Pod (RS): 11. Performs Authorization
44
- Bob's Pod (RS)->Decentphotos Server: 12. Returns Result
45
- Decentphotos Server->Alice's Browser: 13. Returns result
46
-
47
- note left of Alice's Browser: REFRESH pop_token
48
- Bob's Pod (RS)->Decentphotos Server: 1. 401: token expired
49
- Decentphotos Server->Alice's OP: 2. Refresh token auth request
50
- Alice's OP->Decentphotos Server: 3. Return updated token
Binary file
@@ -1,38 +0,0 @@
1
- title: Client Credentials Grant
2
-
3
- note left of RP: AUTHORIZATION
4
- note over RP: 1. Alice's server knows a client_secret and OP
5
- RP->Alice's OP: 2. Requests OP configuration
6
- Alice's OP->RP: 3. Returns OP configuration
7
- RP->Alice's OP: 4. Requests OP JWKS
8
- Alice's OP->RP: 5. Returns OP JWKS
9
- note over RP: 6. Generates Private/Public key pair
10
- note over RP: 7. Saves Private/Public key pair to local storage
11
- RP->Alice's OP: 8. Authorization Request
12
- Alice's OP->RP WebID: 9. Retrieves WebID
13
- RP WebID->Alice's OP:
14
- note over Alice's OP: 10. Validates redirect_url with WebID
15
- note over Alice's OP: 11. Validate Client Secret
16
- note over Alice's OP: 12. Generates an access_token
17
- Alice's OP->RP: 12. Returns to redirect_url
18
-
19
- note left of RP: SENDING REQUEST
20
- note over RP: 1. Creates a pop_token
21
- RP->Bob's Pod (RS): 2. Request sent
22
- note over Bob's Pod (RS): 3. Checks pop_token Audience
23
- note over Bob's Pod (RS): 4. Checks client signature
24
- Bob's Pod (RS)->Alice's Pod (RS): 5. Retrieves Profile
25
- Alice's Pod (RS)->Bob's Pod (RS):
26
- note over Bob's Pod (RS): 6. Checks Issuer
27
- Bob's Pod (RS)->Alice's OP: 7. Retrieves OP configuration
28
- Alice's OP->Bob's Pod (RS):
29
- Bob's Pod (RS)->Alice's OP: 8. Requests JWKS
30
- Alice's OP->Bob's Pod (RS):
31
- note over Bob's Pod (RS): 9. Performs Authentication
32
- note over Bob's Pod (RS): 10. Performs Authorization
33
- Bob's Pod (RS)->RP: 11. Returns Result
34
-
35
- note left of RP: REFRESH TOKEN
36
- Bob's Pod (RS)->RP: 1. 401: token expired
37
- RP->Alice's OP: 2. Refresh token auth request
38
- Alice's OP->RP: 3. Return updated token
@@ -1,43 +0,0 @@
1
- title: Legacy Implicit Flow
2
-
3
- note left of RP: AUTHORIZATION
4
- note over RP: 1. Alice navigates to decentphotos.example
5
- note over RP: 2. Alice selets her OP or WebID
6
- RP->Alice's Pod (RS): 2.1 Retrieve Profile
7
- Alice's Pod (RS)->RP:
8
- RP->Alice's OP: 3. Requests OP configuration
9
- Alice's OP->RP: 4. Returns OP configuration
10
- RP->Alice's OP: 5. Requests OP JWKS
11
- Alice's OP->RP: 6. Returns OP JWKS
12
- note over RP: 7. Generates Private/Public key pair
13
- note over RP: 8. Saves Private/Public key pair to local storage
14
- RP->Alice's OP: 9. Authorization Request
15
- Alice's OP->Decentphotos WebID: 10. Retrieves WebID
16
- Decentphotos WebID->Alice's OP:
17
- note over Alice's OP: 11. Validates redirect_url with WebID
18
- note over Alice's OP: 12. Gets Alice's consent
19
- note over Alice's OP: 13. Generates an access_token
20
- Alice's OP->RP: 12. Returns to redirect_url
21
-
22
- note left of RP: SENDING REQUEST
23
- note over RP: 1. Creates a pop_token
24
- RP->Bob's Pod (RS): 2. Request sent
25
- note over Bob's Pod (RS): 3. Checks pop_token Audience
26
- note over Bob's Pod (RS): 4. Checks client signature
27
- Bob's Pod (RS)->Alice's Pod (RS): 5. Retrieves Profile
28
- Alice's Pod (RS)->Bob's Pod (RS):
29
- note over Bob's Pod (RS): 6. Checks Issuer
30
- Bob's Pod (RS)->Alice's OP: 7. Retrieves OP configuration
31
- Alice's OP->Bob's Pod (RS):
32
- Bob's Pod (RS)->Alice's OP: 8. Requests JWKS
33
- Alice's OP->Bob's Pod (RS):
34
- note over Bob's Pod (RS): 9. Performs Authentication
35
- note over Bob's Pod (RS): 10. Performs Authorization
36
- Bob's Pod (RS)->RP: 11. Returns Result
37
-
38
- note left of RP: SILENT REFRESH
39
- Bob's Pod (RS)->RP: 1. 401: token expired
40
- note over RP: 2. Opens iFrame to OP
41
- RP->Alice's OP: 3. Authorization Request with prompt=none
42
- Alice's OP->RP: 4. Return updated token
43
-
Binary file
@@ -1,49 +0,0 @@
1
- title: Self Issued Flow
2
-
3
- note left of RP: AUTHENTICATION
4
- note over RP: 1. Alice uses the Decentphotos App
5
- note over OP: 2. Alice has a self-signed app installed
6
- note over OP: It knows Alice's private key
7
- note over Alice's WebID: 3. issuer: selfissued.me
8
- note over Alice's WebID: Knows Alice's pub cert
9
- note over RP: 4. Alice selects her OP or WebID
10
- RP->Alice's WebID: 4.1 Gets WebID
11
- Alice's WebID->RP:
12
- RP->OP: 5. Requests OP configuration
13
- OP->RP:
14
- RP->OP: 6. Requests OP JWKS
15
- OP->RP:
16
- note over RP: 7. Generates Private/Public key pair
17
- note over RP: 8. Generates PKCE nonce
18
- note over RP: 9. Saves both to local storage
19
- RP->OP: 10. Authorization Request
20
- OP->Decentphotos WebID: 11. Retrieves WebID
21
- Decentphotos WebID->OP:
22
- note over OP: 11. Validates redirect protocol with WebID
23
- note over OP: 12. Gets Alice's consent
24
- note over OP: 13. Generates an access_code
25
- OP->RP: 12. Sends code to redirect protocol
26
- RP->OP: 13. Token requst with code and nonce proof
27
- note over OP: 14. Validates nonce proof
28
- OP->RP: 15. Sends access_token
29
-
30
- note left of RP: SENDING REQUEST
31
- note over RP: 1. Creates a pop_token
32
- RP->Bob's Pod (RS): 2. Request sent
33
- note over Bob's Pod (RS): 3. Checks pop_token Audience
34
- note over Bob's Pod (RS): 4. Checks client signature
35
- Bob's Pod (RS)->Alice's WebID: 5. Retrieves Profile
36
- Alice's WebID->Bob's Pod (RS):
37
- note over Bob's Pod (RS): 6. Checks that access_token cert matches WebID
38
- Bob's Pod (RS)->OP: 7. Retrieves OP configuration
39
- OP->Bob's Pod (RS):
40
- Bob's Pod (RS)->OP: 8. Requests JWKS
41
- OP->Bob's Pod (RS):
42
- note over Bob's Pod (RS): 9. Performs Authentication
43
- note over Bob's Pod (RS): 10. Performs Authorization
44
- Bob's Pod (RS)->RP: 11. Returns Result
45
-
46
- note left of RP: REFRESH TOKEN
47
- Bob's Pod (RS)->RP: 1. 401: token expired
48
- RP->OP: 2. Refresh token auth request
49
- OP->RP: 3. Return updated token
@@ -1,36 +0,0 @@
1
- title: Legacy Implicit Flow
2
-
3
- note left of RP: AUTHORIZATION
4
- note over RP: 1. Alice navigates to badguys.com
5
- note over RP: 2. Alice selects her OP or WebID
6
- RP->Alice's WebId: 2.1 Retrieve Profile
7
- Alice's WebId->RP:
8
- RP->Alice's OP: 3. Get OP configuration
9
- Alice's OP->RP:
10
- RP->Alice's OP: 4. Get OP JWKS
11
- Alice's OP->RP:
12
- note over RP: 5. Generates Private/Public key pair
13
- note over RP: 6. Saves Private/Public key pair to local storage
14
- RP->Alice's OP: 7. Authorization Request
15
- Alice's OP->badguys.com WebId: 8. Retrieves WebID
16
- badguys.com WebId->Alice's OP:
17
- note over Alice's OP: 9. Validates redirect_url with WebID
18
- note over Alice's OP: 10. Gets Alice's consent
19
- note over Alice's OP: 11. Generates an access_token
20
- Alice's OP->RP: 12. Returns to redirect_url
21
-
22
- note left of RP: SENDING REQUEST
23
- note over RP: 1. Creates a pop_token
24
- RP->Bob's Pod (RS): 2. Request sent
25
- note over Bob's Pod (RS): 3. Checks pop_token Audience
26
- note over Bob's Pod (RS): 4. Checks client signature
27
- Bob's Pod (RS)->Alice's WebId: 5. Retrieves Subject Profile
28
- Alice's WebId->Bob's Pod (RS):
29
- note over Bob's Pod (RS): 6. Checks Issuer
30
- Bob's Pod (RS)->Alice's OP: 7. Retrieves OP configuration
31
- Alice's OP->Bob's Pod (RS):
32
- Bob's Pod (RS)->Alice's OP: 8. Requests JWKS
33
- Alice's OP->Bob's Pod (RS):
34
- note over Bob's Pod (RS): 9. Performs Authentication
35
- note over Bob's Pod (RS): 10. Performs Authorization
36
- Bob's Pod (RS)->RP: 11. Returns Result
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="1326.3203125px" height="1442.453125px" class="sequence simple"><desc>Legacy Implicit Flow</desc><defs><marker viewBox="0 0 5 5" markerWidth="5" markerHeight="5" orient="auto" refX="5" refY="2.5" id="markerArrowBlock"><path d="M 0 0 L 5 2.5 L 0 5 z"/></marker><marker viewBox="0 0 9.6 16" markerWidth="4" markerHeight="16" orient="auto" refX="9.6" refY="8" id="markerArrowOpen"><path d="M 9.6,8 1.92,16 0,13.7 5.76,8 0,2.286 1.92,0 9.6,8 z"/></marker></defs><g class="title"><rect x="10" y="10" width="201.984375" height="28.015625" stroke="#000000" fill="#ffffff" style="stroke-width: 2;"/><text x="15" y="29.40625" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="15">Legacy Implicit Flow</tspan></text></g><g class="actor"><rect x="230.578125" y="48.015625" width="39.203125" height="38.015625" stroke="#000000" fill="#ffffff" style="stroke-width: 2;"/><text x="240.578125" y="72.421875" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="240.578125">RP</tspan></text></g><g class="actor"><rect x="230.578125" y="1384.4375" width="39.203125" height="38.015625" stroke="#000000" fill="#ffffff" style="stroke-width: 2;"/><text x="240.578125" y="1408.84375" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="240.578125">RP</tspan></text></g><line x1="250.1796875" x2="250.1796875" y1="86.03125" y2="1384.4375" stroke="#000000" fill="none" style="stroke-width: 2;"/><g class="actor"><rect x="427.9609375" y="48.015625" width="144.796875" height="38.015625" stroke="#000000" fill="#ffffff" style="stroke-width: 2;"/><text x="437.9609375" y="72.421875" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="437.9609375">Alice's WebId</tspan></text></g><g class="actor"><rect x="427.9609375" y="1384.4375" width="144.796875" height="38.015625" stroke="#000000" fill="#ffffff" style="stroke-width: 2;"/><text x="437.9609375" y="1408.84375" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="437.9609375">Alice's WebId</tspan></text></g><line x1="500.359375" x2="500.359375" y1="86.03125" y2="1384.4375" stroke="#000000" fill="none" style="stroke-width: 2;"/><g class="actor"><rect x="630.1484375" y="48.015625" width="116" height="38.015625" stroke="#000000" fill="#ffffff" style="stroke-width: 2;"/><text x="640.1484375" y="72.421875" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="640.1484375">Alice's OP</tspan></text></g><g class="actor"><rect x="630.1484375" y="1384.4375" width="116" height="38.015625" stroke="#000000" fill="#ffffff" style="stroke-width: 2;"/><text x="640.1484375" y="1408.84375" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="640.1484375">Alice's OP</tspan></text></g><line x1="688.1484375" x2="688.1484375" y1="86.03125" y2="1384.4375" stroke="#000000" fill="none" style="stroke-width: 2;"/><g class="actor"><rect x="789.3515625" y="48.015625" width="183.1875" height="38.015625" stroke="#000000" fill="#ffffff" style="stroke-width: 2;"/><text x="799.3515625" y="72.421875" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="799.3515625">badguys.com WebId</tspan></text></g><g class="actor"><rect x="789.3515625" y="1384.4375" width="183.1875" height="38.015625" stroke="#000000" fill="#ffffff" style="stroke-width: 2;"/><text x="799.3515625" y="1408.84375" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="799.3515625">badguys.com WebId</tspan></text></g><line x1="880.9453125" x2="880.9453125" y1="86.03125" y2="1384.4375" stroke="#000000" fill="none" style="stroke-width: 2;"/><g class="actor"><rect x="992.5390625" y="48.015625" width="154.390625" height="38.015625" stroke="#000000" fill="#ffffff" style="stroke-width: 2;"/><text x="1002.5390625" y="72.421875" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="1002.5390625">Bob's Pod (RS)</tspan></text></g><g class="actor"><rect x="992.5390625" y="1384.4375" width="154.390625" height="38.015625" stroke="#000000" fill="#ffffff" style="stroke-width: 2;"/><text x="1002.5390625" y="1408.84375" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="1002.5390625">Bob's Pod (RS)</tspan></text></g><line x1="1069.734375" x2="1069.734375" y1="86.03125" y2="1384.4375" stroke="#000000" fill="none" style="stroke-width: 2;"/><g class="note"><rect x="95.3828125" y="106.03125" width="134.796875" height="28.015625" stroke="#000000" fill="#ffffff" style="stroke-width: 2;"/><text x="100.3828125" y="125.4375" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="100.3828125">AUTHORIZATION</tspan></text></g><g class="note"><rect x="86.7890625" y="154.046875" width="326.78125" height="28.015625" stroke="#000000" fill="#ffffff" style="stroke-width: 2;"/><text x="91.7890625" y="173.453125" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="91.7890625">1. Alice navigates to badguys.com</tspan></text></g><g class="note"><rect x="91.5859375" y="202.0625" width="317.1875" height="28.015625" stroke="#000000" fill="#ffffff" style="stroke-width: 2;"/><text x="96.5859375" y="221.46875" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="96.5859375">2. Alice selects her OP or WebID</tspan></text></g><g class="signal"><text x="279.27734375" y="260.4765625" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="279.27734375">2.1 Retrieve Profile</tspan></text><line x1="250.1796875" x2="500.359375" y1="268.09375" y2="268.09375" stroke="#000000" fill="none" style="stroke-width: 2; marker-end: url(&quot;#markerArrowBlock&quot;);"/></g><g class="signal"><text x="375.26953125" y="293.09375" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="375.26953125"/></text><line x1="500.359375" x2="250.1796875" y1="288.09375" y2="288.09375" stroke="#000000" fill="none" style="stroke-width: 2; marker-end: url(&quot;#markerArrowBlock&quot;);"/></g><g class="signal"><text x="358.7734375" y="318.4921875" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="358.7734375">3. Get OP configuration</tspan></text><line x1="250.1796875" x2="688.1484375" y1="326.109375" y2="326.109375" stroke="#000000" fill="none" style="stroke-width: 2; marker-end: url(&quot;#markerArrowBlock&quot;);"/></g><g class="signal"><text x="469.1640625" y="351.109375" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="469.1640625"/></text><line x1="688.1484375" x2="250.1796875" y1="346.109375" y2="346.109375" stroke="#000000" fill="none" style="stroke-width: 2; marker-end: url(&quot;#markerArrowBlock&quot;);"/></g><g class="signal"><text x="401.96875" y="376.5078125" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="401.96875">4. Get OP JWKS</tspan></text><line x1="250.1796875" x2="688.1484375" y1="384.125" y2="384.125" stroke="#000000" fill="none" style="stroke-width: 2; marker-end: url(&quot;#markerArrowBlock&quot;);"/></g><g class="signal"><text x="469.1640625" y="409.125" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="469.1640625"/></text><line x1="688.1484375" x2="250.1796875" y1="404.125" y2="404.125" stroke="#000000" fill="none" style="stroke-width: 2; marker-end: url(&quot;#markerArrowBlock&quot;);"/></g><g class="note"><rect x="72.390625" y="424.125" width="355.578125" height="28.015625" stroke="#000000" fill="#ffffff" style="stroke-width: 2;"/><text x="77.390625" y="443.53125" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="77.390625">5. Generates Private/Public key pair</tspan></text></g><g class="note"><rect x="10" y="472.140625" width="480.359375" height="28.015625" stroke="#000000" fill="#ffffff" style="stroke-width: 2;"/><text x="15" y="491.546875" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="15">6. Saves Private/Public key pair to local storage</tspan></text></g><g class="signal"><text x="353.96875" y="530.5546875" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="353.96875">7. Authorization Request</tspan></text><line x1="250.1796875" x2="688.1484375" y1="538.171875" y2="538.171875" stroke="#000000" fill="none" style="stroke-width: 2; marker-end: url(&quot;#markerArrowBlock&quot;);"/></g><g class="signal"><text x="698.1484375" y="568.5703125" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="698.1484375">8. Retrieves WebID</tspan></text><line x1="688.1484375" x2="880.9453125" y1="576.1875" y2="576.1875" stroke="#000000" fill="none" style="stroke-width: 2; marker-end: url(&quot;#markerArrowBlock&quot;);"/></g><g class="signal"><text x="784.546875" y="601.1875" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="784.546875"/></text><line x1="880.9453125" x2="688.1484375" y1="596.1875" y2="596.1875" stroke="#000000" fill="none" style="stroke-width: 2; marker-end: url(&quot;#markerArrowBlock&quot;);"/></g><g class="note"><rect x="510.359375" y="616.1875" width="355.578125" height="28.015625" stroke="#000000" fill="#ffffff" style="stroke-width: 2;"/><text x="515.359375" y="635.59375" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="515.359375">9. Validates redirect_url with WebID</tspan></text></g><g class="note"><rect x="567.953125" y="664.203125" width="240.390625" height="28.015625" stroke="#000000" fill="#ffffff" style="stroke-width: 2;"/><text x="572.953125" y="683.609375" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="572.953125">10. Gets Alice's consent</tspan></text></g><g class="note"><rect x="543.953125" y="712.21875" width="288.390625" height="28.015625" stroke="#000000" fill="#ffffff" style="stroke-width: 2;"/><text x="548.953125" y="731.625" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="548.953125">11. Generates an access_token</tspan></text></g><g class="signal"><text x="339.5703125" y="770.6328125" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="339.5703125">12. Returns to redirect_url</tspan></text><line x1="688.1484375" x2="250.1796875" y1="778.25" y2="778.25" stroke="#000000" fill="none" style="stroke-width: 2; marker-end: url(&quot;#markerArrowBlock&quot;);"/></g><g class="note"><rect x="76.1796875" y="798.25" width="154" height="28.015625" stroke="#000000" fill="#ffffff" style="stroke-width: 2;"/><text x="81.1796875" y="817.65625" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="81.1796875">SENDING REQUEST</tspan></text></g><g class="note"><rect x="139.5859375" y="846.265625" width="221.1875" height="28.015625" stroke="#000000" fill="#ffffff" style="stroke-width: 2;"/><text x="144.5859375" y="865.671875" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="144.5859375">1. Creates a pop_token</tspan></text></g><g class="signal"><text x="587.95703125" y="904.6796875" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="587.95703125">2. Request sent</tspan></text><line x1="250.1796875" x2="1069.734375" y1="912.296875" y2="912.296875" stroke="#000000" fill="none" style="stroke-width: 2; marker-end: url(&quot;#markerArrowBlock&quot;);"/></g><g class="note"><rect x="930.34375" y="932.296875" width="278.78125" height="28.015625" stroke="#000000" fill="#ffffff" style="stroke-width: 2;"/><text x="935.34375" y="951.703125" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="935.34375">3. Checks pop_token Audience</tspan></text></g><g class="note"><rect x="939.9453125" y="980.3125" width="259.578125" height="28.015625" stroke="#000000" fill="#ffffff" style="stroke-width: 2;"/><text x="944.9453125" y="999.71875" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="944.9453125">4. Checks client signature</tspan></text></g><g class="signal"><text x="650.65625" y="1038.7265625" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="650.65625">5. Retrieves Subject Profile</tspan></text><line x1="1069.734375" x2="500.359375" y1="1046.34375" y2="1046.34375" stroke="#000000" fill="none" style="stroke-width: 2; marker-end: url(&quot;#markerArrowBlock&quot;);"/></g><g class="signal"><text x="785.046875" y="1071.34375" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="785.046875"/></text><line x1="500.359375" x2="1069.734375" y1="1066.34375" y2="1066.34375" stroke="#000000" fill="none" style="stroke-width: 2; marker-end: url(&quot;#markerArrowBlock&quot;);"/></g><g class="note"><rect x="987.9375" y="1086.34375" width="163.59375" height="28.015625" stroke="#000000" fill="#ffffff" style="stroke-width: 2;"/><text x="992.9375" y="1105.75" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="992.9375">6. Checks Issuer</tspan></text></g><g class="signal"><text x="739.74609375" y="1144.7578125" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="739.74609375">7. Retrieves OP configuration</tspan></text><line x1="1069.734375" x2="688.1484375" y1="1152.375" y2="1152.375" stroke="#000000" fill="none" style="stroke-width: 2; marker-end: url(&quot;#markerArrowBlock&quot;);"/></g><g class="signal"><text x="878.94140625" y="1177.375" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="878.94140625"/></text><line x1="688.1484375" x2="1069.734375" y1="1172.375" y2="1172.375" stroke="#000000" fill="none" style="stroke-width: 2; marker-end: url(&quot;#markerArrowBlock&quot;);"/></g><g class="signal"><text x="802.14453125" y="1202.7734375" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="802.14453125">8. Requests JWKS</tspan></text><line x1="1069.734375" x2="688.1484375" y1="1210.390625" y2="1210.390625" stroke="#000000" fill="none" style="stroke-width: 2; marker-end: url(&quot;#markerArrowBlock&quot;);"/></g><g class="signal"><text x="878.94140625" y="1235.390625" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="878.94140625"/></text><line x1="688.1484375" x2="1069.734375" y1="1230.390625" y2="1230.390625" stroke="#000000" fill="none" style="stroke-width: 2; marker-end: url(&quot;#markerArrowBlock&quot;);"/></g><g class="note"><rect x="939.9453125" y="1250.390625" width="259.578125" height="28.015625" stroke="#000000" fill="#ffffff" style="stroke-width: 2;"/><text x="944.9453125" y="1269.796875" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="944.9453125">9. Performs Authentication</tspan></text></g><g class="note"><rect x="939.9453125" y="1298.40625" width="259.578125" height="28.015625" stroke="#000000" fill="#ffffff" style="stroke-width: 2;"/><text x="944.9453125" y="1317.8125" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="944.9453125">10. Performs Authorization</tspan></text></g><g class="signal"><text x="573.55859375" y="1356.8203125" style="font-size: 16px; font-family: &quot;Andale Mono&quot;, monospace;"><tspan x="573.55859375">11. Returns Result</tspan></text><line x1="1069.734375" x2="250.1796875" y1="1364.4375" y2="1364.4375" stroke="#000000" fill="none" style="stroke-width: 2; marker-end: url(&quot;#markerArrowBlock&quot;);"/></g></svg>
@@ -1,6 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
-
4
- "include": ["src/**/*"],
5
- "exclude": []
6
- }
package/tsconfig.json DELETED
@@ -1,17 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.build.json",
3
-
4
- "compilerOptions": {
5
- "lib": ["es2018", "dom"],
6
- "outDir": "./dist"
7
- },
8
-
9
- "typedocOptions": {
10
- "out": "website/docs/api/browser",
11
- "entryPoints": ["./src/index.ts"],
12
- "entryDocument": "index.md"
13
- },
14
-
15
- "include": ["src/**/*"],
16
- "exclude": ["src/**/*.spec.ts", "**/__mocks__/*"]
17
- }