@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.
- package/dist/index.es.js +4 -352
- package/dist/index.es.js.map +1 -0
- package/dist/index.js +12 -360
- package/dist/index.js.map +1 -1
- package/dist/solid-client-authn.bundle.js +14 -363
- package/dist/solid-client-authn.bundle.js.map +1 -0
- package/package.json +8 -5
- package/.eslintrc.js +0 -16
- package/NOTICE +0 -5
- package/coverage/clover.xml +0 -547
- package/coverage/coverage-final.json +0 -28
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -266
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -196
- package/coverage/lcov-report/src/ClientAuthentication.ts.html +0 -631
- package/coverage/lcov-report/src/Session.ts.html +0 -1435
- package/coverage/lcov-report/src/constant.ts.html +0 -163
- package/coverage/lcov-report/src/defaultSession.ts.html +0 -460
- package/coverage/lcov-report/src/dependencies.ts.html +0 -400
- package/coverage/lcov-report/src/iframe.ts.html +0 -394
- package/coverage/lcov-report/src/index.browser.ts.html +0 -157
- package/coverage/lcov-report/src/index.html +0 -206
- package/coverage/lcov-report/src/login/AggregateLoginHandler.ts.html +0 -226
- package/coverage/lcov-report/src/login/index.html +0 -116
- package/coverage/lcov-report/src/login/oidc/AggregateOidcHandler.ts.html +0 -226
- package/coverage/lcov-report/src/login/oidc/ClientRegistrar.ts.html +0 -415
- package/coverage/lcov-report/src/login/oidc/IssuerConfigFetcher.ts.html +0 -646
- package/coverage/lcov-report/src/login/oidc/OidcLoginHandler.ts.html +0 -436
- package/coverage/lcov-report/src/login/oidc/Redirector.ts.html +0 -229
- package/coverage/lcov-report/src/login/oidc/index.html +0 -176
- package/coverage/lcov-report/src/login/oidc/oidcHandlers/AuthorizationCodeWithPkceOidcHandler.ts.html +0 -478
- package/coverage/lcov-report/src/login/oidc/oidcHandlers/OidcHandlerCanHandleTest.ts.html +0 -319
- package/coverage/lcov-report/src/login/oidc/oidcHandlers/index.html +0 -131
- package/coverage/lcov-report/src/login/oidc/redirectHandler/AggregateRedirectHandler.ts.html +0 -226
- package/coverage/lcov-report/src/login/oidc/redirectHandler/AuthCodeRedirectHandler.ts.html +0 -667
- package/coverage/lcov-report/src/login/oidc/redirectHandler/ErrorOidcHandler.ts.html +0 -283
- package/coverage/lcov-report/src/login/oidc/redirectHandler/FallbackRedirectHandler.ts.html +0 -265
- package/coverage/lcov-report/src/login/oidc/redirectHandler/index.html +0 -161
- package/coverage/lcov-report/src/login/oidc/refresh/TokenRefresher.ts.html +0 -385
- package/coverage/lcov-report/src/login/oidc/refresh/index.html +0 -116
- package/coverage/lcov-report/src/login/webid/WebIdLoginHandler.ts.html +0 -250
- package/coverage/lcov-report/src/login/webid/index.html +0 -116
- package/coverage/lcov-report/src/logout/GeneralLogoutHandler.ts.html +0 -220
- package/coverage/lcov-report/src/logout/index.html +0 -116
- package/coverage/lcov-report/src/sessionInfo/SessionInfoManager.ts.html +0 -775
- package/coverage/lcov-report/src/sessionInfo/index.html +0 -116
- package/coverage/lcov-report/src/storage/BrowserStorage.ts.html +0 -229
- package/coverage/lcov-report/src/storage/StorageUtility.ts.html +0 -214
- package/coverage/lcov-report/src/storage/index.html +0 -131
- package/coverage/lcov-report/src/util/UuidGenerator.ts.html +0 -226
- package/coverage/lcov-report/src/util/index.html +0 -131
- package/coverage/lcov-report/src/util/urlPath.ts.html +0 -208
- package/coverage/lcov.info +0 -1001
- package/dist/ClientAuthentication.js +0 -64
- package/dist/ClientAuthentication.js.map +0 -1
- package/dist/Session.js +0 -165
- package/dist/Session.js.map +0 -1
- package/dist/constant.js +0 -7
- package/dist/constant.js.map +0 -1
- package/dist/defaultSession.js +0 -48
- package/dist/defaultSession.js.map +0 -1
- package/dist/dependencies.js +0 -41
- package/dist/dependencies.js.map +0 -1
- package/dist/iframe.js +0 -43
- package/dist/iframe.js.map +0 -1
- package/dist/index.browser.d.ts +0 -1
- package/dist/index.browser.js +0 -28
- package/dist/index.browser.js.map +0 -1
- package/dist/login/AggregateLoginHandler.js +0 -10
- package/dist/login/AggregateLoginHandler.js.map +0 -1
- package/dist/login/oidc/AggregateOidcHandler.js +0 -10
- package/dist/login/oidc/AggregateOidcHandler.js.map +0 -1
- package/dist/login/oidc/ClientRegistrar.js +0 -51
- package/dist/login/oidc/ClientRegistrar.js.map +0 -1
- package/dist/login/oidc/IssuerConfigFetcher.js +0 -124
- package/dist/login/oidc/IssuerConfigFetcher.js.map +0 -1
- package/dist/login/oidc/OidcLoginHandler.js +0 -40
- package/dist/login/oidc/OidcLoginHandler.js.map +0 -1
- package/dist/login/oidc/Redirector.js +0 -21
- package/dist/login/oidc/Redirector.js.map +0 -1
- package/dist/login/oidc/__mocks__/IOidcOptions.d.ts +0 -2
- package/dist/login/oidc/__mocks__/IOidcOptions.js +0 -25
- package/dist/login/oidc/__mocks__/IOidcOptions.js.map +0 -1
- package/dist/login/oidc/oidcHandlers/AuthorizationCodeWithPkceOidcHandler.js +0 -56
- package/dist/login/oidc/oidcHandlers/AuthorizationCodeWithPkceOidcHandler.js.map +0 -1
- package/dist/login/oidc/oidcHandlers/OidcHandlerCanHandleTest.js +0 -47
- package/dist/login/oidc/oidcHandlers/OidcHandlerCanHandleTest.js.map +0 -1
- package/dist/login/oidc/redirectHandler/AggregateRedirectHandler.js +0 -10
- package/dist/login/oidc/redirectHandler/AggregateRedirectHandler.js.map +0 -1
- package/dist/login/oidc/redirectHandler/AuthCodeRedirectHandler.js +0 -92
- package/dist/login/oidc/redirectHandler/AuthCodeRedirectHandler.js.map +0 -1
- package/dist/login/oidc/redirectHandler/ErrorOidcHandler.js +0 -26
- package/dist/login/oidc/redirectHandler/ErrorOidcHandler.js.map +0 -1
- package/dist/login/oidc/redirectHandler/FallbackRedirectHandler.js +0 -20
- package/dist/login/oidc/redirectHandler/FallbackRedirectHandler.js.map +0 -1
- package/dist/login/oidc/refresh/TokenRefresher.js +0 -31
- package/dist/login/oidc/refresh/TokenRefresher.js.map +0 -1
- package/dist/login/webid/WebIdLoginHandler.js +0 -12
- package/dist/login/webid/WebIdLoginHandler.js.map +0 -1
- package/dist/logout/GeneralLogoutHandler.js +0 -15
- package/dist/logout/GeneralLogoutHandler.js.map +0 -1
- package/dist/sessionInfo/SessionInfoManager.js +0 -95
- package/dist/sessionInfo/SessionInfoManager.js.map +0 -1
- package/dist/solid-client-authn.bundle.js.LICENSE.txt +0 -17
- package/dist/storage/BrowserStorage.js +0 -18
- package/dist/storage/BrowserStorage.js.map +0 -1
- package/dist/storage/StorageUtility.js +0 -10
- package/dist/storage/StorageUtility.js.map +0 -1
- package/dist/util/UuidGenerator.js +0 -10
- package/dist/util/UuidGenerator.js.map +0 -1
- package/dist/util/urlPath.js +0 -11
- package/dist/util/urlPath.js.map +0 -1
- package/docs/api/Makefile +0 -76
- package/docs/api/README.md +0 -46
- package/docs/api/build/docs-assets/README.md +0 -183
- package/docs/api/build/docs-assets/_static/css/inrupt.css +0 -349
- package/docs/api/build/docs-assets/_templates/breadcrumb-navigation.html +0 -10
- package/docs/api/build/docs-assets/_templates/copyright.html +0 -3
- package/docs/api/build/docs-assets/_templates/docs-sidebar.html +0 -32
- package/docs/api/build/docs-assets/_templates/docs-version-selector.html +0 -21
- package/docs/api/build/docs-assets/_templates/jira-feedback.html +0 -21
- package/docs/api/build/docs-assets/_templates/layout.html +0 -34
- package/docs/api/build/docs-assets/_templates/matomo.html +0 -18
- package/docs/api/build/docs-assets/_templates/navbar-logo.html +0 -5
- package/docs/api/build/docs-assets/_templates/navbar-nav.html +0 -44
- package/docs/api/build/docs-assets/_templates/prev-next.html +0 -19
- package/docs/api/build/docs-assets/_templates/versioned-canonical.html +0 -8
- package/docs/api/build/docs-assets/themes/inrupt/theme.conf +0 -18
- package/docs/api/build/doctrees/classes/ConfigurationError.doctree +0 -0
- package/docs/api/build/doctrees/classes/InMemoryStorage.doctree +0 -0
- package/docs/api/build/doctrees/classes/NotImplementedError.doctree +0 -0
- package/docs/api/build/doctrees/classes/Session.doctree +0 -0
- package/docs/api/build/doctrees/environment.pickle +0 -0
- package/docs/api/build/doctrees/functions.doctree +0 -0
- package/docs/api/build/doctrees/index.doctree +0 -0
- package/docs/api/build/doctrees/interfaces/ILoginInputOptions.doctree +0 -0
- package/docs/api/build/doctrees/interfaces/ISessionInfo.doctree +0 -0
- package/docs/api/build/doctrees/interfaces/ISessionOptions.doctree +0 -0
- package/docs/api/build/doctrees/interfaces/IStorage.doctree +0 -0
- package/docs/api/build/html/.buildinfo +0 -4
- package/docs/api/build/html/_static/basic.css +0 -905
- package/docs/api/build/html/_static/css/blank.css +0 -2
- package/docs/api/build/html/_static/css/index.ff1ffe594081f20da1ef19478df9384b.css +0 -6
- package/docs/api/build/html/_static/css/inrupt.css +0 -349
- package/docs/api/build/html/_static/css/theme.css +0 -120
- package/docs/api/build/html/_static/doctools.js +0 -323
- package/docs/api/build/html/_static/documentation_options.js +0 -12
- package/docs/api/build/html/_static/file.png +0 -0
- package/docs/api/build/html/_static/jquery-3.5.1.js +0 -10872
- package/docs/api/build/html/_static/jquery.js +0 -2
- package/docs/api/build/html/_static/js/index.be7d3bbb2ef33a8344ce.js +0 -32
- package/docs/api/build/html/_static/language_data.js +0 -297
- package/docs/api/build/html/_static/minus.png +0 -0
- package/docs/api/build/html/_static/plus.png +0 -0
- package/docs/api/build/html/_static/pygments.css +0 -74
- package/docs/api/build/html/_static/searchtools.js +0 -529
- package/docs/api/build/html/_static/underscore-1.13.1.js +0 -2042
- package/docs/api/build/html/_static/underscore.js +0 -6
- package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/LICENSE.txt +0 -34
- package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/css/all.min.css +0 -5
- package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-brands-400.eot +0 -0
- package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-brands-400.svg +0 -3570
- package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-brands-400.ttf +0 -0
- package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-brands-400.woff +0 -0
- package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-brands-400.woff2 +0 -0
- package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-regular-400.eot +0 -0
- package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-regular-400.svg +0 -803
- package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-regular-400.ttf +0 -0
- package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-regular-400.woff +0 -0
- package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-regular-400.woff2 +0 -0
- package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-solid-900.eot +0 -0
- package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-solid-900.svg +0 -4938
- package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-solid-900.ttf +0 -0
- package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-solid-900.woff +0 -0
- package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-solid-900.woff2 +0 -0
- package/docs/api/build/html/_static/webpack-macros.html +0 -25
- package/docs/api/build/html/classes/ConfigurationError.html +0 -726
- package/docs/api/build/html/classes/InMemoryStorage.html +0 -636
- package/docs/api/build/html/classes/NotImplementedError.html +0 -726
- package/docs/api/build/html/classes/Session.html +0 -2428
- package/docs/api/build/html/functions.html +0 -834
- package/docs/api/build/html/genindex.html +0 -311
- package/docs/api/build/html/index.html +0 -342
- package/docs/api/build/html/interfaces/ILoginInputOptions.html +0 -595
- package/docs/api/build/html/interfaces/ISessionInfo.html +0 -481
- package/docs/api/build/html/interfaces/ISessionOptions.html +0 -463
- package/docs/api/build/html/interfaces/IStorage.html +0 -531
- package/docs/api/build/html/objects.inv +0 -0
- package/docs/api/build/html/search.html +0 -340
- package/docs/api/build/html/searchindex.js +0 -1
- package/docs/api/build/source/classes/ConfigurationError.md +0 -159
- package/docs/api/build/source/classes/InMemoryStorage.md +0 -112
- package/docs/api/build/source/classes/NotImplementedError.md +0 -159
- package/docs/api/build/source/classes/Session.md +0 -907
- package/docs/api/build/source/functions.md +0 -235
- package/docs/api/build/source/index.rst +0 -13
- package/docs/api/build/source/interfaces/ILoginInputOptions.md +0 -109
- package/docs/api/build/source/interfaces/ISessionInfo.md +0 -63
- package/docs/api/build/source/interfaces/ISessionOptions.md +0 -60
- package/docs/api/build/source/interfaces/IStorage.md +0 -76
- package/docs/api/conf.py +0 -135
- package/docs/api/redirects.txt +0 -41
- package/docs/api/requirements.txt +0 -5
- package/docs/api/source/api/.nojekyll +0 -1
- package/docs/api/source/api/classes/ConfigurationError.md +0 -163
- package/docs/api/source/api/classes/InMemoryStorage.md +0 -112
- package/docs/api/source/api/classes/NotImplementedError.md +0 -163
- package/docs/api/source/api/classes/Session.md +0 -1426
- package/docs/api/source/api/index.md +0 -251
- package/docs/api/source/api/interfaces/ILoginInputOptions.md +0 -109
- package/docs/api/source/api/interfaces/ISessionInfo.md +0 -63
- package/docs/api/source/api/interfaces/ISessionOptions.md +0 -60
- package/docs/api/source/api/interfaces/IStorage.md +0 -76
- package/docs/api/source/functions.md +0 -3
- package/docs/api/source/index.rst +0 -13
- package/examples/demoAuthentiationMonitor/index.js +0 -34
- package/examples/demoAuthentiationMonitor/package-lock.json +0 -916
- package/examples/demoAuthentiationMonitor/package.json +0 -15
- package/examples/demoClientApp/.babelrc +0 -3
- package/examples/demoClientApp/package-lock.json +0 -11710
- package/examples/demoClientApp/package.json +0 -37
- package/examples/demoClientApp/src/DemoClientApp.js +0 -686
- package/examples/demoClientApp/src/index.html +0 -142
- package/examples/demoClientApp/src/index.js +0 -26
- package/examples/demoClientApp/webpack.config.js +0 -39
- package/examples/single/bundle/.babelrc +0 -3
- package/examples/single/bundle/README.md +0 -11
- package/examples/single/bundle/client-app-profile.ttl +0 -10
- package/examples/single/bundle/package-lock.json +0 -11196
- package/examples/single/bundle/package.json +0 -31
- package/examples/single/bundle/src/App.js +0 -123
- package/examples/single/bundle/src/index.html +0 -10
- package/examples/single/bundle/src/index.js +0 -26
- package/examples/single/bundle/webpack.config.js +0 -33
- package/examples/single/script/README.md +0 -11
- package/examples/single/script/index.html +0 -36
- package/examples/single/script/package-lock.json +0 -1293
- package/examples/single/script/package.json +0 -20
- package/examples/single/script/server.ts +0 -18
- package/jest.config.js +0 -10
- package/licenses.csv +0 -147
- package/rollup.config.js +0 -57
- package/sampleFlows/SolidAuthClientArchitecture.png +0 -0
- package/sampleFlows/authorization-code-with-pkce.png +0 -0
- package/sampleFlows/authorization-code-with-pkce.seqdiag +0 -46
- package/sampleFlows/authorization-code.png +0 -0
- package/sampleFlows/authorization-code.seqdiag +0 -50
- package/sampleFlows/client-credentials.png +0 -0
- package/sampleFlows/client-credentials.seqdiag +0 -38
- package/sampleFlows/legacy-implicit-flow.png +0 -0
- package/sampleFlows/legacy-implicit-flow.seqdiag +0 -43
- package/sampleFlows/self-signed.png +0 -0
- package/sampleFlows/self-signed.seqdiag +0 -49
- package/sampleFlows/signatory-access-control.seqdiag +0 -36
- package/sampleFlows/signatory-access-control.svg +0 -1
- package/tsconfig.eslint.json +0 -6
- package/tsconfig.json +0 -17
|
@@ -1,235 +0,0 @@
|
|
|
1
|
-
# Functions
|
|
2
|
-
|
|
3
|
-
## Table of contents
|
|
4
|
-
|
|
5
|
-
### Functions
|
|
6
|
-
|
|
7
|
-
- [fetch](functions.html#fetch)
|
|
8
|
-
- [getClientAuthenticationWithDependencies](functions.html#getclientauthenticationwithdependencies)
|
|
9
|
-
- [getDefaultSession](functions.html#getdefaultsession)
|
|
10
|
-
- [handleIncomingRedirect](functions.html#handleincomingredirect)
|
|
11
|
-
- [login](functions.html#login)
|
|
12
|
-
- [logout](functions.html#logout)
|
|
13
|
-
- [onLogin](functions.html#onlogin)
|
|
14
|
-
- [onLogout](functions.html#onlogout)
|
|
15
|
-
- [onSessionRestore](functions.html#onsessionrestore)
|
|
16
|
-
|
|
17
|
-
## Functions
|
|
18
|
-
|
|
19
|
-
### fetch
|
|
20
|
-
|
|
21
|
-
▸ `Const` **fetch**(`url`, `init?`): `Promise`<`Response`\>
|
|
22
|
-
|
|
23
|
-
This function's signature is equal to `window.fetch`, but if the current user is authenticated
|
|
24
|
-
(see [login](classes/Session.html#login) and [handleIncomingRedirect](classes/Session.html#handleincomingredirect)), requests made using it will include that user's
|
|
25
|
-
credentials. If not, this will behave just like the regular `window.fetch`.
|
|
26
|
-
|
|
27
|
-
**`see`** [https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch)
|
|
28
|
-
|
|
29
|
-
**`since`** 1.3.0
|
|
30
|
-
|
|
31
|
-
#### Parameters
|
|
32
|
-
|
|
33
|
-
| Name | Type |
|
|
34
|
-
| :------ | :------ |
|
|
35
|
-
| `url` | `RequestInfo` |
|
|
36
|
-
| `init?` | `RequestInit` |
|
|
37
|
-
|
|
38
|
-
#### Returns
|
|
39
|
-
|
|
40
|
-
`Promise`<`Response`\>
|
|
41
|
-
|
|
42
|
-
#### Defined in
|
|
43
|
-
|
|
44
|
-
[browser/src/defaultSession.ts:51](https://github.com/inrupt/solid-client-authn-js/blob/4bd2cf13/packages/browser/src/defaultSession.ts#L51)
|
|
45
|
-
|
|
46
|
-
___
|
|
47
|
-
|
|
48
|
-
### getClientAuthenticationWithDependencies
|
|
49
|
-
|
|
50
|
-
▸ **getClientAuthenticationWithDependencies**(`dependencies`): `ClientAuthentication`
|
|
51
|
-
|
|
52
|
-
**`deprecated`** This function will be removed from the external API in an upcoming release.
|
|
53
|
-
|
|
54
|
-
#### Parameters
|
|
55
|
-
|
|
56
|
-
| Name | Type |
|
|
57
|
-
| :------ | :------ |
|
|
58
|
-
| `dependencies` | `Object` |
|
|
59
|
-
| `dependencies.insecureStorage?` | [`IStorage`](interfaces/IStorage.md) |
|
|
60
|
-
| `dependencies.secureStorage?` | [`IStorage`](interfaces/IStorage.md) |
|
|
61
|
-
|
|
62
|
-
#### Returns
|
|
63
|
-
|
|
64
|
-
`ClientAuthentication`
|
|
65
|
-
|
|
66
|
-
#### Defined in
|
|
67
|
-
|
|
68
|
-
[browser/src/dependencies.ts:52](https://github.com/inrupt/solid-client-authn-js/blob/4bd2cf13/packages/browser/src/dependencies.ts#L52)
|
|
69
|
-
|
|
70
|
-
___
|
|
71
|
-
|
|
72
|
-
### getDefaultSession
|
|
73
|
-
|
|
74
|
-
▸ **getDefaultSession**(): [`Session`](classes/Session.md)
|
|
75
|
-
|
|
76
|
-
Obtain the [Session](classes/Session.md) used when not explicitly instantiating one yourself.
|
|
77
|
-
|
|
78
|
-
When using the top-level exports [fetch](classes/Session.html#fetch), [login](classes/Session.html#login), [logout](classes/Session.html#logout),
|
|
79
|
-
[handleIncomingRedirect](classes/Session.html#handleincomingredirect), [onLogin](classes/Session.html#onlogin) and [onLogout](classes/Session.html#onlogout), these apply to an
|
|
80
|
-
implicitly-instantiated [Session](classes/Session.md).
|
|
81
|
-
This function returns a reference to that Session in order to obtain e.g. the current user's
|
|
82
|
-
WebID.
|
|
83
|
-
|
|
84
|
-
**`since`** 1.3.0
|
|
85
|
-
|
|
86
|
-
#### Returns
|
|
87
|
-
|
|
88
|
-
[`Session`](classes/Session.md)
|
|
89
|
-
|
|
90
|
-
#### Defined in
|
|
91
|
-
|
|
92
|
-
[browser/src/defaultSession.ts:36](https://github.com/inrupt/solid-client-authn-js/blob/4bd2cf13/packages/browser/src/defaultSession.ts#L36)
|
|
93
|
-
|
|
94
|
-
___
|
|
95
|
-
|
|
96
|
-
### handleIncomingRedirect
|
|
97
|
-
|
|
98
|
-
▸ `Const` **handleIncomingRedirect**(`inputOptions?`): `Promise`<`undefined` \| [`ISessionInfo`](interfaces/ISessionInfo.md)\>
|
|
99
|
-
|
|
100
|
-
Completes the login process by processing the information provided by the Solid identity provider through redirect.
|
|
101
|
-
|
|
102
|
-
**`since`** 1.3.0
|
|
103
|
-
|
|
104
|
-
#### Parameters
|
|
105
|
-
|
|
106
|
-
| Name | Type |
|
|
107
|
-
| :------ | :------ |
|
|
108
|
-
| `inputOptions` | `string` \| `IHandleIncomingRedirectOptions` |
|
|
109
|
-
|
|
110
|
-
#### Returns
|
|
111
|
-
|
|
112
|
-
`Promise`<`undefined` \| [`ISessionInfo`](interfaces/ISessionInfo.md)\>
|
|
113
|
-
|
|
114
|
-
#### Defined in
|
|
115
|
-
|
|
116
|
-
[browser/src/defaultSession.ts:85](https://github.com/inrupt/solid-client-authn-js/blob/4bd2cf13/packages/browser/src/defaultSession.ts#L85)
|
|
117
|
-
|
|
118
|
-
___
|
|
119
|
-
|
|
120
|
-
### login
|
|
121
|
-
|
|
122
|
-
▸ `Const` **login**(`options`): `Promise`<`void`\>
|
|
123
|
-
|
|
124
|
-
Triggers the login process. Note that this method will redirect the user away from your app.
|
|
125
|
-
|
|
126
|
-
**`since`** 1.3.0
|
|
127
|
-
|
|
128
|
-
#### Parameters
|
|
129
|
-
|
|
130
|
-
| Name | Type | Description |
|
|
131
|
-
| :------ | :------ | :------ |
|
|
132
|
-
| `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. |
|
|
133
|
-
|
|
134
|
-
#### Returns
|
|
135
|
-
|
|
136
|
-
`Promise`<`void`\>
|
|
137
|
-
|
|
138
|
-
This method should redirect the user away from the app: it does not return anything. The login process is completed by [handleIncomingRedirect](classes/Session.html#handleincomingredirect).
|
|
139
|
-
|
|
140
|
-
#### Defined in
|
|
141
|
-
|
|
142
|
-
[browser/src/defaultSession.ts:63](https://github.com/inrupt/solid-client-authn-js/blob/4bd2cf13/packages/browser/src/defaultSession.ts#L63)
|
|
143
|
-
|
|
144
|
-
___
|
|
145
|
-
|
|
146
|
-
### logout
|
|
147
|
-
|
|
148
|
-
▸ `Const` **logout**(): `Promise`<`void`\>
|
|
149
|
-
|
|
150
|
-
Logs the user out of the application. This does not log the user out of their
|
|
151
|
-
Solid identity provider, and should not redirect the user away.
|
|
152
|
-
|
|
153
|
-
**`since`** 1.3.0
|
|
154
|
-
|
|
155
|
-
#### Returns
|
|
156
|
-
|
|
157
|
-
`Promise`<`void`\>
|
|
158
|
-
|
|
159
|
-
#### Defined in
|
|
160
|
-
|
|
161
|
-
[browser/src/defaultSession.ts:74](https://github.com/inrupt/solid-client-authn-js/blob/4bd2cf13/packages/browser/src/defaultSession.ts#L74)
|
|
162
|
-
|
|
163
|
-
___
|
|
164
|
-
|
|
165
|
-
### onLogin
|
|
166
|
-
|
|
167
|
-
▸ `Const` **onLogin**(`callback`): `void`
|
|
168
|
-
|
|
169
|
-
Register a callback function to be called when a user completes login.
|
|
170
|
-
|
|
171
|
-
The callback is called when [handleIncomingRedirect](classes/Session.html#handleincomingredirect) completes successfully.
|
|
172
|
-
|
|
173
|
-
**`since`** 1.3.0
|
|
174
|
-
|
|
175
|
-
#### Parameters
|
|
176
|
-
|
|
177
|
-
| Name | Type | Description |
|
|
178
|
-
| :------ | :------ | :------ |
|
|
179
|
-
| `callback` | () => `unknown` | The function called when a user completes login. |
|
|
180
|
-
|
|
181
|
-
#### Returns
|
|
182
|
-
|
|
183
|
-
`void`
|
|
184
|
-
|
|
185
|
-
#### Defined in
|
|
186
|
-
|
|
187
|
-
[browser/src/defaultSession.ts:100](https://github.com/inrupt/solid-client-authn-js/blob/4bd2cf13/packages/browser/src/defaultSession.ts#L100)
|
|
188
|
-
|
|
189
|
-
___
|
|
190
|
-
|
|
191
|
-
### onLogout
|
|
192
|
-
|
|
193
|
-
▸ `Const` **onLogout**(`callback`): `void`
|
|
194
|
-
|
|
195
|
-
Register a callback function to be called when a user logs out:
|
|
196
|
-
|
|
197
|
-
**`since`** 1.3.0
|
|
198
|
-
|
|
199
|
-
#### Parameters
|
|
200
|
-
|
|
201
|
-
| Name | Type | Description |
|
|
202
|
-
| :------ | :------ | :------ |
|
|
203
|
-
| `callback` | () => `unknown` | The function called when a user completes logout. |
|
|
204
|
-
|
|
205
|
-
#### Returns
|
|
206
|
-
|
|
207
|
-
`void`
|
|
208
|
-
|
|
209
|
-
#### Defined in
|
|
210
|
-
|
|
211
|
-
[browser/src/defaultSession.ts:111](https://github.com/inrupt/solid-client-authn-js/blob/4bd2cf13/packages/browser/src/defaultSession.ts#L111)
|
|
212
|
-
|
|
213
|
-
___
|
|
214
|
-
|
|
215
|
-
### onSessionRestore
|
|
216
|
-
|
|
217
|
-
▸ `Const` **onSessionRestore**(`callback`): `void`
|
|
218
|
-
|
|
219
|
-
Register a callback function to be called when a session is restored:
|
|
220
|
-
|
|
221
|
-
**`since`** 1.3.0
|
|
222
|
-
|
|
223
|
-
#### Parameters
|
|
224
|
-
|
|
225
|
-
| Name | Type | Description |
|
|
226
|
-
| :------ | :------ | :------ |
|
|
227
|
-
| `callback` | (`currentUrl`: `string`) => `unknown` | The function called when a session is restored. |
|
|
228
|
-
|
|
229
|
-
#### Returns
|
|
230
|
-
|
|
231
|
-
`void`
|
|
232
|
-
|
|
233
|
-
#### Defined in
|
|
234
|
-
|
|
235
|
-
[browser/src/defaultSession.ts:122](https://github.com/inrupt/solid-client-authn-js/blob/4bd2cf13/packages/browser/src/defaultSession.ts#L122)
|
|
@@ -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,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.html#clientid)
|
|
10
|
-
- [clientName](ILoginInputOptions.html#clientname)
|
|
11
|
-
- [clientSecret](ILoginInputOptions.html#clientsecret)
|
|
12
|
-
- [oidcIssuer](ILoginInputOptions.html#oidcissuer)
|
|
13
|
-
- [redirectUrl](ILoginInputOptions.html#redirecturl)
|
|
14
|
-
- [refreshToken](ILoginInputOptions.html#refreshtoken)
|
|
15
|
-
- [tokenType](ILoginInputOptions.html#tokentype)
|
|
16
|
-
|
|
17
|
-
### Methods
|
|
18
|
-
|
|
19
|
-
- [handleRedirect](ILoginInputOptions.html#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.html#clientappid)
|
|
10
|
-
- [expirationDate](ISessionInfo.html#expirationdate)
|
|
11
|
-
- [isLoggedIn](ISessionInfo.html#isloggedin)
|
|
12
|
-
- [sessionId](ISessionInfo.html#sessionid)
|
|
13
|
-
- [webId](ISessionInfo.html#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.html#clientauthentication)
|
|
10
|
-
- [insecureStorage](ISessionOptions.html#insecurestorage)
|
|
11
|
-
- [secureStorage](ISessionOptions.html#securestorage)
|
|
12
|
-
- [sessionInfo](ISessionOptions.html#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/4bd2cf13/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/4bd2cf13/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/4bd2cf13/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/4bd2cf13/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.html#delete)
|
|
14
|
-
- [get](IStorage.html#get)
|
|
15
|
-
- [set](IStorage.html#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
|
package/docs/api/conf.py
DELETED
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
# Configuration file for the Sphinx documentation builder.
|
|
2
|
-
#
|
|
3
|
-
# This file only contains a selection of the most common options. For a full
|
|
4
|
-
# list see the documentation:
|
|
5
|
-
# https://www.sphinx-doc.org/en/master/usage/configuration.html
|
|
6
|
-
|
|
7
|
-
# -- Path setup --------------------------------------------------------------
|
|
8
|
-
|
|
9
|
-
# If extensions (or modules to document with autodoc) are in another directory,
|
|
10
|
-
# add these directories to sys.path here. If the directory is relative to the
|
|
11
|
-
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
|
12
|
-
#
|
|
13
|
-
# import os
|
|
14
|
-
# import sys
|
|
15
|
-
# sys.path.insert(0, os.path.abspath('.'))
|
|
16
|
-
|
|
17
|
-
# -- Project information -----------------------------------------------------
|
|
18
|
-
|
|
19
|
-
import datetime
|
|
20
|
-
|
|
21
|
-
copyright = u'{0} Inrupt Inc.'.format(datetime.date.today().year)
|
|
22
|
-
|
|
23
|
-
# -- General configuration ---------------------------------------------------
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
# -- product name -----
|
|
27
|
-
# -- Separately update code samples and toc links and docs-navbar since not using substitutions--
|
|
28
|
-
|
|
29
|
-
name = 'solid-client-authn-browser'
|
|
30
|
-
repo_name = 'solid-client-authn-js'
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
pygments_style = 'sphinx'
|
|
34
|
-
|
|
35
|
-
# -- Using .txt instead of .rst for restructured text -----------------------
|
|
36
|
-
source_suffix = {
|
|
37
|
-
'.rst': 'restructuredtext',
|
|
38
|
-
'.md': 'markdown',
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
# -- Add lexers
|
|
42
|
-
from sphinx.highlighting import lexers
|
|
43
|
-
|
|
44
|
-
highlight_language = 'javascript'
|
|
45
|
-
|
|
46
|
-
# Add any Sphinx extension module names here, as strings. They can be
|
|
47
|
-
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
|
48
|
-
# ones.
|
|
49
|
-
extensions = [
|
|
50
|
-
'sphinx.ext.extlinks',
|
|
51
|
-
'sphinx.ext.todo',
|
|
52
|
-
'myst_parser',
|
|
53
|
-
]
|
|
54
|
-
|
|
55
|
-
extlinks = {
|
|
56
|
-
'apimodule': ('./api/module',''),
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
# Add any paths that contain templates here, relative to this directory.
|
|
60
|
-
templates_path = ['./build/docs-assets/_templates']
|
|
61
|
-
|
|
62
|
-
# List of patterns, relative to source directory, that match files and
|
|
63
|
-
# directories to ignore when looking for source files.
|
|
64
|
-
# This pattern also affects html_static_path and html_extra_path.
|
|
65
|
-
exclude_patterns = ['./source/reference/api']
|
|
66
|
-
|
|
67
|
-
# -- Options for HTML output -------------------------------------------------
|
|
68
|
-
|
|
69
|
-
# The theme to use for HTML and HTML Help pages. See the documentation for
|
|
70
|
-
# a list of builtin themes.
|
|
71
|
-
#
|
|
72
|
-
#html_theme = 'alabaster'
|
|
73
|
-
|
|
74
|
-
html_theme = 'inrupt'
|
|
75
|
-
html_theme_path = ['./build/docs-assets/themes']
|
|
76
|
-
|
|
77
|
-
html_copy_source = False
|
|
78
|
-
|
|
79
|
-
html_title = 'Inrupt {0} API Documentation'.format(name)
|
|
80
|
-
|
|
81
|
-
# These theme options are declared in ./themes/inrupt/theme.conf
|
|
82
|
-
# as well as some for pydata_sphinx_theme
|
|
83
|
-
|
|
84
|
-
html_theme_options = {
|
|
85
|
-
'project_title': 'Inrupt {0} API'.format(name),
|
|
86
|
-
'banner': False,
|
|
87
|
-
'banner_msg': '',
|
|
88
|
-
'robots_index': True,
|
|
89
|
-
'github_editable': False,
|
|
90
|
-
'github_org': 'inrupt',
|
|
91
|
-
'github_repo': repo_name,
|
|
92
|
-
'github_branch': 'main',
|
|
93
|
-
'docs_project': 'developer-tools/api/javascript/{0}'.format(name),
|
|
94
|
-
'show_api_menu': True,
|
|
95
|
-
|
|
96
|
-
# below are pydata_sphinx_theme
|
|
97
|
-
"footer_items": [ "copyright.html"],
|
|
98
|
-
"navbar_align": "left",
|
|
99
|
-
"icon_links": [
|
|
100
|
-
{
|
|
101
|
-
"name": "Inrupt on Twitter",
|
|
102
|
-
"url": "https://twitter.com/inrupt",
|
|
103
|
-
"icon": "fab fa-twitter-square",
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"name": "Inrupt on LinkedIn",
|
|
107
|
-
"url": "https://www.linkedin.com/company/inrupt/",
|
|
108
|
-
"icon": "fab fa-linkedin",
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"name": "Solid forum",
|
|
112
|
-
"url": "https://forum.solidproject.org/",
|
|
113
|
-
"icon": "fas fa-users",
|
|
114
|
-
},
|
|
115
|
-
],
|
|
116
|
-
"favicons": [
|
|
117
|
-
{
|
|
118
|
-
"rel": "icon",
|
|
119
|
-
"sizes": "16x16",
|
|
120
|
-
"href": "https://docs.inrupt.com/inrupt_stickers_v2-03.png",
|
|
121
|
-
},
|
|
122
|
-
],
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
# Add any paths that contain custom static files (such as style sheets) here,
|
|
126
|
-
# relative to this directory. They are copied after the builtin static files,
|
|
127
|
-
# so a file named "default.css" will overwrite the builtin "default.css".
|
|
128
|
-
html_static_path = ['./build/docs-assets/_static']
|
|
129
|
-
|
|
130
|
-
html_sidebars = {
|
|
131
|
-
'**': [ 'search-field.html', 'docs-sidebar.html'],
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
locale_dirs = ['locale/'] # path is example but recommended.
|
|
135
|
-
gettext_compact = False # optional.
|