@inrupt/solid-client-authn-browser 1.11.9-alpha.0 → 1.11.9-alpha.3

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 -57
  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,251 +0,0 @@
1
- @inrupt/solid-client-authn-browser
2
-
3
- # @inrupt/solid-client-authn-browser
4
-
5
- ## Table of contents
6
-
7
- ### Classes
8
-
9
- - [ConfigurationError](classes/ConfigurationError.md)
10
- - [InMemoryStorage](classes/InMemoryStorage.md)
11
- - [NotImplementedError](classes/NotImplementedError.md)
12
- - [Session](classes/Session.md)
13
-
14
- ### Interfaces
15
-
16
- - [ILoginInputOptions](interfaces/ILoginInputOptions.md)
17
- - [ISessionInfo](interfaces/ISessionInfo.md)
18
- - [ISessionOptions](interfaces/ISessionOptions.md)
19
- - [IStorage](interfaces/IStorage.md)
20
-
21
- ### Functions
22
-
23
- - [fetch](index.md#fetch)
24
- - [getClientAuthenticationWithDependencies](index.md#getclientauthenticationwithdependencies)
25
- - [getDefaultSession](index.md#getdefaultsession)
26
- - [handleIncomingRedirect](index.md#handleincomingredirect)
27
- - [login](index.md#login)
28
- - [logout](index.md#logout)
29
- - [onLogin](index.md#onlogin)
30
- - [onLogout](index.md#onlogout)
31
- - [onSessionRestore](index.md#onsessionrestore)
32
-
33
- ## Functions
34
-
35
- ### fetch
36
-
37
- ▸ `Const` **fetch**(`url`, `init?`): `Promise`<`Response`\>
38
-
39
- This function's signature is equal to `window.fetch`, but if the current user is authenticated
40
- (see [login](classes/Session.md#login) and [handleIncomingRedirect](classes/Session.md#handleincomingredirect)), requests made using it will include that user's
41
- credentials. If not, this will behave just like the regular `window.fetch`.
42
-
43
- **`see`** [https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch)
44
-
45
- **`since`** 1.3.0
46
-
47
- #### Parameters
48
-
49
- | Name | Type |
50
- | :------ | :------ |
51
- | `url` | `RequestInfo` |
52
- | `init?` | `RequestInit` |
53
-
54
- #### Returns
55
-
56
- `Promise`<`Response`\>
57
-
58
- #### Defined in
59
-
60
- [browser/src/defaultSession.ts:51](https://github.com/inrupt/solid-client-authn-js/blob/9b3ed957/packages/browser/src/defaultSession.ts#L51)
61
-
62
- ___
63
-
64
- ### getClientAuthenticationWithDependencies
65
-
66
- ▸ **getClientAuthenticationWithDependencies**(`dependencies`): `ClientAuthentication`
67
-
68
- **`deprecated`** This function will be removed from the external API in an upcoming release.
69
-
70
- #### Parameters
71
-
72
- | Name | Type |
73
- | :------ | :------ |
74
- | `dependencies` | `Object` |
75
- | `dependencies.insecureStorage?` | [`IStorage`](interfaces/IStorage.md) |
76
- | `dependencies.secureStorage?` | [`IStorage`](interfaces/IStorage.md) |
77
-
78
- #### Returns
79
-
80
- `ClientAuthentication`
81
-
82
- #### Defined in
83
-
84
- [browser/src/dependencies.ts:52](https://github.com/inrupt/solid-client-authn-js/blob/9b3ed957/packages/browser/src/dependencies.ts#L52)
85
-
86
- ___
87
-
88
- ### getDefaultSession
89
-
90
- ▸ **getDefaultSession**(): [`Session`](classes/Session.md)
91
-
92
- Obtain the [Session](classes/Session.md) used when not explicitly instantiating one yourself.
93
-
94
- When using the top-level exports [fetch](classes/Session.md#fetch), [login](classes/Session.md#login), [logout](classes/Session.md#logout),
95
- [handleIncomingRedirect](classes/Session.md#handleincomingredirect), [onLogin](classes/Session.md#onlogin) and [onLogout](classes/Session.md#onlogout), these apply to an
96
- implicitly-instantiated [Session](classes/Session.md).
97
- This function returns a reference to that Session in order to obtain e.g. the current user's
98
- WebID.
99
-
100
- **`since`** 1.3.0
101
-
102
- #### Returns
103
-
104
- [`Session`](classes/Session.md)
105
-
106
- #### Defined in
107
-
108
- [browser/src/defaultSession.ts:36](https://github.com/inrupt/solid-client-authn-js/blob/9b3ed957/packages/browser/src/defaultSession.ts#L36)
109
-
110
- ___
111
-
112
- ### handleIncomingRedirect
113
-
114
- ▸ `Const` **handleIncomingRedirect**(`inputOptions?`): `Promise`<`undefined` \| [`ISessionInfo`](interfaces/ISessionInfo.md)\>
115
-
116
- Completes the login process by processing the information provided by the Solid identity provider through redirect.
117
-
118
- **`since`** 1.3.0
119
-
120
- #### Parameters
121
-
122
- | Name | Type |
123
- | :------ | :------ |
124
- | `inputOptions` | `string` \| `IHandleIncomingRedirectOptions` |
125
-
126
- #### Returns
127
-
128
- `Promise`<`undefined` \| [`ISessionInfo`](interfaces/ISessionInfo.md)\>
129
-
130
- #### Defined in
131
-
132
- [browser/src/defaultSession.ts:85](https://github.com/inrupt/solid-client-authn-js/blob/9b3ed957/packages/browser/src/defaultSession.ts#L85)
133
-
134
- ___
135
-
136
- ### login
137
-
138
- ▸ `Const` **login**(`options`): `Promise`<`void`\>
139
-
140
- Triggers the login process. Note that this method will redirect the user away from your app.
141
-
142
- **`since`** 1.3.0
143
-
144
- #### Parameters
145
-
146
- | Name | Type | Description |
147
- | :------ | :------ | :------ |
148
- | `options` | [`ILoginInputOptions`](interfaces/ILoginInputOptions.md) | Parameter to customize the login behaviour. In particular, two options are mandatory: `options.oidcIssuer`, the user's identity provider, and `options.redirectUrl`, the URL to which the user will be redirected after logging in their identity provider. |
149
-
150
- #### Returns
151
-
152
- `Promise`<`void`\>
153
-
154
- This method should redirect the user away from the app: it does not return anything. The login process is completed by [handleIncomingRedirect](classes/Session.md#handleincomingredirect).
155
-
156
- #### Defined in
157
-
158
- [browser/src/defaultSession.ts:63](https://github.com/inrupt/solid-client-authn-js/blob/9b3ed957/packages/browser/src/defaultSession.ts#L63)
159
-
160
- ___
161
-
162
- ### logout
163
-
164
- ▸ `Const` **logout**(): `Promise`<`void`\>
165
-
166
- Logs the user out of the application. This does not log the user out of their
167
- Solid identity provider, and should not redirect the user away.
168
-
169
- **`since`** 1.3.0
170
-
171
- #### Returns
172
-
173
- `Promise`<`void`\>
174
-
175
- #### Defined in
176
-
177
- [browser/src/defaultSession.ts:74](https://github.com/inrupt/solid-client-authn-js/blob/9b3ed957/packages/browser/src/defaultSession.ts#L74)
178
-
179
- ___
180
-
181
- ### onLogin
182
-
183
- ▸ `Const` **onLogin**(`callback`): `void`
184
-
185
- Register a callback function to be called when a user completes login.
186
-
187
- The callback is called when [handleIncomingRedirect](classes/Session.md#handleincomingredirect) completes successfully.
188
-
189
- **`since`** 1.3.0
190
-
191
- #### Parameters
192
-
193
- | Name | Type | Description |
194
- | :------ | :------ | :------ |
195
- | `callback` | () => `unknown` | The function called when a user completes login. |
196
-
197
- #### Returns
198
-
199
- `void`
200
-
201
- #### Defined in
202
-
203
- [browser/src/defaultSession.ts:100](https://github.com/inrupt/solid-client-authn-js/blob/9b3ed957/packages/browser/src/defaultSession.ts#L100)
204
-
205
- ___
206
-
207
- ### onLogout
208
-
209
- ▸ `Const` **onLogout**(`callback`): `void`
210
-
211
- Register a callback function to be called when a user logs out:
212
-
213
- **`since`** 1.3.0
214
-
215
- #### Parameters
216
-
217
- | Name | Type | Description |
218
- | :------ | :------ | :------ |
219
- | `callback` | () => `unknown` | The function called when a user completes logout. |
220
-
221
- #### Returns
222
-
223
- `void`
224
-
225
- #### Defined in
226
-
227
- [browser/src/defaultSession.ts:111](https://github.com/inrupt/solid-client-authn-js/blob/9b3ed957/packages/browser/src/defaultSession.ts#L111)
228
-
229
- ___
230
-
231
- ### onSessionRestore
232
-
233
- ▸ `Const` **onSessionRestore**(`callback`): `void`
234
-
235
- Register a callback function to be called when a session is restored:
236
-
237
- **`since`** 1.3.0
238
-
239
- #### Parameters
240
-
241
- | Name | Type | Description |
242
- | :------ | :------ | :------ |
243
- | `callback` | (`currentUrl`: `string`) => `unknown` | The function called when a session is restored. |
244
-
245
- #### Returns
246
-
247
- `void`
248
-
249
- #### Defined in
250
-
251
- [browser/src/defaultSession.ts:122](https://github.com/inrupt/solid-client-authn-js/blob/9b3ed957/packages/browser/src/defaultSession.ts#L122)
@@ -1,109 +0,0 @@
1
- [@inrupt/solid-client-authn-browser](../index.md) / ILoginInputOptions
2
-
3
- # Interface: ILoginInputOptions
4
-
5
- ## Table of contents
6
-
7
- ### Properties
8
-
9
- - [clientId](ILoginInputOptions.md#clientid)
10
- - [clientName](ILoginInputOptions.md#clientname)
11
- - [clientSecret](ILoginInputOptions.md#clientsecret)
12
- - [oidcIssuer](ILoginInputOptions.md#oidcissuer)
13
- - [redirectUrl](ILoginInputOptions.md#redirecturl)
14
- - [refreshToken](ILoginInputOptions.md#refreshtoken)
15
- - [tokenType](ILoginInputOptions.md#tokentype)
16
-
17
- ### Methods
18
-
19
- - [handleRedirect](ILoginInputOptions.md#handleredirect)
20
-
21
- ## Properties
22
-
23
- ### clientId
24
-
25
- • `Optional` **clientId**: `string`
26
-
27
- #### Defined in
28
-
29
- core/dist/ILoginInputOptions.d.ts:4
30
-
31
- ___
32
-
33
- ### clientName
34
-
35
- • `Optional` **clientName**: `string`
36
-
37
- #### Defined in
38
-
39
- core/dist/ILoginInputOptions.d.ts:6
40
-
41
- ___
42
-
43
- ### clientSecret
44
-
45
- • `Optional` **clientSecret**: `string`
46
-
47
- #### Defined in
48
-
49
- core/dist/ILoginInputOptions.d.ts:5
50
-
51
- ___
52
-
53
- ### oidcIssuer
54
-
55
- • `Optional` **oidcIssuer**: `string`
56
-
57
- #### Defined in
58
-
59
- core/dist/ILoginInputOptions.d.ts:2
60
-
61
- ___
62
-
63
- ### redirectUrl
64
-
65
- • `Optional` **redirectUrl**: `string`
66
-
67
- #### Defined in
68
-
69
- core/dist/ILoginInputOptions.d.ts:3
70
-
71
- ___
72
-
73
- ### refreshToken
74
-
75
- • `Optional` **refreshToken**: `string`
76
-
77
- #### Defined in
78
-
79
- core/dist/ILoginInputOptions.d.ts:9
80
-
81
- ___
82
-
83
- ### tokenType
84
-
85
- • `Optional` **tokenType**: ``"DPoP"`` \| ``"Bearer"``
86
-
87
- #### Defined in
88
-
89
- core/dist/ILoginInputOptions.d.ts:8
90
-
91
- ## Methods
92
-
93
- ### handleRedirect
94
-
95
- ▸ `Optional` **handleRedirect**(`redirectUrl`): `unknown`
96
-
97
- #### Parameters
98
-
99
- | Name | Type |
100
- | :------ | :------ |
101
- | `redirectUrl` | `string` |
102
-
103
- #### Returns
104
-
105
- `unknown`
106
-
107
- #### Defined in
108
-
109
- core/dist/ILoginInputOptions.d.ts:7
@@ -1,63 +0,0 @@
1
- [@inrupt/solid-client-authn-browser](../index.md) / ISessionInfo
2
-
3
- # Interface: ISessionInfo
4
-
5
- ## Table of contents
6
-
7
- ### Properties
8
-
9
- - [clientAppId](ISessionInfo.md#clientappid)
10
- - [expirationDate](ISessionInfo.md#expirationdate)
11
- - [isLoggedIn](ISessionInfo.md#isloggedin)
12
- - [sessionId](ISessionInfo.md#sessionid)
13
- - [webId](ISessionInfo.md#webid)
14
-
15
- ## Properties
16
-
17
- ### clientAppId
18
-
19
- • `Optional` **clientAppId**: `string`
20
-
21
- #### Defined in
22
-
23
- core/dist/sessionInfo/ISessionInfo.d.ts:4
24
-
25
- ___
26
-
27
- ### expirationDate
28
-
29
- • `Optional` **expirationDate**: `number`
30
-
31
- #### Defined in
32
-
33
- core/dist/sessionInfo/ISessionInfo.d.ts:6
34
-
35
- ___
36
-
37
- ### isLoggedIn
38
-
39
- • **isLoggedIn**: `boolean`
40
-
41
- #### Defined in
42
-
43
- core/dist/sessionInfo/ISessionInfo.d.ts:2
44
-
45
- ___
46
-
47
- ### sessionId
48
-
49
- • **sessionId**: `string`
50
-
51
- #### Defined in
52
-
53
- core/dist/sessionInfo/ISessionInfo.d.ts:5
54
-
55
- ___
56
-
57
- ### webId
58
-
59
- • `Optional` **webId**: `string`
60
-
61
- #### Defined in
62
-
63
- core/dist/sessionInfo/ISessionInfo.d.ts:3
@@ -1,60 +0,0 @@
1
- [@inrupt/solid-client-authn-browser](../index.md) / ISessionOptions
2
-
3
- # Interface: ISessionOptions
4
-
5
- ## Table of contents
6
-
7
- ### Properties
8
-
9
- - [clientAuthentication](ISessionOptions.md#clientauthentication)
10
- - [insecureStorage](ISessionOptions.md#insecurestorage)
11
- - [secureStorage](ISessionOptions.md#securestorage)
12
- - [sessionInfo](ISessionOptions.md#sessioninfo)
13
-
14
- ## Properties
15
-
16
- ### clientAuthentication
17
-
18
- • **clientAuthentication**: `default`
19
-
20
- An instance of the library core. Typically obtained using `getClientAuthenticationWithDependencies`.
21
-
22
- #### Defined in
23
-
24
- [browser/src/Session.ts:55](https://github.com/inrupt/solid-client-authn-js/blob/9b3ed957/packages/browser/src/Session.ts#L55)
25
-
26
- ___
27
-
28
- ### insecureStorage
29
-
30
- • **insecureStorage**: [`IStorage`](IStorage.md)
31
-
32
- A storage where non-sensitive information may be stored, potentially longer-lived than the secure storage.
33
-
34
- #### Defined in
35
-
36
- [browser/src/Session.ts:47](https://github.com/inrupt/solid-client-authn-js/blob/9b3ed957/packages/browser/src/Session.ts#L47)
37
-
38
- ___
39
-
40
- ### secureStorage
41
-
42
- • **secureStorage**: [`IStorage`](IStorage.md)
43
-
44
- A private storage, unreachable to other scripts on the page. Typically in-memory.
45
-
46
- #### Defined in
47
-
48
- [browser/src/Session.ts:43](https://github.com/inrupt/solid-client-authn-js/blob/9b3ed957/packages/browser/src/Session.ts#L43)
49
-
50
- ___
51
-
52
- ### sessionInfo
53
-
54
- • **sessionInfo**: [`ISessionInfo`](ISessionInfo.md)
55
-
56
- Details about the current session
57
-
58
- #### Defined in
59
-
60
- [browser/src/Session.ts:51](https://github.com/inrupt/solid-client-authn-js/blob/9b3ed957/packages/browser/src/Session.ts#L51)
@@ -1,76 +0,0 @@
1
- [@inrupt/solid-client-authn-browser](../index.md) / IStorage
2
-
3
- # Interface: IStorage
4
-
5
- ## Implemented by
6
-
7
- - [`InMemoryStorage`](../classes/InMemoryStorage.md)
8
-
9
- ## Table of contents
10
-
11
- ### Methods
12
-
13
- - [delete](IStorage.md#delete)
14
- - [get](IStorage.md#get)
15
- - [set](IStorage.md#set)
16
-
17
- ## Methods
18
-
19
- ### delete
20
-
21
- ▸ **delete**(`key`): `Promise`<`void`\>
22
-
23
- #### Parameters
24
-
25
- | Name | Type |
26
- | :------ | :------ |
27
- | `key` | `string` |
28
-
29
- #### Returns
30
-
31
- `Promise`<`void`\>
32
-
33
- #### Defined in
34
-
35
- core/dist/storage/IStorage.d.ts:4
36
-
37
- ___
38
-
39
- ### get
40
-
41
- ▸ **get**(`key`): `Promise`<`undefined` \| `string`\>
42
-
43
- #### Parameters
44
-
45
- | Name | Type |
46
- | :------ | :------ |
47
- | `key` | `string` |
48
-
49
- #### Returns
50
-
51
- `Promise`<`undefined` \| `string`\>
52
-
53
- #### Defined in
54
-
55
- core/dist/storage/IStorage.d.ts:2
56
-
57
- ___
58
-
59
- ### set
60
-
61
- ▸ **set**(`key`, `value`): `Promise`<`void`\>
62
-
63
- #### Parameters
64
-
65
- | Name | Type |
66
- | :------ | :------ |
67
- | `key` | `string` |
68
- | `value` | `string` |
69
-
70
- #### Returns
71
-
72
- `Promise`<`void`\>
73
-
74
- #### Defined in
75
-
76
- core/dist/storage/IStorage.d.ts:3
@@ -1,3 +0,0 @@
1
- # Functions
2
-
3
- ## Table of contents
@@ -1,13 +0,0 @@
1
- :orphan:
2
-
3
- ==============================
4
- solid-client-authn-browser API
5
- ==============================
6
-
7
- .. COMMENT: If we want left hand side in specific order, we'll have to be specific in the toctree. For now, will just use the default alphabetical order.
8
-
9
- .. toctree::
10
- :glob:
11
- :titlesonly:
12
-
13
- **
@@ -1,34 +0,0 @@
1
- const express = require("express");
2
-
3
- const port = 3000;
4
-
5
- const app = express();
6
- app.use(express.urlencoded({ extended: true }));
7
- app.use(express.json());
8
-
9
- app.get("/", async (req, res) => {
10
- try {
11
- res.send("Success!").status(200);
12
- } catch (err) {
13
- res.send(err.message).status(500);
14
- }
15
- });
16
-
17
- app.post("/register_pod", async (req, res) => {
18
- try {
19
- res.send("Success!").status(201);
20
- } catch (err) {
21
- res.send(err.message).status(500);
22
- }
23
- });
24
-
25
- const server = app.listen(port, () =>
26
- console.log(`Listening on port: [${port}]...`)
27
- );
28
-
29
- process.on("SIGTERM", () => {
30
- console.info("SIGTERM signal received, closing HTTP server...");
31
- server.close(() => {
32
- console.log("...HTTP server closed.");
33
- });
34
- });