@api-client/ui 0.5.39 → 0.5.40
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/build/tsconfig.tsbuildinfo +1 -0
- package/package.json +1 -1
- package/.aiexclude +0 -3
- package/.cursor/rules/html-and-css-best-practices.mdc +0 -63
- package/.cursor/rules/lit-best-practices.mdc +0 -89
- package/.editorconfig +0 -29
- package/.github/CONTRIBUTING.md +0 -24
- package/.github/instructions/html-and-css-best-practices.instructions.md +0 -70
- package/.github/instructions/lit-best-practices.instructions.md +0 -90
- package/.github/release.yml +0 -14
- package/.github/stale.yml +0 -23
- package/.github/workflows/auto-release.yml +0 -182
- package/.github/workflows/release.yml +0 -82
- package/.prettierrc.js +0 -14
- package/.vscode/settings.json +0 -18
- package/RELEASE.md +0 -163
- package/RELEASE_SETUP.md +0 -235
- package/build/src/demo/DemoPage.d.ts +0 -81
- package/build/src/demo/DemoPage.d.ts.map +0 -1
- package/build/src/demo/DemoPage.js +0 -175
- package/build/src/demo/DemoPage.js.map +0 -1
- package/build/src/demo/DemoStyles.d.ts +0 -3
- package/build/src/demo/DemoStyles.d.ts.map +0 -1
- package/build/src/demo/DemoStyles.js +0 -60
- package/build/src/demo/DemoStyles.js.map +0 -1
- package/build/test/elements/navigation/Navigation.test.d.ts +0 -3
- package/build/test/elements/navigation/Navigation.test.d.ts.map +0 -1
- package/build/test/elements/navigation/Navigation.test.js +0 -113
- package/build/test/elements/navigation/Navigation.test.js.map +0 -1
- package/commitlint.config.cjs +0 -2
- package/demo/elements/authorization/AuthPlugin.js +0 -57
- package/demo/elements/authorization/AuthProxy.js +0 -215
- package/demo/elements/authorization/api-key.html +0 -27
- package/demo/elements/authorization/api-key.ts +0 -44
- package/demo/elements/authorization/basic.html +0 -27
- package/demo/elements/authorization/basic.ts +0 -43
- package/demo/elements/authorization/bearer.html +0 -27
- package/demo/elements/authorization/bearer.ts +0 -43
- package/demo/elements/authorization/env.js +0 -8
- package/demo/elements/authorization/index.html +0 -44
- package/demo/elements/authorization/ntlm.html +0 -27
- package/demo/elements/authorization/ntlm.ts +0 -43
- package/demo/elements/authorization/oauth-authorize.html +0 -75
- package/demo/elements/authorization/oauth-authorize.ts +0 -40
- package/demo/elements/authorization/oauth-error.html +0 -18
- package/demo/elements/authorization/oauth-error.ts +0 -10
- package/demo/elements/authorization/oauth-popup.html +0 -36
- package/demo/elements/authorization/oauth2.html +0 -27
- package/demo/elements/authorization/oauth2.ts +0 -100
- package/demo/elements/authorization/oidc.html +0 -27
- package/demo/elements/authorization/oidc.ts +0 -139
- package/demo/elements/authorization/private.crt +0 -31
- package/demo/elements/authorization/private.csr +0 -28
- package/demo/elements/authorization/private.key +0 -51
- package/demo/elements/authorization/private.pem +0 -31
- package/demo/elements/authorization/redirect.html +0 -20
- package/demo/elements/authorization/ssl-commands.sh +0 -30
- package/demo/elements/authorization/ssl.conf +0 -24
- package/demo/elements/autocomplete/index.html +0 -64
- package/demo/elements/autocomplete/index.ts +0 -171
- package/demo/elements/code-editor/CodeEditorDemo.ts +0 -173
- package/demo/elements/code-editor/index.html +0 -19
- package/demo/elements/context-menu/DemoIcons.ts +0 -21
- package/demo/elements/context-menu/basic.html +0 -25
- package/demo/elements/context-menu/basic.ts +0 -119
- package/demo/elements/context-menu/custom-data.html +0 -25
- package/demo/elements/context-menu/custom-data.ts +0 -62
- package/demo/elements/context-menu/demo.css +0 -28
- package/demo/elements/context-menu/enabled-state.html +0 -25
- package/demo/elements/context-menu/enabled-state.ts +0 -73
- package/demo/elements/context-menu/icons.html +0 -25
- package/demo/elements/context-menu/icons.ts +0 -64
- package/demo/elements/context-menu/index.html +0 -43
- package/demo/elements/context-menu/nested.html +0 -25
- package/demo/elements/context-menu/nestedt.ts +0 -152
- package/demo/elements/context-menu/no-execute.html +0 -25
- package/demo/elements/context-menu/no-execute.ts +0 -134
- package/demo/elements/context-menu/radio-menu.html +0 -25
- package/demo/elements/context-menu/radio-menu.ts +0 -83
- package/demo/elements/context-menu/separators.html +0 -25
- package/demo/elements/context-menu/separators.ts +0 -172
- package/demo/elements/currency/index.html +0 -91
- package/demo/elements/currency/index.ts +0 -352
- package/demo/elements/environment/environment-editor.html +0 -20
- package/demo/elements/environment/environment-editor.ts +0 -49
- package/demo/elements/environment/index.html +0 -33
- package/demo/elements/environment/server-editor.html +0 -20
- package/demo/elements/environment/server-editor.ts +0 -67
- package/demo/elements/environment/variables-editor.html +0 -20
- package/demo/elements/environment/variables-editor.ts +0 -94
- package/demo/elements/har/har-viewer.html +0 -20
- package/demo/elements/har/har-viewer.ts +0 -76
- package/demo/elements/har/har1.har +0 -3044
- package/demo/elements/har/har2.json +0 -439
- package/demo/elements/har/index.html +0 -26
- package/demo/elements/highlight/example.md +0 -27
- package/demo/elements/highlight/index.html +0 -31
- package/demo/elements/highlight/marked-highlight.html +0 -132
- package/demo/elements/highlight/marked-highlight.ts +0 -22
- package/demo/elements/highlight/prism-highlight.html +0 -62
- package/demo/elements/highlight/prism-highlight.ts +0 -17
- package/demo/elements/http/body-editor.html +0 -17
- package/demo/elements/http/body-editor.ts +0 -115
- package/demo/elements/http/headers.html +0 -17
- package/demo/elements/http/headers.ts +0 -59
- package/demo/elements/http/http-assertions.html +0 -20
- package/demo/elements/http/http-assertions.ts +0 -89
- package/demo/elements/http/http-flows.html +0 -23
- package/demo/elements/http/http-flows.ts +0 -89
- package/demo/elements/http/index.html +0 -45
- package/demo/elements/http/request-editor.html +0 -26
- package/demo/elements/http/request-editor.ts +0 -197
- package/demo/elements/http/request-log.html +0 -16
- package/demo/elements/http/request-log.ts +0 -136
- package/demo/elements/http/url-editing.html +0 -17
- package/demo/elements/http/url-editing.ts +0 -112
- package/demo/elements/icons/index.html +0 -81
- package/demo/elements/icons/index.ts +0 -52
- package/demo/elements/index.html +0 -72
- package/demo/elements/mention-textarea/index.html +0 -19
- package/demo/elements/mention-textarea/index.ts +0 -205
- package/demo/elements/navigation/navigation-item.html +0 -49
- package/demo/elements/navigation/navigation-item.ts +0 -131
- package/demo/elements/navigation/navigation.html +0 -20
- package/demo/elements/navigation/navigation.ts +0 -45
- package/demo/elements/project/index.html +0 -29
- package/demo/elements/project/project-run-report.html +0 -20
- package/demo/elements/project/project-run-report.ts +0 -132
- package/demo/elements/project/request-editor.html +0 -23
- package/demo/elements/project/request-editor.ts +0 -232
- package/demo/elements/user/user-avatar.html +0 -17
- package/demo/elements/user/user-avatar.ts +0 -60
- package/demo/env.js +0 -4
- package/demo/index.html +0 -34
- package/demo/layout/index.html +0 -94
- package/demo/layout/index.ts +0 -190
- package/demo/md/DemoStyles.ts +0 -61
- package/demo/md/UiDemoPage.ts +0 -6
- package/demo/md/buttons/button.html +0 -121
- package/demo/md/buttons/button.ts +0 -246
- package/demo/md/buttons/group.html +0 -36
- package/demo/md/buttons/group.ts +0 -171
- package/demo/md/checkbox/index.html +0 -39
- package/demo/md/checkbox/index.ts +0 -220
- package/demo/md/chip/chip.html +0 -70
- package/demo/md/chip/chip.ts +0 -219
- package/demo/md/chip/pawel6c9a.jpg +0 -0
- package/demo/md/collapse/CustomDetail.ts +0 -89
- package/demo/md/collapse/collapse.html +0 -21
- package/demo/md/collapse/collapse.ts +0 -78
- package/demo/md/date-picker/date-picker.ts +0 -336
- package/demo/md/date-picker/index.html +0 -171
- package/demo/md/dialog/confirm-dialog.html +0 -49
- package/demo/md/dialog/confirm-dialog.ts +0 -121
- package/demo/md/dialog/dialog.html +0 -25
- package/demo/md/dialog/dialog.ts +0 -468
- package/demo/md/dropdown-list/index.html +0 -31
- package/demo/md/dropdown-list/index.ts +0 -158
- package/demo/md/icon-button/index.html +0 -122
- package/demo/md/icon-button/index.ts +0 -132
- package/demo/md/index.html +0 -73
- package/demo/md/inputs/input.html +0 -73
- package/demo/md/inputs/input.ts +0 -278
- package/demo/md/inputs/radio.html +0 -39
- package/demo/md/inputs/radio.ts +0 -156
- package/demo/md/inputs/switch.html +0 -45
- package/demo/md/inputs/switch.ts +0 -144
- package/demo/md/list/list.html +0 -65
- package/demo/md/list/list.ts +0 -204
- package/demo/md/listbox/listbox.html +0 -31
- package/demo/md/listbox/listbox.ts +0 -27
- package/demo/md/menu/index.html +0 -19
- package/demo/md/menu/index.ts +0 -514
- package/demo/md/notification/snack.html +0 -21
- package/demo/md/notification/snack.ts +0 -70
- package/demo/md/progress/progress.html +0 -46
- package/demo/md/progress/progress.ts +0 -161
- package/demo/md/segmented-button/index.html +0 -21
- package/demo/md/segmented-button/index.ts +0 -55
- package/demo/md/select/index.html +0 -16
- package/demo/md/select/index.ts +0 -217
- package/demo/md/tabs/tabs.html +0 -40
- package/demo/md/tabs/tabs.ts +0 -214
- package/demo/oauth-popup.html +0 -36
- package/demo/page.css +0 -8
- package/demo/resources/calendar-month.png +0 -0
- package/demo/resources/favorite.png +0 -0
- package/demo/resources/fingerprint.png +0 -0
- package/demo/resources/home-work.png +0 -0
- package/demo/resources/mood.png +0 -0
- package/demo/resources/print.png +0 -0
- package/demo/resources/stars.png +0 -0
- package/demo/resources/theaters.png +0 -0
- package/demo/tsconfig.json +0 -4
- package/eslint.config.js +0 -97
- package/scripts/copy-assets.js +0 -21
- package/scripts/release.js +0 -66
- package/src/demo/DemoPage.ts +0 -169
- package/src/demo/DemoStyles.ts +0 -60
- package/test/README.md +0 -375
- package/test/contextual-menu/ContextMenu.test.ts +0 -760
- package/test/contextual-menu/ContextMenuElement.test.ts +0 -569
- package/test/core/activity.spec.ts +0 -413
- package/test/core/activity_manager.spec.ts +0 -544
- package/test/core/application.spec.ts +0 -218
- package/test/core/fragment.spec.ts +0 -565
- package/test/core/fragment_manager.spec.ts +0 -404
- package/test/core/live_data.spec.ts +0 -558
- package/test/core/renderer.spec.ts +0 -113
- package/test/dom-assertions.test.ts +0 -182
- package/test/elements/MonacoSetup.ts +0 -65
- package/test/elements/authorization/basic-method.test.ts +0 -177
- package/test/elements/authorization/bearer-method.test.ts +0 -143
- package/test/elements/authorization/ntlm-method.test.ts +0 -219
- package/test/elements/authorization/oauth2-client-credentials-method.test.ts +0 -334
- package/test/elements/authorization/oauth2-code-method.test.ts +0 -320
- package/test/elements/authorization/oauth2-custom-grant-method.test.ts +0 -255
- package/test/elements/authorization/oauth2-device-code-method.test.ts +0 -371
- package/test/elements/authorization/oauth2-implicit-method.test.ts +0 -407
- package/test/elements/authorization/oauth2-jwt-method.test.ts +0 -217
- package/test/elements/authorization/oauth2-password-method.test.ts +0 -275
- package/test/elements/authorization/openid-method.test.ts +0 -591
- package/test/elements/autocomplete/autocomplete-input.spec.ts +0 -646
- package/test/elements/code-editor/code-editor.accessibility.test.ts +0 -298
- package/test/elements/code-editor/code-editor.test.ts +0 -574
- package/test/elements/currency/CurrencyPicker.accessibility.test.ts +0 -328
- package/test/elements/currency/CurrencyPicker.core.test.ts +0 -318
- package/test/elements/currency/CurrencyPicker.integration.test.ts +0 -482
- package/test/elements/currency/CurrencyPicker.test.ts +0 -486
- package/test/elements/data-table/DataTable.browser.test.ts +0 -649
- package/test/elements/har/HarUtils.test.ts +0 -45
- package/test/elements/har/HarViewerElement.test.ts +0 -687
- package/test/elements/har/test-data/har1.har +0 -3044
- package/test/elements/highlight/MarkedHighlightElement.test.ts +0 -452
- package/test/elements/highlight/PrismHighlightElement.test.ts +0 -79
- package/test/elements/highlight/PrismHighlighter.test.ts +0 -94
- package/test/elements/highlight/remoteSanitization.md +0 -1
- package/test/elements/highlight/test.md +0 -3
- package/test/elements/highlight/test1.md +0 -3
- package/test/elements/highlight/test2.md +0 -1
- package/test/elements/http/BodyFormdataEditorElement.test.ts +0 -482
- package/test/elements/http/BodyMultipartEditorElement.test.ts +0 -658
- package/test/elements/http/BodyRawEditorElement.test.ts +0 -90
- package/test/elements/http/CertificateAdd.test.ts +0 -457
- package/test/elements/http/HttpAssertions.test.ts +0 -994
- package/test/elements/http/HttpFlows.test.ts +0 -502
- package/test/elements/http/UrlEncodeUtils.test.ts +0 -202
- package/test/elements/layout/SplitItem.test.ts +0 -440
- package/test/elements/layout/SplitLayoutManager.test.ts +0 -1501
- package/test/elements/layout/SplitPanel.test.ts +0 -1109
- package/test/elements/mention-textarea/MentionTextArea.basic.test.ts +0 -114
- package/test/elements/mention-textarea/MentionTextArea.test.ts +0 -613
- package/test/elements/navigation/Navigation.test.ts +0 -120
- package/test/env.ts +0 -15
- package/test/events/EventTypes.test.ts +0 -363
- package/test/events/EventsTestHelpers.ts +0 -16
- package/test/helpers/TestUtils.ts +0 -243
- package/test/helpers/UiMock.ts +0 -185
- package/test/lib/Dom.test.ts +0 -231
- package/test/md/button/UiButton.test.ts +0 -347
- package/test/md/button/UiIconButton.test.ts +0 -155
- package/test/md/chip/UiChip.test.ts +0 -219
- package/test/md/collapse/UiCollapse.test.ts +0 -250
- package/test/md/collapse/flex-layout.test.ts +0 -105
- package/test/md/date-time/DateTime.test.ts +0 -348
- package/test/md/dialog/UiConfirmDialog.test.ts +0 -131
- package/test/md/dialog/UiDialog.test.ts +0 -759
- package/test/md/menu/Menu.test.ts +0 -855
- package/test/md/menu/MenuIntegration.test.ts +0 -426
- package/test/md/menu/MenuItem.test.ts +0 -652
- package/test/md/menu/SubMenu.test.ts +0 -410
- package/test/md/progress/UiCircularProgressElement.test.ts +0 -481
- package/test/md/progress/UiProgressElement.test.ts +0 -117
- package/test/md/progress/UiRangeElement.test.ts +0 -156
- package/test/md/select/Select.test.ts +0 -925
- package/test/plugins/takeScreenshotPlugin.js +0 -35
- package/test/setup.test.ts +0 -217
- package/test/setup.ts +0 -117
- package/test/tsconfig.json +0 -7
- package/web-dev-server.config.js +0 -21
- package/web-test-runner.config.js +0 -90
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en-GB">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">
|
|
6
|
-
<title>Demo error</title>
|
|
7
|
-
<link
|
|
8
|
-
href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap"
|
|
9
|
-
rel="stylesheet"
|
|
10
|
-
/>
|
|
11
|
-
<link href="../../../src/styles/m3/tokens.css" rel="stylesheet" type="text/css" />
|
|
12
|
-
<link href="../../../src/styles/m3/theme.css" rel="stylesheet" type="text/css" />
|
|
13
|
-
<link href="../../page.css" rel="stylesheet" type="text/css" />
|
|
14
|
-
</head>
|
|
15
|
-
<body>
|
|
16
|
-
<script type="module" src="/.tmp/demo/elements/authorization/oauth-error.js"></script>
|
|
17
|
-
</body>
|
|
18
|
-
</html>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
const u = new window.URL(window.location.href)
|
|
2
|
-
const state = u.searchParams.get('state')
|
|
3
|
-
const errorDesc = 'The request has invalid configuration'
|
|
4
|
-
|
|
5
|
-
const redirectUri = decodeURIComponent(u.searchParams.get('redirect_uri') || '')
|
|
6
|
-
let formUrl = redirectUri
|
|
7
|
-
formUrl += `#error=true&state=${state}`
|
|
8
|
-
formUrl += `&error_description=${encodeURIComponent(errorDesc)}`
|
|
9
|
-
|
|
10
|
-
window.location.replace(formUrl)
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<title>Oauth2 callback window</title>
|
|
6
|
-
<style>*[hidden] { display: none; } </style>
|
|
7
|
-
<link
|
|
8
|
-
href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap"
|
|
9
|
-
rel="stylesheet"
|
|
10
|
-
/>
|
|
11
|
-
<link href="../../../src/styles/m3/tokens.css" rel="stylesheet" type="text/css" />
|
|
12
|
-
<link href="../../../src/styles/m3/theme.css" rel="stylesheet" type="text/css" />
|
|
13
|
-
<link href="../../page.css" rel="stylesheet" type="text/css" />
|
|
14
|
-
</head>
|
|
15
|
-
<body>
|
|
16
|
-
<h1>Sending the authorization data to the application</h1>
|
|
17
|
-
<p id="general-error" hidden>
|
|
18
|
-
The window wasn't opened as a popup and therefore it can't pass the authorization information.<br/>
|
|
19
|
-
This is an error.
|
|
20
|
-
</p>
|
|
21
|
-
<script>
|
|
22
|
-
const messageTarget = (window.opener || window.parent || window.top);
|
|
23
|
-
if (!messageTarget || messageTarget === window || !messageTarget.postMessage) {
|
|
24
|
-
const elm = document.getElementById('general-error');
|
|
25
|
-
elm.removeAttribute('hidden');
|
|
26
|
-
} else {
|
|
27
|
-
const search = window.location.search.substr(1);
|
|
28
|
-
if (search) {
|
|
29
|
-
messageTarget.postMessage(search, '*');
|
|
30
|
-
} else {
|
|
31
|
-
messageTarget.postMessage(window.location.hash.substr(1), '*');
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
</script>
|
|
35
|
-
</body>
|
|
36
|
-
</html>
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
|
|
4
|
-
<head>
|
|
5
|
-
<meta charset="utf-8">
|
|
6
|
-
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">
|
|
7
|
-
<title>OAuth2</title>
|
|
8
|
-
<link
|
|
9
|
-
href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap"
|
|
10
|
-
rel="stylesheet"
|
|
11
|
-
/>
|
|
12
|
-
<link href="../../../src/styles/m3/tokens.css" rel="stylesheet" type="text/css" />
|
|
13
|
-
<link href="../../../src/styles/m3/theme.css" rel="stylesheet" type="text/css" />
|
|
14
|
-
<link href="../../page.css" rel="stylesheet" type="text/css" />
|
|
15
|
-
<style>
|
|
16
|
-
.demo-row {
|
|
17
|
-
margin: 20px 0;
|
|
18
|
-
}
|
|
19
|
-
</style>
|
|
20
|
-
</head>
|
|
21
|
-
|
|
22
|
-
<body class="demo">
|
|
23
|
-
<div id="app"></div>
|
|
24
|
-
<script type="module" src="/.tmp/demo/elements/authorization/oauth2.js"></script>
|
|
25
|
-
</body>
|
|
26
|
-
|
|
27
|
-
</html>
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { html, TemplateResult } from 'lit'
|
|
2
|
-
import { IOAuth2Authorization } from '@api-client/core/models/Authorization.js'
|
|
3
|
-
import { type IRequestAuthorization, RequestAuthorization } from '@api-client/core/models/RequestAuthorization.js'
|
|
4
|
-
import { reactive } from '../../../src/decorators/index.js'
|
|
5
|
-
import { DemoPage } from '../../../src/demo/DemoPage.js'
|
|
6
|
-
import { Authorization } from '../../../src/elements/authorization/ui/Authorization.js'
|
|
7
|
-
import '../../../src/define/authorization/oauth2-authorization.js'
|
|
8
|
-
import '../../../src/define/authorization/oauth2-authorize.js'
|
|
9
|
-
import env from './env.js'
|
|
10
|
-
|
|
11
|
-
const STORE_KEY = 'demo.authorization.editor.oauth2'
|
|
12
|
-
|
|
13
|
-
class ComponentDemoPage extends DemoPage {
|
|
14
|
-
override accessor componentName = 'OAuth 2 authorization'
|
|
15
|
-
|
|
16
|
-
@reactive() accessor authorization: IRequestAuthorization
|
|
17
|
-
|
|
18
|
-
constructor() {
|
|
19
|
-
super()
|
|
20
|
-
const auth = this.restoreAuth()
|
|
21
|
-
if (auth) {
|
|
22
|
-
this.authorization = auth
|
|
23
|
-
} else {
|
|
24
|
-
this.authorization = this.defaultAuthorization()
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
restoreAuth(): IRequestAuthorization | undefined {
|
|
29
|
-
const data = localStorage.getItem(STORE_KEY)
|
|
30
|
-
if (!data) {
|
|
31
|
-
return
|
|
32
|
-
}
|
|
33
|
-
try {
|
|
34
|
-
const tmp = JSON.parse(data)
|
|
35
|
-
if (tmp) {
|
|
36
|
-
return tmp
|
|
37
|
-
}
|
|
38
|
-
} catch {
|
|
39
|
-
//
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
defaultAuthorization(): IRequestAuthorization {
|
|
44
|
-
const auth = RequestAuthorization.fromTypedConfig(
|
|
45
|
-
'oauth 2',
|
|
46
|
-
{
|
|
47
|
-
grantType: 'authorization_code',
|
|
48
|
-
scopes: ['profile', 'email'],
|
|
49
|
-
authorizationUri: new URL('/demo/elements/authorization/oauth-authorize.html', window.location.href).toString(),
|
|
50
|
-
redirectUri: new URL('/demo/elements/authorization/oauth-popup.html', window.location.href).toString(),
|
|
51
|
-
accessTokenUri: `${window.location.origin}/auth/token`,
|
|
52
|
-
credentialsSource: [
|
|
53
|
-
{
|
|
54
|
-
grantType: 'client_credentials',
|
|
55
|
-
credentials: [
|
|
56
|
-
{ name: 'My social Network', clientId: '123', clientSecret: 'xyz' },
|
|
57
|
-
{ name: 'My social Network 2', clientId: '1234', clientSecret: 'wxyz' },
|
|
58
|
-
],
|
|
59
|
-
},
|
|
60
|
-
],
|
|
61
|
-
clientId: 'test-client-id',
|
|
62
|
-
clientSecret: 'test-client-secret',
|
|
63
|
-
pkce: true,
|
|
64
|
-
} as IOAuth2Authorization,
|
|
65
|
-
false
|
|
66
|
-
)
|
|
67
|
-
return auth.toJSON()
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
handleChange(e: Event): void {
|
|
71
|
-
const input = e.target as Authorization
|
|
72
|
-
if (input.authorization) {
|
|
73
|
-
this.authorization = input.authorization
|
|
74
|
-
localStorage.setItem(STORE_KEY, JSON.stringify(this.authorization))
|
|
75
|
-
}
|
|
76
|
-
console.log('Value changed', this.authorization)
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
handleDelete(): void {
|
|
80
|
-
console.log('Requested to delete.')
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
contentTemplate(): TemplateResult {
|
|
84
|
-
return html`
|
|
85
|
-
<a href="./">Back</a>
|
|
86
|
-
<section class="demo-section">
|
|
87
|
-
<oauth2-authorization
|
|
88
|
-
.authorization="${this.authorization as IRequestAuthorization}"
|
|
89
|
-
@change="${this.handleChange}"
|
|
90
|
-
@delete="${this.handleDelete}"
|
|
91
|
-
></oauth2-authorization>
|
|
92
|
-
</section>
|
|
93
|
-
|
|
94
|
-
<oauth2-authorize tokenProxy="${env.oauth2.tokenProxy}"></oauth2-authorize>
|
|
95
|
-
`
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
const instance = new ComponentDemoPage()
|
|
100
|
-
instance.render()
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
|
|
4
|
-
<head>
|
|
5
|
-
<meta charset="utf-8">
|
|
6
|
-
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">
|
|
7
|
-
<title>OpenID Connect</title>
|
|
8
|
-
<link
|
|
9
|
-
href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap"
|
|
10
|
-
rel="stylesheet"
|
|
11
|
-
/>
|
|
12
|
-
<link href="../../../src/styles/m3/tokens.css" rel="stylesheet" type="text/css" />
|
|
13
|
-
<link href="../../../src/styles/m3/theme.css" rel="stylesheet" type="text/css" />
|
|
14
|
-
<link href="../../page.css" rel="stylesheet" type="text/css" />
|
|
15
|
-
<style>
|
|
16
|
-
.demo-row {
|
|
17
|
-
margin: 20px 0;
|
|
18
|
-
}
|
|
19
|
-
</style>
|
|
20
|
-
</head>
|
|
21
|
-
|
|
22
|
-
<body class="demo">
|
|
23
|
-
<div id="app"></div>
|
|
24
|
-
<script type="module" src="/.tmp/demo/elements/authorization/oidc.js"></script>
|
|
25
|
-
</body>
|
|
26
|
-
|
|
27
|
-
</html>
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import { html, TemplateResult } from 'lit'
|
|
2
|
-
import { IOidcAuthorization } from '@api-client/core/models/Authorization.js'
|
|
3
|
-
import { type IRequestAuthorization, RequestAuthorization } from '@api-client/core/models/RequestAuthorization.js'
|
|
4
|
-
import reactive from '../../../src/decorators/reactive.js'
|
|
5
|
-
import { DemoPage } from '../../../src/demo/DemoPage.js'
|
|
6
|
-
import { Authorization } from '../../../src/elements/authorization/ui/Authorization.js'
|
|
7
|
-
import '../../../src/define/authorization/oidc-authorization.js'
|
|
8
|
-
import '../../../src/define/authorization/oidc-authorize.js'
|
|
9
|
-
import env from './env.js'
|
|
10
|
-
|
|
11
|
-
const STORE_KEY = 'authorization.openId.configuration'
|
|
12
|
-
|
|
13
|
-
class ComponentDemo extends DemoPage {
|
|
14
|
-
override accessor componentName = 'OpenID Connect authorization'
|
|
15
|
-
|
|
16
|
-
@reactive() accessor authorization: IRequestAuthorization
|
|
17
|
-
|
|
18
|
-
@reactive() accessor issuers: string[]
|
|
19
|
-
|
|
20
|
-
constructor() {
|
|
21
|
-
super()
|
|
22
|
-
|
|
23
|
-
this.restoreAuth()
|
|
24
|
-
this.authorization = this.defaultAuthorization()
|
|
25
|
-
|
|
26
|
-
// this.issuerUri = env.oauth2.issuer;
|
|
27
|
-
this.issuers = [
|
|
28
|
-
env.oauth2.issuer,
|
|
29
|
-
'https://accounts.google.com/',
|
|
30
|
-
'https://login.salesforce.com/',
|
|
31
|
-
'https://phantauth.net/',
|
|
32
|
-
'https://www.paypalobjects.com/',
|
|
33
|
-
'https://api.login.yahoo.com/',
|
|
34
|
-
'https://login.microsoftonline.com/fabrikamb2c.onmicrosoft.com/v2.0/',
|
|
35
|
-
]
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
restoreAuth(): void {
|
|
39
|
-
const data = localStorage.getItem(STORE_KEY)
|
|
40
|
-
if (!data) {
|
|
41
|
-
return
|
|
42
|
-
}
|
|
43
|
-
try {
|
|
44
|
-
const tmp = JSON.parse(data)
|
|
45
|
-
if (tmp) {
|
|
46
|
-
this.authorization = tmp
|
|
47
|
-
}
|
|
48
|
-
} catch {
|
|
49
|
-
//
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
defaultAuthorization(): IRequestAuthorization {
|
|
54
|
-
// these cid and cs are only allowed for localhost testing.
|
|
55
|
-
// Other origins are banned.
|
|
56
|
-
const cid = '1076318174169-5i48tqquddrk0lv0shbtsaj6kc8c9j5g.apps.googleusercontent.com'
|
|
57
|
-
const cs = 'SF3kI7tqI_BUdc5ACkJ4vjII'
|
|
58
|
-
const auth = RequestAuthorization.fromTypedConfig(
|
|
59
|
-
'open id',
|
|
60
|
-
{
|
|
61
|
-
redirectUri: new URL('/demo/elements/authorization/oauth-popup.html', window.location.href).toString(),
|
|
62
|
-
credentialsSource: [
|
|
63
|
-
{
|
|
64
|
-
grantType: 'client_credentials',
|
|
65
|
-
credentials: [
|
|
66
|
-
{ name: 'My social Network', clientId: '123', clientSecret: 'xyz' },
|
|
67
|
-
{ name: 'My social Network 2', clientId: '1234', clientSecret: 'wxyz' },
|
|
68
|
-
],
|
|
69
|
-
},
|
|
70
|
-
],
|
|
71
|
-
clientId: cid,
|
|
72
|
-
clientSecret: cs,
|
|
73
|
-
issuerUri: 'https://accounts.google.com/',
|
|
74
|
-
} as IOidcAuthorization,
|
|
75
|
-
false
|
|
76
|
-
)
|
|
77
|
-
return auth.toJSON()
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
handleIssuerChange(e: Event): void {
|
|
81
|
-
const input = e.target as HTMLSelectElement
|
|
82
|
-
const auth = RequestAuthorization.fromTypedConfig(
|
|
83
|
-
'open id',
|
|
84
|
-
{
|
|
85
|
-
issuerUri: input.value,
|
|
86
|
-
redirectUri: new URL('/demo/elements/authorization/oauth-popup.html', window.location.href).toString(),
|
|
87
|
-
} as IOidcAuthorization,
|
|
88
|
-
false
|
|
89
|
-
)
|
|
90
|
-
this.authorization = auth.toJSON()
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
handleChange(e: Event): void {
|
|
94
|
-
const input = e.target as Authorization
|
|
95
|
-
if (input.authorization) {
|
|
96
|
-
this.authorization = input.authorization
|
|
97
|
-
localStorage.setItem(STORE_KEY, JSON.stringify(this.authorization))
|
|
98
|
-
}
|
|
99
|
-
console.log('Value changed', this.authorization)
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
handleDelete(): void {
|
|
103
|
-
console.log('Requested to delete.')
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
contentTemplate(): TemplateResult {
|
|
107
|
-
const auth = this.authorization as IRequestAuthorization
|
|
108
|
-
const config = auth.config as IOidcAuthorization
|
|
109
|
-
return html`
|
|
110
|
-
<a href="./">Back</a>
|
|
111
|
-
<section class="demo-section">
|
|
112
|
-
<oidc-authorization
|
|
113
|
-
.authorization="${this.authorization as IRequestAuthorization}"
|
|
114
|
-
@change="${this.handleChange}"
|
|
115
|
-
@delete="${this.handleDelete}"
|
|
116
|
-
></oidc-authorization>
|
|
117
|
-
</section>
|
|
118
|
-
|
|
119
|
-
<div>
|
|
120
|
-
<label for="issuer-uri">Issuer URI:</label>
|
|
121
|
-
<select
|
|
122
|
-
id="issuer-uri"
|
|
123
|
-
name="issuer-uri"
|
|
124
|
-
@change="${this.handleIssuerChange}"
|
|
125
|
-
@blur="${this.handleIssuerChange}"
|
|
126
|
-
>
|
|
127
|
-
${this.issuers.map(
|
|
128
|
-
(uri) => html`<option ?selected="${uri === config.issuerUri}" value="${uri}">${uri}</option>`
|
|
129
|
-
)}
|
|
130
|
-
</select>
|
|
131
|
-
</div>
|
|
132
|
-
|
|
133
|
-
<oidc-authorize tokenProxy="${env.oauth2.tokenProxy}"></oidc-authorize>
|
|
134
|
-
`
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
const instance = new ComponentDemo()
|
|
139
|
-
instance.render()
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
-----BEGIN CERTIFICATE-----
|
|
2
|
-
MIIFWDCCA0CgAwI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NN3fylN9vw0kJdgJZsVndItH5TrrmPQmr0jpFTiTuprLNEVsq2vvBnvPu
|
|
26
|
-
VZKpp9vPTH7LYVEkiKK+HczeFmPdgH6WQxjVN+hUPKVY5b/G2SRIHxRvXNzD6zLh
|
|
27
|
-
dlHovtJvT3DKt3HsgdRuBv+0p7JKE7JQ++NgA9OBpNhLXAWZyDFxc0IVO7SrbfY6
|
|
28
|
-
w6RP5hxvkDvoH6odw4t/Yb6pb7dBrhoGvfbzuoUra1Q/jxmAlk0mNo6MtS4ggzBn
|
|
29
|
-
up/uZrA1UdgA1MvODaXjJ0DJXLVFCC4R+opiLX8jTnN5FTlxXyXU5prgmKdETyl8
|
|
30
|
-
bZJoWR79OWcyLESFKWnxvz+oTlD/7qoj0cCAYA==
|
|
31
|
-
-----END CERTIFICATE-----
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en-GB">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta name="Description" content="Domain modeling initiative by MuleSoft, a Salesforce company.">
|
|
6
|
-
<title>Initializing</title>
|
|
7
|
-
<!-- <meta http-equiv="refresh" content="1;url=https://auth.advancedrestclient.com/oauth-popup.html#access_token=test-token"> -->
|
|
8
|
-
<meta http-equiv="refresh" content="1;url=/oauth-popup.html#access_token=test-token&refresh_token=abcd">
|
|
9
|
-
<link
|
|
10
|
-
href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap"
|
|
11
|
-
rel="stylesheet"
|
|
12
|
-
/>
|
|
13
|
-
<link href="../../../src/styles/m3/tokens.css" rel="stylesheet" type="text/css" />
|
|
14
|
-
<link href="../../../src/styles/m3/theme.css" rel="stylesheet" type="text/css" />
|
|
15
|
-
<link href="../../page.css" rel="stylesheet" type="text/css" />
|
|
16
|
-
</head>
|
|
17
|
-
<body>
|
|
18
|
-
<p>Redirecting</p>
|
|
19
|
-
</body>
|
|
20
|
-
</html>
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# Generate private key
|
|
2
|
-
openssl genrsa -out private.key 4096
|
|
3
|
-
|
|
4
|
-
# Generate a Certificate Signing Request
|
|
5
|
-
|
|
6
|
-
openssl req -new -sha256 \
|
|
7
|
-
-out private.csr \
|
|
8
|
-
-key private.key \
|
|
9
|
-
-config ssl.conf
|
|
10
|
-
|
|
11
|
-
# Generate the certificate
|
|
12
|
-
|
|
13
|
-
openssl x509 -req \
|
|
14
|
-
-days 3650 \
|
|
15
|
-
-in private.csr \
|
|
16
|
-
-signkey private.key \
|
|
17
|
-
-out private.crt \
|
|
18
|
-
-extensions req_ext \
|
|
19
|
-
-extfile ssl.conf
|
|
20
|
-
|
|
21
|
-
# Add the certificate to keychain and trust it:
|
|
22
|
-
|
|
23
|
-
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain private.crt
|
|
24
|
-
# https://support.kerioconnect.gfi.com/hc/en-us/articles/360015200119-Adding-Trusted-Root-Certificates-to-the-Server
|
|
25
|
-
|
|
26
|
-
# Create a pem file from crt
|
|
27
|
-
openssl x509 -in private.crt -out private.pem -outform PEM
|
|
28
|
-
|
|
29
|
-
# run the server
|
|
30
|
-
server-cmd --https --cert private.pem --key private.key
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
[ req ]
|
|
2
|
-
default_bits = 4096
|
|
3
|
-
distinguished_name = req_distinguished_name
|
|
4
|
-
req_extensions = req_ext
|
|
5
|
-
|
|
6
|
-
[ req_distinguished_name ]
|
|
7
|
-
countryName = US
|
|
8
|
-
countryName_default = US
|
|
9
|
-
stateOrProvinceName = California
|
|
10
|
-
stateOrProvinceName_default = CA
|
|
11
|
-
localityName = San Francisco
|
|
12
|
-
localityName_default = San Francisco
|
|
13
|
-
organizationName = MuleSoft
|
|
14
|
-
organizationName_default = MuleSoft
|
|
15
|
-
organizationalUnitName = Engineering
|
|
16
|
-
commonName = localhost
|
|
17
|
-
commonName_max = 64
|
|
18
|
-
commonName_default = localhost
|
|
19
|
-
|
|
20
|
-
[ req_ext ]
|
|
21
|
-
subjectAltName = @alt_names
|
|
22
|
-
|
|
23
|
-
[alt_names]
|
|
24
|
-
DNS.1 = localhost
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
|
|
4
|
-
<head>
|
|
5
|
-
<meta charset="utf-8">
|
|
6
|
-
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">
|
|
7
|
-
<title>Autocomplete</title>
|
|
8
|
-
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
9
|
-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
10
|
-
<link
|
|
11
|
-
href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap"
|
|
12
|
-
rel="stylesheet"
|
|
13
|
-
/>
|
|
14
|
-
<link href="../../../src/styles/m3/tokens.css" rel="stylesheet" type="text/css" />
|
|
15
|
-
<link href="../../../src/styles/m3/theme.css" rel="stylesheet" type="text/css" />
|
|
16
|
-
<link href="../../page.css" rel="stylesheet" type="text/css" />
|
|
17
|
-
<style>
|
|
18
|
-
.share-input {
|
|
19
|
-
.input-container {
|
|
20
|
-
min-height: 3em;
|
|
21
|
-
border: none;
|
|
22
|
-
padding: 4px 12px;
|
|
23
|
-
display: flex;
|
|
24
|
-
flex-wrap: wrap;
|
|
25
|
-
box-sizing: border-box;
|
|
26
|
-
gap: 4px;
|
|
27
|
-
border-radius: 4px;
|
|
28
|
-
background-color: var(--md-sys-color-surface-container-lowest);
|
|
29
|
-
|
|
30
|
-
outline-color: var(--md-sys-color-primary);
|
|
31
|
-
outline-style: solid;
|
|
32
|
-
outline-width: 1px;
|
|
33
|
-
outline-offset: -1px;
|
|
34
|
-
transition:
|
|
35
|
-
outline-width 0.14s ease-in-out,
|
|
36
|
-
outline-offset 0.14s ease-in-out;
|
|
37
|
-
|
|
38
|
-
&:focus-within {
|
|
39
|
-
outline-width: 2px;
|
|
40
|
-
outline-offset: -2px;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.native-input {
|
|
44
|
-
flex: 1;
|
|
45
|
-
outline: none;
|
|
46
|
-
border: none;
|
|
47
|
-
background: transparent;
|
|
48
|
-
color: var(--md-sys-color-on-surface);
|
|
49
|
-
font-size: 1rem;
|
|
50
|
-
font-family: var(--md-sys-typescale-body-large-font-family);
|
|
51
|
-
line-height: var(--md-sys-typescale-body-large-line-height);
|
|
52
|
-
padding: 0;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
</style>
|
|
57
|
-
</head>
|
|
58
|
-
|
|
59
|
-
<body class="demo">
|
|
60
|
-
<div id="app"></div>
|
|
61
|
-
<script type="module" src="/.tmp/demo/elements/autocomplete/index.js"></script>
|
|
62
|
-
</body>
|
|
63
|
-
|
|
64
|
-
</html>
|