Merge branch 'main' into web/sidebar-with-live-content-3
* main: web: dark/light theme fixes (#7872) web: replace 'description-list' with list of descriptions (#7392) web: expressing success (#7830) web: fix turnstile types after update (#7854) core: bump github.com/google/uuid from 1.4.0 to 1.5.0 (#7866) website: bump @types/react from 18.2.43 to 18.2.45 in /website (#7865) web: bump wdio-wait-for from 3.0.9 to 3.0.10 in /tests/wdio (#7867) website/blog: okta part two blog (#7863) web: bump lit-analyzer from 2.0.1 to 2.0.2 in /web (#7858) web: bump the babel group in /web with 4 updates (#7856) web: bump the eslint group in /web with 2 updates (#7857) web: bump rollup from 4.7.0 to 4.8.0 in /web (#7859) web: bump the eslint group in /tests/wdio with 2 updates (#7860) web: refactor the table renderer for legibility (#7433) documentation: Improve explanation of `kubernetes_json_patches` (#7832) root: update security policy to include link to cure53 report (#7853)
This commit is contained in:
commit
cde94c2377
|
@ -91,13 +91,14 @@ jobs:
|
||||||
git checkout $GITHUB_SHA
|
git checkout $GITHUB_SHA
|
||||||
# Delete previous poetry env
|
# Delete previous poetry env
|
||||||
rm -rf $(poetry env info --path)
|
rm -rf $(poetry env info --path)
|
||||||
poetry install
|
|
||||||
- name: Setup authentik env (ensure latest deps are installed)
|
- name: Setup authentik env (ensure latest deps are installed)
|
||||||
uses: ./.github/actions/setup
|
uses: ./.github/actions/setup
|
||||||
with:
|
with:
|
||||||
postgresql_version: ${{ matrix.psql }}
|
postgresql_version: ${{ matrix.psql }}
|
||||||
- name: migrate to latest
|
- name: migrate to latest
|
||||||
run: poetry run python -m lifecycle.migrate
|
run: |
|
||||||
|
poetry install
|
||||||
|
poetry run python -m lifecycle.migrate
|
||||||
test-unittest:
|
test-unittest:
|
||||||
name: test-unittest - PostgreSQL ${{ matrix.psql }}
|
name: test-unittest - PostgreSQL ${{ matrix.psql }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
authentik takes security very seriously. We follow the rules of [responsible disclosure](https://en.wikipedia.org/wiki/Responsible_disclosure), and we urge our community to do so as well, instead of reporting vulnerabilities publicly. This allows us to patch the issue quickly, announce it's existence and release the fixed version.
|
authentik takes security very seriously. We follow the rules of [responsible disclosure](https://en.wikipedia.org/wiki/Responsible_disclosure), and we urge our community to do so as well, instead of reporting vulnerabilities publicly. This allows us to patch the issue quickly, announce it's existence and release the fixed version.
|
||||||
|
|
||||||
|
## Independent audits and pentests
|
||||||
|
|
||||||
|
In May/June of 2023 [Cure53](https://cure53.de) conducted an audit and pentest. The [results](https://cure53.de/pentest-report_authentik.pdf) are published on the [Cure53 website](https://cure53.de/#publications-2023). For more details about authentik's response to the findings of the audit refer to [2023-06 Cure53 Code audit](https://goauthentik.io/docs/security/2023-06-cure53).
|
||||||
|
|
||||||
## What authentik classifies as a CVE
|
## What authentik classifies as a CVE
|
||||||
|
|
||||||
CVE (Common Vulnerability and Exposure) is a system designed to aggregate all vulnerabilities. As such, a CVE will be issued when there is a either vulnerability or exposure. Per NIST, A vulnerability is:
|
CVE (Common Vulnerability and Exposure) is a system designed to aggregate all vulnerabilities. As such, a CVE will be issued when there is a either vulnerability or exposure. Per NIST, A vulnerability is:
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
{% block head_before %}
|
{% block head_before %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
<link rel="stylesheet" type="text/css" href="{% static 'dist/authentik.css' %}">
|
<link rel="stylesheet" type="text/css" href="{% static 'dist/authentik.css' %}">
|
||||||
<link rel="stylesheet" type="text/css" href="{% static 'dist/theme-dark.css' %}" media="(prefers-color-scheme: dark)">
|
|
||||||
<link rel="stylesheet" type="text/css" href="{% static 'dist/custom.css' %}" data-inject>
|
<link rel="stylesheet" type="text/css" href="{% static 'dist/custom.css' %}" data-inject>
|
||||||
<script src="{% static 'dist/poly.js' %}?version={{ version }}" type="module"></script>
|
<script src="{% static 'dist/poly.js' %}?version={{ version }}" type="module"></script>
|
||||||
<script src="{% static 'dist/standalone/loading/index.js' %}?version={{ version }}" type="module"></script>
|
<script src="{% static 'dist/standalone/loading/index.js' %}?version={{ version }}" type="module"></script>
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
{% block head_before %}
|
{% block head_before %}
|
||||||
<link rel="prefetch" href="/static/dist/assets/images/flow_background.jpg" />
|
<link rel="prefetch" href="/static/dist/assets/images/flow_background.jpg" />
|
||||||
<link rel="stylesheet" type="text/css" href="{% static 'dist/patternfly.min.css' %}">
|
<link rel="stylesheet" type="text/css" href="{% static 'dist/patternfly.min.css' %}">
|
||||||
|
<link rel="stylesheet" type="text/css" href="{% static 'dist/theme-dark.css' %}" media="(prefers-color-scheme: dark)">
|
||||||
{% include "base/header_js.html" %}
|
{% include "base/header_js.html" %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
2
go.mod
2
go.mod
|
@ -12,7 +12,7 @@ require (
|
||||||
github.com/go-openapi/runtime v0.26.2
|
github.com/go-openapi/runtime v0.26.2
|
||||||
github.com/go-openapi/strfmt v0.21.9
|
github.com/go-openapi/strfmt v0.21.9
|
||||||
github.com/golang-jwt/jwt v3.2.2+incompatible
|
github.com/golang-jwt/jwt v3.2.2+incompatible
|
||||||
github.com/google/uuid v1.4.0
|
github.com/google/uuid v1.5.0
|
||||||
github.com/gorilla/handlers v1.5.2
|
github.com/gorilla/handlers v1.5.2
|
||||||
github.com/gorilla/mux v1.8.1
|
github.com/gorilla/mux v1.8.1
|
||||||
github.com/gorilla/securecookie v1.1.2
|
github.com/gorilla/securecookie v1.1.2
|
||||||
|
|
4
go.sum
4
go.sum
|
@ -183,8 +183,8 @@ github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hf
|
||||||
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
|
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
|
||||||
github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||||
github.com/google/uuid v1.3.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
github.com/google/uuid v1.3.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||||
github.com/google/uuid v1.4.0 h1:MtMxsa51/r9yyhkyLsVeVt0B+BGQZzpQiTQ4eHZ8bc4=
|
github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU=
|
||||||
github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||||
github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg=
|
github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg=
|
||||||
github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk=
|
github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk=
|
||||||
github.com/gorilla/handlers v1.5.2 h1:cLTUSsNkgcwhgRqvCNmdbRWG0A3N4F+M2nWKdScwyEE=
|
github.com/gorilla/handlers v1.5.2 h1:cLTUSsNkgcwhgRqvCNmdbRWG0A3N4F+M2nWKdScwyEE=
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
"name": "@goauthentik/web-tests",
|
"name": "@goauthentik/web-tests",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^6.13.2",
|
"@typescript-eslint/eslint-plugin": "^6.14.0",
|
||||||
"@typescript-eslint/parser": "^6.13.2",
|
"@typescript-eslint/parser": "^6.14.0",
|
||||||
"@wdio/cli": "^8.26.1",
|
"@wdio/cli": "^8.26.1",
|
||||||
"@wdio/local-runner": "^8.26.1",
|
"@wdio/local-runner": "^8.26.1",
|
||||||
"@wdio/mocha-framework": "^8.24.12",
|
"@wdio/mocha-framework": "^8.24.12",
|
||||||
|
@ -20,7 +20,7 @@
|
||||||
"prettier": "^3.1.1",
|
"prettier": "^3.1.1",
|
||||||
"ts-node": "^10.9.2",
|
"ts-node": "^10.9.2",
|
||||||
"typescript": "^5.3.3",
|
"typescript": "^5.3.3",
|
||||||
"wdio-wait-for": "^3.0.9"
|
"wdio-wait-for": "^3.0.10"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=20"
|
"node": ">=20"
|
||||||
|
@ -946,16 +946,16 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/eslint-plugin": {
|
"node_modules/@typescript-eslint/eslint-plugin": {
|
||||||
"version": "6.13.2",
|
"version": "6.14.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.13.2.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.14.0.tgz",
|
||||||
"integrity": "sha512-3+9OGAWHhk4O1LlcwLBONbdXsAhLjyCFogJY/cWy2lxdVJ2JrcTF2pTGMaLl2AE7U1l31n8Py4a8bx5DLf/0dQ==",
|
"integrity": "sha512-1ZJBykBCXaSHG94vMMKmiHoL0MhNHKSVlcHVYZNw+BKxufhqQVTOawNpwwI1P5nIFZ/4jLVop0mcY6mJJDFNaw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@eslint-community/regexpp": "^4.5.1",
|
"@eslint-community/regexpp": "^4.5.1",
|
||||||
"@typescript-eslint/scope-manager": "6.13.2",
|
"@typescript-eslint/scope-manager": "6.14.0",
|
||||||
"@typescript-eslint/type-utils": "6.13.2",
|
"@typescript-eslint/type-utils": "6.14.0",
|
||||||
"@typescript-eslint/utils": "6.13.2",
|
"@typescript-eslint/utils": "6.14.0",
|
||||||
"@typescript-eslint/visitor-keys": "6.13.2",
|
"@typescript-eslint/visitor-keys": "6.14.0",
|
||||||
"debug": "^4.3.4",
|
"debug": "^4.3.4",
|
||||||
"graphemer": "^1.4.0",
|
"graphemer": "^1.4.0",
|
||||||
"ignore": "^5.2.4",
|
"ignore": "^5.2.4",
|
||||||
|
@ -981,15 +981,15 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/parser": {
|
"node_modules/@typescript-eslint/parser": {
|
||||||
"version": "6.13.2",
|
"version": "6.14.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.13.2.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.14.0.tgz",
|
||||||
"integrity": "sha512-MUkcC+7Wt/QOGeVlM8aGGJZy1XV5YKjTpq9jK6r6/iLsGXhBVaGP5N0UYvFsu9BFlSpwY9kMretzdBH01rkRXg==",
|
"integrity": "sha512-QjToC14CKacd4Pa7JK4GeB/vHmWFJckec49FR4hmIRf97+KXole0T97xxu9IFiPxVQ1DBWrQ5wreLwAGwWAVQA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/scope-manager": "6.13.2",
|
"@typescript-eslint/scope-manager": "6.14.0",
|
||||||
"@typescript-eslint/types": "6.13.2",
|
"@typescript-eslint/types": "6.14.0",
|
||||||
"@typescript-eslint/typescript-estree": "6.13.2",
|
"@typescript-eslint/typescript-estree": "6.14.0",
|
||||||
"@typescript-eslint/visitor-keys": "6.13.2",
|
"@typescript-eslint/visitor-keys": "6.14.0",
|
||||||
"debug": "^4.3.4"
|
"debug": "^4.3.4"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
@ -1009,13 +1009,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/scope-manager": {
|
"node_modules/@typescript-eslint/scope-manager": {
|
||||||
"version": "6.13.2",
|
"version": "6.14.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.13.2.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.14.0.tgz",
|
||||||
"integrity": "sha512-CXQA0xo7z6x13FeDYCgBkjWzNqzBn8RXaE3QVQVIUm74fWJLkJkaHmHdKStrxQllGh6Q4eUGyNpMe0b1hMkXFA==",
|
"integrity": "sha512-VT7CFWHbZipPncAZtuALr9y3EuzY1b1t1AEkIq2bTXUPKw+pHoXflGNG5L+Gv6nKul1cz1VH8fz16IThIU0tdg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/types": "6.13.2",
|
"@typescript-eslint/types": "6.14.0",
|
||||||
"@typescript-eslint/visitor-keys": "6.13.2"
|
"@typescript-eslint/visitor-keys": "6.14.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^16.0.0 || >=18.0.0"
|
"node": "^16.0.0 || >=18.0.0"
|
||||||
|
@ -1026,13 +1026,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/type-utils": {
|
"node_modules/@typescript-eslint/type-utils": {
|
||||||
"version": "6.13.2",
|
"version": "6.14.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.13.2.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.14.0.tgz",
|
||||||
"integrity": "sha512-Qr6ssS1GFongzH2qfnWKkAQmMUyZSyOr0W54nZNU1MDfo+U4Mv3XveeLZzadc/yq8iYhQZHYT+eoXJqnACM1tw==",
|
"integrity": "sha512-x6OC9Q7HfYKqjnuNu5a7kffIYs3No30isapRBJl1iCHLitD8O0lFbRcVGiOcuyN837fqXzPZ1NS10maQzZMKqw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/typescript-estree": "6.13.2",
|
"@typescript-eslint/typescript-estree": "6.14.0",
|
||||||
"@typescript-eslint/utils": "6.13.2",
|
"@typescript-eslint/utils": "6.14.0",
|
||||||
"debug": "^4.3.4",
|
"debug": "^4.3.4",
|
||||||
"ts-api-utils": "^1.0.1"
|
"ts-api-utils": "^1.0.1"
|
||||||
},
|
},
|
||||||
|
@ -1053,9 +1053,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/types": {
|
"node_modules/@typescript-eslint/types": {
|
||||||
"version": "6.13.2",
|
"version": "6.14.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.13.2.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.14.0.tgz",
|
||||||
"integrity": "sha512-7sxbQ+EMRubQc3wTfTsycgYpSujyVbI1xw+3UMRUcrhSy+pN09y/lWzeKDbvhoqcRbHdc+APLs/PWYi/cisLPg==",
|
"integrity": "sha512-uty9H2K4Xs8E47z3SnXEPRNDfsis8JO27amp2GNCnzGETEW3yTqEIVg5+AI7U276oGF/tw6ZA+UesxeQ104ceA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^16.0.0 || >=18.0.0"
|
"node": "^16.0.0 || >=18.0.0"
|
||||||
|
@ -1066,13 +1066,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/typescript-estree": {
|
"node_modules/@typescript-eslint/typescript-estree": {
|
||||||
"version": "6.13.2",
|
"version": "6.14.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.13.2.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.14.0.tgz",
|
||||||
"integrity": "sha512-SuD8YLQv6WHnOEtKv8D6HZUzOub855cfPnPMKvdM/Bh1plv1f7Q/0iFUDLKKlxHcEstQnaUU4QZskgQq74t+3w==",
|
"integrity": "sha512-yPkaLwK0yH2mZKFE/bXkPAkkFgOv15GJAUzgUVonAbv0Hr4PK/N2yaA/4XQbTZQdygiDkpt5DkxPELqHguNvyw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/types": "6.13.2",
|
"@typescript-eslint/types": "6.14.0",
|
||||||
"@typescript-eslint/visitor-keys": "6.13.2",
|
"@typescript-eslint/visitor-keys": "6.14.0",
|
||||||
"debug": "^4.3.4",
|
"debug": "^4.3.4",
|
||||||
"globby": "^11.1.0",
|
"globby": "^11.1.0",
|
||||||
"is-glob": "^4.0.3",
|
"is-glob": "^4.0.3",
|
||||||
|
@ -1093,17 +1093,17 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/utils": {
|
"node_modules/@typescript-eslint/utils": {
|
||||||
"version": "6.13.2",
|
"version": "6.14.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.13.2.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.14.0.tgz",
|
||||||
"integrity": "sha512-b9Ptq4eAZUym4idijCRzl61oPCwwREcfDI8xGk751Vhzig5fFZR9CyzDz4Sp/nxSLBYxUPyh4QdIDqWykFhNmQ==",
|
"integrity": "sha512-XwRTnbvRr7Ey9a1NT6jqdKX8y/atWG+8fAIu3z73HSP8h06i3r/ClMhmaF/RGWGW1tHJEwij1uEg2GbEmPYvYg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@eslint-community/eslint-utils": "^4.4.0",
|
"@eslint-community/eslint-utils": "^4.4.0",
|
||||||
"@types/json-schema": "^7.0.12",
|
"@types/json-schema": "^7.0.12",
|
||||||
"@types/semver": "^7.5.0",
|
"@types/semver": "^7.5.0",
|
||||||
"@typescript-eslint/scope-manager": "6.13.2",
|
"@typescript-eslint/scope-manager": "6.14.0",
|
||||||
"@typescript-eslint/types": "6.13.2",
|
"@typescript-eslint/types": "6.14.0",
|
||||||
"@typescript-eslint/typescript-estree": "6.13.2",
|
"@typescript-eslint/typescript-estree": "6.14.0",
|
||||||
"semver": "^7.5.4"
|
"semver": "^7.5.4"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
@ -1118,12 +1118,12 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/visitor-keys": {
|
"node_modules/@typescript-eslint/visitor-keys": {
|
||||||
"version": "6.13.2",
|
"version": "6.14.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.13.2.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.14.0.tgz",
|
||||||
"integrity": "sha512-OGznFs0eAQXJsp+xSd6k/O1UbFi/K/L7WjqeRoFE7vadjAF9y0uppXhYNQNEqygjou782maGClOoZwPqF0Drlw==",
|
"integrity": "sha512-fB5cw6GRhJUz03MrROVuj5Zm/Q+XWlVdIsFj+Zb1Hvqouc8t+XP2H5y53QYU/MGtd2dPg6/vJJlhoX3xc2ehfw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/types": "6.13.2",
|
"@typescript-eslint/types": "6.14.0",
|
||||||
"eslint-visitor-keys": "^3.4.1"
|
"eslint-visitor-keys": "^3.4.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
@ -8440,9 +8440,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/wdio-wait-for": {
|
"node_modules/wdio-wait-for": {
|
||||||
"version": "3.0.9",
|
"version": "3.0.10",
|
||||||
"resolved": "https://registry.npmjs.org/wdio-wait-for/-/wdio-wait-for-3.0.9.tgz",
|
"resolved": "https://registry.npmjs.org/wdio-wait-for/-/wdio-wait-for-3.0.10.tgz",
|
||||||
"integrity": "sha512-f7SZ916X9DpN1ZpY82wbwS0UwpRl8fOmT3v5TIfSn/XNLwDS1qZiGndayd5sNKhzYZFlDQDIIcfOcZDr7YBMcA==",
|
"integrity": "sha512-YMWfI0BYgEviGDB9+rDUuHDZNVk8pHeae0cvaqk3Wx/2LijwJi4xkRP01uYC/hM7RBB7QJFBmjrXczVSqtJOGw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^16.13 || >=18"
|
"node": "^16.13 || >=18"
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^6.13.2",
|
"@typescript-eslint/eslint-plugin": "^6.14.0",
|
||||||
"@typescript-eslint/parser": "^6.13.2",
|
"@typescript-eslint/parser": "^6.14.0",
|
||||||
"@wdio/cli": "^8.26.1",
|
"@wdio/cli": "^8.26.1",
|
||||||
"@wdio/local-runner": "^8.26.1",
|
"@wdio/local-runner": "^8.26.1",
|
||||||
"@wdio/mocha-framework": "^8.24.12",
|
"@wdio/mocha-framework": "^8.24.12",
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
"prettier": "^3.1.1",
|
"prettier": "^3.1.1",
|
||||||
"ts-node": "^10.9.2",
|
"ts-node": "^10.9.2",
|
||||||
"typescript": "^5.3.3",
|
"typescript": "^5.3.3",
|
||||||
"wdio-wait-for": "^3.0.9"
|
"wdio-wait-for": "^3.0.10"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"wdio": "wdio run ./wdio.conf.ts",
|
"wdio": "wdio run ./wdio.conf.ts",
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
"@codemirror/lang-xml": "^6.0.2",
|
"@codemirror/lang-xml": "^6.0.2",
|
||||||
"@codemirror/legacy-modes": "^6.3.3",
|
"@codemirror/legacy-modes": "^6.3.3",
|
||||||
"@codemirror/theme-one-dark": "^6.1.2",
|
"@codemirror/theme-one-dark": "^6.1.2",
|
||||||
"@esbuild/linux-arm64": "^0.19.9",
|
|
||||||
"@formatjs/intl-listformat": "^7.5.3",
|
"@formatjs/intl-listformat": "^7.5.3",
|
||||||
"@fortawesome/fontawesome-free": "^6.5.1",
|
"@fortawesome/fontawesome-free": "^6.5.1",
|
||||||
"@goauthentik/api": "^2023.10.4-1701882394",
|
"@goauthentik/api": "^2023.10.4-1701882394",
|
||||||
|
@ -44,13 +43,13 @@
|
||||||
"yaml": "^2.3.4"
|
"yaml": "^2.3.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.23.5",
|
"@babel/core": "^7.23.6",
|
||||||
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
||||||
"@babel/plugin-proposal-decorators": "^7.23.5",
|
"@babel/plugin-proposal-decorators": "^7.23.6",
|
||||||
"@babel/plugin-transform-private-methods": "^7.23.3",
|
"@babel/plugin-transform-private-methods": "^7.23.3",
|
||||||
"@babel/plugin-transform-private-property-in-object": "^7.23.4",
|
"@babel/plugin-transform-private-property-in-object": "^7.23.4",
|
||||||
"@babel/plugin-transform-runtime": "^7.23.4",
|
"@babel/plugin-transform-runtime": "^7.23.6",
|
||||||
"@babel/preset-env": "^7.23.5",
|
"@babel/preset-env": "^7.23.6",
|
||||||
"@babel/preset-typescript": "^7.23.3",
|
"@babel/preset-typescript": "^7.23.3",
|
||||||
"@hcaptcha/types": "^1.0.3",
|
"@hcaptcha/types": "^1.0.3",
|
||||||
"@jackfranklin/rollup-plugin-markdown": "^0.4.0",
|
"@jackfranklin/rollup-plugin-markdown": "^0.4.0",
|
||||||
|
@ -73,8 +72,8 @@
|
||||||
"@types/chart.js": "^2.9.41",
|
"@types/chart.js": "^2.9.41",
|
||||||
"@types/codemirror": "5.60.15",
|
"@types/codemirror": "5.60.15",
|
||||||
"@types/grecaptcha": "^3.0.7",
|
"@types/grecaptcha": "^3.0.7",
|
||||||
"@typescript-eslint/eslint-plugin": "^6.13.2",
|
"@typescript-eslint/eslint-plugin": "^6.14.0",
|
||||||
"@typescript-eslint/parser": "^6.13.2",
|
"@typescript-eslint/parser": "^6.14.0",
|
||||||
"babel-plugin-macros": "^3.1.0",
|
"babel-plugin-macros": "^3.1.0",
|
||||||
"babel-plugin-tsconfig-paths": "^1.0.3",
|
"babel-plugin-tsconfig-paths": "^1.0.3",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
|
@ -84,14 +83,14 @@
|
||||||
"eslint-plugin-lit": "^1.10.1",
|
"eslint-plugin-lit": "^1.10.1",
|
||||||
"eslint-plugin-sonarjs": "^0.23.0",
|
"eslint-plugin-sonarjs": "^0.23.0",
|
||||||
"eslint-plugin-storybook": "^0.6.15",
|
"eslint-plugin-storybook": "^0.6.15",
|
||||||
"lit-analyzer": "^2.0.1",
|
"lit-analyzer": "^2.0.2",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"prettier": "^3.1.1",
|
"prettier": "^3.1.1",
|
||||||
"pseudolocale": "^2.0.0",
|
"pseudolocale": "^2.0.0",
|
||||||
"pyright": "^1.1.338",
|
"pyright": "=1.1.338",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
"rollup": "^4.7.0",
|
"rollup": "^4.8.0",
|
||||||
"rollup-plugin-copy": "^3.5.0",
|
"rollup-plugin-copy": "^3.5.0",
|
||||||
"rollup-plugin-cssimport": "^1.0.3",
|
"rollup-plugin-cssimport": "^1.0.3",
|
||||||
"rollup-plugin-postcss-lit": "^2.1.0",
|
"rollup-plugin-postcss-lit": "^2.1.0",
|
||||||
|
@ -99,7 +98,7 @@
|
||||||
"storybook-addon-mock": "^4.3.0",
|
"storybook-addon-mock": "^4.3.0",
|
||||||
"ts-lit-plugin": "^2.0.1",
|
"ts-lit-plugin": "^2.0.1",
|
||||||
"tslib": "^2.6.2",
|
"tslib": "^2.6.2",
|
||||||
"turnstile-types": "^1.1.3",
|
"turnstile-types": "^1.2.0",
|
||||||
"typescript": "^5.3.3",
|
"typescript": "^5.3.3",
|
||||||
"vite-tsconfig-paths": "^4.2.2"
|
"vite-tsconfig-paths": "^4.2.2"
|
||||||
},
|
},
|
||||||
|
@ -177,21 +176,21 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/core": {
|
"node_modules/@babel/core": {
|
||||||
"version": "7.23.5",
|
"version": "7.23.6",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.5.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.6.tgz",
|
||||||
"integrity": "sha512-Cwc2XjUrG4ilcfOw4wBAK+enbdgwAcAJCfGUItPBKR7Mjw4aEfAFYrLxeRp4jWgtNIKn3n2AlBOfwwafl+42/g==",
|
"integrity": "sha512-FxpRyGjrMJXh7X3wGLGhNDCRiwpWEF74sKjTLDJSG5Kyvow3QZaG0Adbqzi9ZrVjTWpsX+2cxWXD71NMg93kdw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ampproject/remapping": "^2.2.0",
|
"@ampproject/remapping": "^2.2.0",
|
||||||
"@babel/code-frame": "^7.23.5",
|
"@babel/code-frame": "^7.23.5",
|
||||||
"@babel/generator": "^7.23.5",
|
"@babel/generator": "^7.23.6",
|
||||||
"@babel/helper-compilation-targets": "^7.22.15",
|
"@babel/helper-compilation-targets": "^7.23.6",
|
||||||
"@babel/helper-module-transforms": "^7.23.3",
|
"@babel/helper-module-transforms": "^7.23.3",
|
||||||
"@babel/helpers": "^7.23.5",
|
"@babel/helpers": "^7.23.6",
|
||||||
"@babel/parser": "^7.23.5",
|
"@babel/parser": "^7.23.6",
|
||||||
"@babel/template": "^7.22.15",
|
"@babel/template": "^7.22.15",
|
||||||
"@babel/traverse": "^7.23.5",
|
"@babel/traverse": "^7.23.6",
|
||||||
"@babel/types": "^7.23.5",
|
"@babel/types": "^7.23.6",
|
||||||
"convert-source-map": "^2.0.0",
|
"convert-source-map": "^2.0.0",
|
||||||
"debug": "^4.1.0",
|
"debug": "^4.1.0",
|
||||||
"gensync": "^1.0.0-beta.2",
|
"gensync": "^1.0.0-beta.2",
|
||||||
|
@ -207,20 +206,20 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/core/node_modules/@babel/traverse": {
|
"node_modules/@babel/core/node_modules/@babel/traverse": {
|
||||||
"version": "7.23.5",
|
"version": "7.23.6",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.5.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.6.tgz",
|
||||||
"integrity": "sha512-czx7Xy5a6sapWWRx61m1Ke1Ra4vczu1mCTtJam5zRTBOonfdJ+S/B6HYmGYu3fJtr8GGET3si6IhgWVBhJ/m8w==",
|
"integrity": "sha512-czastdK1e8YByZqezMPFiZ8ahwVMh/ESl9vPgvgdB9AmFMGP5jfpFax74AQgl5zj4XHzqeYAg2l8PuUeRS1MgQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/code-frame": "^7.23.5",
|
"@babel/code-frame": "^7.23.5",
|
||||||
"@babel/generator": "^7.23.5",
|
"@babel/generator": "^7.23.6",
|
||||||
"@babel/helper-environment-visitor": "^7.22.20",
|
"@babel/helper-environment-visitor": "^7.22.20",
|
||||||
"@babel/helper-function-name": "^7.23.0",
|
"@babel/helper-function-name": "^7.23.0",
|
||||||
"@babel/helper-hoist-variables": "^7.22.5",
|
"@babel/helper-hoist-variables": "^7.22.5",
|
||||||
"@babel/helper-split-export-declaration": "^7.22.6",
|
"@babel/helper-split-export-declaration": "^7.22.6",
|
||||||
"@babel/parser": "^7.23.5",
|
"@babel/parser": "^7.23.6",
|
||||||
"@babel/types": "^7.23.5",
|
"@babel/types": "^7.23.6",
|
||||||
"debug": "^4.1.0",
|
"debug": "^4.3.1",
|
||||||
"globals": "^11.1.0"
|
"globals": "^11.1.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
@ -234,12 +233,12 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@babel/generator": {
|
"node_modules/@babel/generator": {
|
||||||
"version": "7.23.5",
|
"version": "7.23.6",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.5.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.6.tgz",
|
||||||
"integrity": "sha512-BPssCHrBD+0YrxviOa3QzpqwhNIXKEtOa2jQrm4FlmkC2apYgRnQcmPWiGZDlGxiNtltnUFolMe8497Esry+jA==",
|
"integrity": "sha512-qrSfCYxYQB5owCmGLbl8XRpX1ytXlpueOb0N0UmQwA073KZxejgQTzAmJezxvpwQD9uGtK2shHdi55QT+MbjIw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/types": "^7.23.5",
|
"@babel/types": "^7.23.6",
|
||||||
"@jridgewell/gen-mapping": "^0.3.2",
|
"@jridgewell/gen-mapping": "^0.3.2",
|
||||||
"@jridgewell/trace-mapping": "^0.3.17",
|
"@jridgewell/trace-mapping": "^0.3.17",
|
||||||
"jsesc": "^2.5.1"
|
"jsesc": "^2.5.1"
|
||||||
|
@ -273,14 +272,14 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/helper-compilation-targets": {
|
"node_modules/@babel/helper-compilation-targets": {
|
||||||
"version": "7.22.15",
|
"version": "7.23.6",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.15.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.23.6.tgz",
|
||||||
"integrity": "sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw==",
|
"integrity": "sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/compat-data": "^7.22.9",
|
"@babel/compat-data": "^7.23.5",
|
||||||
"@babel/helper-validator-option": "^7.22.15",
|
"@babel/helper-validator-option": "^7.23.5",
|
||||||
"browserslist": "^4.21.9",
|
"browserslist": "^4.22.2",
|
||||||
"lru-cache": "^5.1.1",
|
"lru-cache": "^5.1.1",
|
||||||
"semver": "^6.3.1"
|
"semver": "^6.3.1"
|
||||||
},
|
},
|
||||||
|
@ -289,9 +288,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/helper-create-class-features-plugin": {
|
"node_modules/@babel/helper-create-class-features-plugin": {
|
||||||
"version": "7.23.5",
|
"version": "7.23.6",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.23.5.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.23.6.tgz",
|
||||||
"integrity": "sha512-QELlRWxSpgdwdJzSJn4WAhKC+hvw/AtHbbrIoncKHkhKKR/luAlKkgBDcri1EzWAo8f8VvYVryEHN4tax/V67A==",
|
"integrity": "sha512-cBXU1vZni/CpGF29iTu4YRbOZt3Wat6zCoMDxRF1MayiEc4URxOj31tT65HUM0CRpMowA3HCJaAOVOUnMf96cw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/helper-annotate-as-pure": "^7.22.5",
|
"@babel/helper-annotate-as-pure": "^7.22.5",
|
||||||
|
@ -554,34 +553,34 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/helpers": {
|
"node_modules/@babel/helpers": {
|
||||||
"version": "7.23.5",
|
"version": "7.23.6",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.5.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.6.tgz",
|
||||||
"integrity": "sha512-oO7us8FzTEsG3U6ag9MfdF1iA/7Z6dz+MtFhifZk8C8o453rGJFFWUP1t+ULM9TUIAzC9uxXEiXjOiVMyd7QPg==",
|
"integrity": "sha512-wCfsbN4nBidDRhpDhvcKlzHWCTlgJYUUdSJfzXb2NuBssDSIjc3xcb+znA7l+zYsFljAcGM0aFkN40cR3lXiGA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/template": "^7.22.15",
|
"@babel/template": "^7.22.15",
|
||||||
"@babel/traverse": "^7.23.5",
|
"@babel/traverse": "^7.23.6",
|
||||||
"@babel/types": "^7.23.5"
|
"@babel/types": "^7.23.6"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=6.9.0"
|
"node": ">=6.9.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/helpers/node_modules/@babel/traverse": {
|
"node_modules/@babel/helpers/node_modules/@babel/traverse": {
|
||||||
"version": "7.23.5",
|
"version": "7.23.6",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.5.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.6.tgz",
|
||||||
"integrity": "sha512-czx7Xy5a6sapWWRx61m1Ke1Ra4vczu1mCTtJam5zRTBOonfdJ+S/B6HYmGYu3fJtr8GGET3si6IhgWVBhJ/m8w==",
|
"integrity": "sha512-czastdK1e8YByZqezMPFiZ8ahwVMh/ESl9vPgvgdB9AmFMGP5jfpFax74AQgl5zj4XHzqeYAg2l8PuUeRS1MgQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/code-frame": "^7.23.5",
|
"@babel/code-frame": "^7.23.5",
|
||||||
"@babel/generator": "^7.23.5",
|
"@babel/generator": "^7.23.6",
|
||||||
"@babel/helper-environment-visitor": "^7.22.20",
|
"@babel/helper-environment-visitor": "^7.22.20",
|
||||||
"@babel/helper-function-name": "^7.23.0",
|
"@babel/helper-function-name": "^7.23.0",
|
||||||
"@babel/helper-hoist-variables": "^7.22.5",
|
"@babel/helper-hoist-variables": "^7.22.5",
|
||||||
"@babel/helper-split-export-declaration": "^7.22.6",
|
"@babel/helper-split-export-declaration": "^7.22.6",
|
||||||
"@babel/parser": "^7.23.5",
|
"@babel/parser": "^7.23.6",
|
||||||
"@babel/types": "^7.23.5",
|
"@babel/types": "^7.23.6",
|
||||||
"debug": "^4.1.0",
|
"debug": "^4.3.1",
|
||||||
"globals": "^11.1.0"
|
"globals": "^11.1.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
@ -603,9 +602,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/parser": {
|
"node_modules/@babel/parser": {
|
||||||
"version": "7.23.5",
|
"version": "7.23.6",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.5.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.6.tgz",
|
||||||
"integrity": "sha512-hOOqoiNXrmGdFbhgCzu6GiURxUgM27Xwd/aPuu8RfHEZPBzL1Z54okAHAQjXfcQNwvrlkAmAp4SlRTZ45vlthQ==",
|
"integrity": "sha512-Z2uID7YJ7oNvAI20O9X0bblw7Qqs8Q2hFy0R9tAfnfLkp5MW0UH9eUvnDSnFwKZ0AvgS1ucqR4KzvVHgnke1VQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
"parser": "bin/babel-parser.js"
|
"parser": "bin/babel-parser.js"
|
||||||
|
@ -680,14 +679,15 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/plugin-proposal-decorators": {
|
"node_modules/@babel/plugin-proposal-decorators": {
|
||||||
"version": "7.23.5",
|
"version": "7.23.6",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.23.5.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.23.6.tgz",
|
||||||
"integrity": "sha512-6IsY8jOeWibsengGlWIezp7cuZEFzNlAghFpzh9wiZwhQ42/hRcPnY/QV9HJoKTlujupinSlnQPiEy/u2C1ZfQ==",
|
"integrity": "sha512-D7Ccq9LfkBFnow3azZGJvZYgcfeqAw3I1e5LoTpj6UKIFQilh8yqXsIGcRIqbBdsPWIz+Ze7ZZfggSj62Qp+Fg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/helper-create-class-features-plugin": "^7.23.5",
|
"@babel/helper-create-class-features-plugin": "^7.23.6",
|
||||||
"@babel/helper-plugin-utils": "^7.22.5",
|
"@babel/helper-plugin-utils": "^7.22.5",
|
||||||
"@babel/helper-replace-supers": "^7.22.20",
|
"@babel/helper-replace-supers": "^7.22.20",
|
||||||
|
"@babel/helper-skip-transparent-expression-wrappers": "^7.22.5",
|
||||||
"@babel/helper-split-export-declaration": "^7.22.6",
|
"@babel/helper-split-export-declaration": "^7.22.6",
|
||||||
"@babel/plugin-syntax-decorators": "^7.23.3"
|
"@babel/plugin-syntax-decorators": "^7.23.3"
|
||||||
},
|
},
|
||||||
|
@ -1268,12 +1268,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/plugin-transform-for-of": {
|
"node_modules/@babel/plugin-transform-for-of": {
|
||||||
"version": "7.23.3",
|
"version": "7.23.6",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.23.3.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.23.6.tgz",
|
||||||
"integrity": "sha512-X8jSm8X1CMwxmK878qsUGJRmbysKNbdpTv/O1/v0LuY/ZkZrng5WYiekYSdg9m09OTmDDUWeEDsTE+17WYbAZw==",
|
"integrity": "sha512-aYH4ytZ0qSuBbpfhuofbg/e96oQ7U2w1Aw/UQmKT+1l39uEhUPoFS3fHevDc1G0OvewyDudfMKY1OulczHzWIw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/helper-plugin-utils": "^7.22.5"
|
"@babel/helper-plugin-utils": "^7.22.5",
|
||||||
|
"@babel/helper-skip-transparent-expression-wrappers": "^7.22.5"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=6.9.0"
|
"node": ">=6.9.0"
|
||||||
|
@ -1655,9 +1656,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/plugin-transform-runtime": {
|
"node_modules/@babel/plugin-transform-runtime": {
|
||||||
"version": "7.23.4",
|
"version": "7.23.6",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.23.4.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.23.6.tgz",
|
||||||
"integrity": "sha512-ITwqpb6V4btwUG0YJR82o2QvmWrLgDnx/p2A3CTPYGaRgULkDiC0DRA2C4jlRB9uXGUEfaSS/IGHfVW+ohzYDw==",
|
"integrity": "sha512-kF1Zg62aPseQ11orDhFRw+aPG/eynNQtI+TyY+m33qJa2cJ5EEvza2P2BNTIA9E5MyqFABHEyY6CPHwgdy9aNg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/helper-module-imports": "^7.22.15",
|
"@babel/helper-module-imports": "^7.22.15",
|
||||||
|
@ -1832,13 +1833,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/preset-env": {
|
"node_modules/@babel/preset-env": {
|
||||||
"version": "7.23.5",
|
"version": "7.23.6",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.23.5.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.23.6.tgz",
|
||||||
"integrity": "sha512-0d/uxVD6tFGWXGDSfyMD1p2otoaKmu6+GD+NfAx0tMaH+dxORnp7T9TaVQ6mKyya7iBtCIVxHjWT7MuzzM9z+A==",
|
"integrity": "sha512-2XPn/BqKkZCpzYhUUNZ1ssXw7DcXfKQEjv/uXZUXgaebCMYmkEsfZ2yY+vv+xtXv50WmL5SGhyB6/xsWxIvvOQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/compat-data": "^7.23.5",
|
"@babel/compat-data": "^7.23.5",
|
||||||
"@babel/helper-compilation-targets": "^7.22.15",
|
"@babel/helper-compilation-targets": "^7.23.6",
|
||||||
"@babel/helper-plugin-utils": "^7.22.5",
|
"@babel/helper-plugin-utils": "^7.22.5",
|
||||||
"@babel/helper-validator-option": "^7.23.5",
|
"@babel/helper-validator-option": "^7.23.5",
|
||||||
"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.23.3",
|
"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.23.3",
|
||||||
|
@ -1878,7 +1879,7 @@
|
||||||
"@babel/plugin-transform-dynamic-import": "^7.23.4",
|
"@babel/plugin-transform-dynamic-import": "^7.23.4",
|
||||||
"@babel/plugin-transform-exponentiation-operator": "^7.23.3",
|
"@babel/plugin-transform-exponentiation-operator": "^7.23.3",
|
||||||
"@babel/plugin-transform-export-namespace-from": "^7.23.4",
|
"@babel/plugin-transform-export-namespace-from": "^7.23.4",
|
||||||
"@babel/plugin-transform-for-of": "^7.23.3",
|
"@babel/plugin-transform-for-of": "^7.23.6",
|
||||||
"@babel/plugin-transform-function-name": "^7.23.3",
|
"@babel/plugin-transform-function-name": "^7.23.3",
|
||||||
"@babel/plugin-transform-json-strings": "^7.23.4",
|
"@babel/plugin-transform-json-strings": "^7.23.4",
|
||||||
"@babel/plugin-transform-literals": "^7.23.3",
|
"@babel/plugin-transform-literals": "^7.23.3",
|
||||||
|
@ -2178,9 +2179,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/types": {
|
"node_modules/@babel/types": {
|
||||||
"version": "7.23.5",
|
"version": "7.23.6",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.5.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.6.tgz",
|
||||||
"integrity": "sha512-ON5kSOJwVO6xXVRTvOI0eOnWe7VdUcIpsovGo9U/Br4Ie4UVFQTboO2cYnDhAGU6Fp+UxSiT+pMft0SMHfuq6w==",
|
"integrity": "sha512-+uarb83brBzPKN38NX1MkB6vb6+mwvR6amUulqAE7ccQw1pEl+bCia9TbdG1lsnFP7lZySvUn37CHyXQdfTwzg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/helper-string-parser": "^7.23.4",
|
"@babel/helper-string-parser": "^7.23.4",
|
||||||
|
@ -4581,9 +4582,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-android-arm-eabi": {
|
"node_modules/@rollup/rollup-android-arm-eabi": {
|
||||||
"version": "4.7.0",
|
"version": "4.8.0",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.7.0.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.8.0.tgz",
|
||||||
"integrity": "sha512-rGku10pL1StFlFvXX5pEv88KdGW6DHUghsxyP/aRYb9eH+74jTGJ3U0S/rtlsQ4yYq1Hcc7AMkoJOb1xu29Fxw==",
|
"integrity": "sha512-zdTObFRoNENrdPpnTNnhOljYIcOX7aI7+7wyrSpPFFIOf/nRdedE6IYsjaBE7tjukphh1tMTojgJ7p3lKY8x6Q==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm"
|
"arm"
|
||||||
],
|
],
|
||||||
|
@ -4594,9 +4595,9 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-android-arm64": {
|
"node_modules/@rollup/rollup-android-arm64": {
|
||||||
"version": "4.7.0",
|
"version": "4.8.0",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.7.0.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.8.0.tgz",
|
||||||
"integrity": "sha512-/EBw0cuJ/KVHiU2qyVYUhogXz7W2vXxBzeE9xtVIMC+RyitlY2vvaoysMUqASpkUtoNIHlnKTu/l7mXOPgnKOA==",
|
"integrity": "sha512-aiItwP48BiGpMFS9Znjo/xCNQVwTQVcRKkFKsO81m8exrGjHkCBDvm9PHay2kpa8RPnZzzKcD1iQ9KaLY4fPQQ==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
|
@ -4607,9 +4608,9 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-darwin-arm64": {
|
"node_modules/@rollup/rollup-darwin-arm64": {
|
||||||
"version": "4.7.0",
|
"version": "4.8.0",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.7.0.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.8.0.tgz",
|
||||||
"integrity": "sha512-4VXG1bgvClJdbEYYjQ85RkOtwN8sqI3uCxH0HC5w9fKdqzRzgG39K7GAehATGS8jghA7zNoS5CjSKkDEqWmNZg==",
|
"integrity": "sha512-zhNIS+L4ZYkYQUjIQUR6Zl0RXhbbA0huvNIWjmPc2SL0cB1h5Djkcy+RZ3/Bwszfb6vgwUvcVJYD6e6Zkpsi8g==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
|
@ -4620,9 +4621,9 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-darwin-x64": {
|
"node_modules/@rollup/rollup-darwin-x64": {
|
||||||
"version": "4.7.0",
|
"version": "4.8.0",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.7.0.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.8.0.tgz",
|
||||||
"integrity": "sha512-/ImhO+T/RWJ96hUbxiCn2yWI0/MeQZV/aeukQQfhxiSXuZJfyqtdHPUPrc84jxCfXTxbJLmg4q+GBETeb61aNw==",
|
"integrity": "sha512-A/FAHFRNQYrELrb/JHncRWzTTXB2ticiRFztP4ggIUAfa9Up1qfW8aG2w/mN9jNiZ+HB0t0u0jpJgFXG6BfRTA==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
|
@ -4633,9 +4634,9 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-linux-arm-gnueabihf": {
|
"node_modules/@rollup/rollup-linux-arm-gnueabihf": {
|
||||||
"version": "4.7.0",
|
"version": "4.8.0",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.7.0.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.8.0.tgz",
|
||||||
"integrity": "sha512-zhye8POvTyUXlKbfPBVqoHy3t43gIgffY+7qBFqFxNqVtltQLtWeHNAbrMnXiLIfYmxcoL/feuLDote2tx+Qbg==",
|
"integrity": "sha512-JsidBnh3p2IJJA4/2xOF2puAYqbaczB3elZDT0qHxn362EIoIkq7hrR43Xa8RisgI6/WPfvb2umbGsuvf7E37A==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm"
|
"arm"
|
||||||
],
|
],
|
||||||
|
@ -4646,9 +4647,9 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-linux-arm64-gnu": {
|
"node_modules/@rollup/rollup-linux-arm64-gnu": {
|
||||||
"version": "4.7.0",
|
"version": "4.8.0",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.7.0.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.8.0.tgz",
|
||||||
"integrity": "sha512-RAdr3OJnUum6Vs83cQmKjxdTg31zJnLLTkjhcFt0auxM6jw00GD6IPFF42uasYPr/wGC6TRm7FsQiJyk0qIEfg==",
|
"integrity": "sha512-hBNCnqw3EVCkaPB0Oqd24bv8SklETptQWcJz06kb9OtiShn9jK1VuTgi7o4zPSt6rNGWQOTDEAccbk0OqJmS+g==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
|
@ -4659,9 +4660,9 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-linux-arm64-musl": {
|
"node_modules/@rollup/rollup-linux-arm64-musl": {
|
||||||
"version": "4.7.0",
|
"version": "4.8.0",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.7.0.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.8.0.tgz",
|
||||||
"integrity": "sha512-nhWwYsiJwZGq7SyR3afS3EekEOsEAlrNMpPC4ZDKn5ooYSEjDLe9W/xGvoIV8/F/+HNIY6jY8lIdXjjxfxopXw==",
|
"integrity": "sha512-Fw9ChYfJPdltvi9ALJ9wzdCdxGw4wtq4t1qY028b2O7GwB5qLNSGtqMsAel1lfWTZvf4b6/+4HKp0GlSYg0ahA==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
|
@ -4672,9 +4673,9 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-linux-riscv64-gnu": {
|
"node_modules/@rollup/rollup-linux-riscv64-gnu": {
|
||||||
"version": "4.7.0",
|
"version": "4.8.0",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.7.0.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.8.0.tgz",
|
||||||
"integrity": "sha512-rlfy5RnQG1aop1BL/gjdH42M2geMUyVQqd52GJVirqYc787A/XVvl3kQ5NG/43KXgOgE9HXgCaEH05kzQ+hLoA==",
|
"integrity": "sha512-BH5xIh7tOzS9yBi8dFrCTG8Z6iNIGWGltd3IpTSKp6+pNWWO6qy8eKoRxOtwFbMrid5NZaidLYN6rHh9aB8bEw==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"riscv64"
|
"riscv64"
|
||||||
],
|
],
|
||||||
|
@ -4685,9 +4686,9 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-linux-x64-gnu": {
|
"node_modules/@rollup/rollup-linux-x64-gnu": {
|
||||||
"version": "4.7.0",
|
"version": "4.8.0",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.7.0.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.8.0.tgz",
|
||||||
"integrity": "sha512-cCkoGlGWfBobdDtiiypxf79q6k3/iRVGu1HVLbD92gWV5WZbmuWJCgRM4x2N6i7ljGn1cGytPn9ZAfS8UwF6vg==",
|
"integrity": "sha512-PmvAj8k6EuWiyLbkNpd6BLv5XeYFpqWuRvRNRl80xVfpGXK/z6KYXmAgbI4ogz7uFiJxCnYcqyvZVD0dgFog7Q==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
|
@ -4698,9 +4699,9 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-linux-x64-musl": {
|
"node_modules/@rollup/rollup-linux-x64-musl": {
|
||||||
"version": "4.7.0",
|
"version": "4.8.0",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.7.0.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.8.0.tgz",
|
||||||
"integrity": "sha512-R2oBf2p/Arc1m+tWmiWbpHBjEcJnHVnv6bsypu4tcKdrYTpDfl1UT9qTyfkIL1iiii5D4WHxUHCg5X0pzqmxFg==",
|
"integrity": "sha512-mdxnlW2QUzXwY+95TuxZ+CurrhgrPAMveDWI97EQlA9bfhR8tw3Pt7SUlc/eSlCNxlWktpmT//EAA8UfCHOyXg==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
|
@ -4711,9 +4712,9 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-win32-arm64-msvc": {
|
"node_modules/@rollup/rollup-win32-arm64-msvc": {
|
||||||
"version": "4.7.0",
|
"version": "4.8.0",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.7.0.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.8.0.tgz",
|
||||||
"integrity": "sha512-CPtgaQL1aaPc80m8SCVEoxFGHxKYIt3zQYC3AccL/SqqiWXblo3pgToHuBwR8eCP2Toa+X1WmTR/QKFMykws7g==",
|
"integrity": "sha512-ge7saUz38aesM4MA7Cad8CHo0Fyd1+qTaqoIo+Jtk+ipBi4ATSrHWov9/S4u5pbEQmLjgUjB7BJt+MiKG2kzmA==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
|
@ -4724,9 +4725,9 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-win32-ia32-msvc": {
|
"node_modules/@rollup/rollup-win32-ia32-msvc": {
|
||||||
"version": "4.7.0",
|
"version": "4.8.0",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.7.0.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.8.0.tgz",
|
||||||
"integrity": "sha512-pmioUlttNh9GXF5x2CzNa7Z8kmRTyhEzzAC+2WOOapjewMbl+3tGuAnxbwc5JyG8Jsz2+hf/QD/n5VjimOZ63g==",
|
"integrity": "sha512-p9E3PZlzurhlsN5h9g7zIP1DnqKXJe8ZUkFwAazqSvHuWfihlIISPxG9hCHCoA+dOOspL/c7ty1eeEVFTE0UTw==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"ia32"
|
"ia32"
|
||||||
],
|
],
|
||||||
|
@ -4737,9 +4738,9 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-win32-x64-msvc": {
|
"node_modules/@rollup/rollup-win32-x64-msvc": {
|
||||||
"version": "4.7.0",
|
"version": "4.8.0",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.7.0.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.8.0.tgz",
|
||||||
"integrity": "sha512-SeZzC2QhhdBQUm3U0c8+c/P6UlRyBcLL2Xp5KX7z46WXZxzR8RJSIWL9wSUeBTgxog5LTPJuPj0WOT9lvrtP7Q==",
|
"integrity": "sha512-kb4/auKXkYKqlUYTE8s40FcJIj5soOyRLHKd4ugR0dCq0G2EfcF54eYcfQiGkHzjidZ40daB4ulsFdtqNKZtBg==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
|
@ -8037,16 +8038,16 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/eslint-plugin": {
|
"node_modules/@typescript-eslint/eslint-plugin": {
|
||||||
"version": "6.13.2",
|
"version": "6.14.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.13.2.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.14.0.tgz",
|
||||||
"integrity": "sha512-3+9OGAWHhk4O1LlcwLBONbdXsAhLjyCFogJY/cWy2lxdVJ2JrcTF2pTGMaLl2AE7U1l31n8Py4a8bx5DLf/0dQ==",
|
"integrity": "sha512-1ZJBykBCXaSHG94vMMKmiHoL0MhNHKSVlcHVYZNw+BKxufhqQVTOawNpwwI1P5nIFZ/4jLVop0mcY6mJJDFNaw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@eslint-community/regexpp": "^4.5.1",
|
"@eslint-community/regexpp": "^4.5.1",
|
||||||
"@typescript-eslint/scope-manager": "6.13.2",
|
"@typescript-eslint/scope-manager": "6.14.0",
|
||||||
"@typescript-eslint/type-utils": "6.13.2",
|
"@typescript-eslint/type-utils": "6.14.0",
|
||||||
"@typescript-eslint/utils": "6.13.2",
|
"@typescript-eslint/utils": "6.14.0",
|
||||||
"@typescript-eslint/visitor-keys": "6.13.2",
|
"@typescript-eslint/visitor-keys": "6.14.0",
|
||||||
"debug": "^4.3.4",
|
"debug": "^4.3.4",
|
||||||
"graphemer": "^1.4.0",
|
"graphemer": "^1.4.0",
|
||||||
"ignore": "^5.2.4",
|
"ignore": "^5.2.4",
|
||||||
|
@ -8105,15 +8106,15 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/parser": {
|
"node_modules/@typescript-eslint/parser": {
|
||||||
"version": "6.13.2",
|
"version": "6.14.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.13.2.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.14.0.tgz",
|
||||||
"integrity": "sha512-MUkcC+7Wt/QOGeVlM8aGGJZy1XV5YKjTpq9jK6r6/iLsGXhBVaGP5N0UYvFsu9BFlSpwY9kMretzdBH01rkRXg==",
|
"integrity": "sha512-QjToC14CKacd4Pa7JK4GeB/vHmWFJckec49FR4hmIRf97+KXole0T97xxu9IFiPxVQ1DBWrQ5wreLwAGwWAVQA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/scope-manager": "6.13.2",
|
"@typescript-eslint/scope-manager": "6.14.0",
|
||||||
"@typescript-eslint/types": "6.13.2",
|
"@typescript-eslint/types": "6.14.0",
|
||||||
"@typescript-eslint/typescript-estree": "6.13.2",
|
"@typescript-eslint/typescript-estree": "6.14.0",
|
||||||
"@typescript-eslint/visitor-keys": "6.13.2",
|
"@typescript-eslint/visitor-keys": "6.14.0",
|
||||||
"debug": "^4.3.4"
|
"debug": "^4.3.4"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
@ -8133,13 +8134,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/scope-manager": {
|
"node_modules/@typescript-eslint/scope-manager": {
|
||||||
"version": "6.13.2",
|
"version": "6.14.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.13.2.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.14.0.tgz",
|
||||||
"integrity": "sha512-CXQA0xo7z6x13FeDYCgBkjWzNqzBn8RXaE3QVQVIUm74fWJLkJkaHmHdKStrxQllGh6Q4eUGyNpMe0b1hMkXFA==",
|
"integrity": "sha512-VT7CFWHbZipPncAZtuALr9y3EuzY1b1t1AEkIq2bTXUPKw+pHoXflGNG5L+Gv6nKul1cz1VH8fz16IThIU0tdg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/types": "6.13.2",
|
"@typescript-eslint/types": "6.14.0",
|
||||||
"@typescript-eslint/visitor-keys": "6.13.2"
|
"@typescript-eslint/visitor-keys": "6.14.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^16.0.0 || >=18.0.0"
|
"node": "^16.0.0 || >=18.0.0"
|
||||||
|
@ -8150,13 +8151,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/type-utils": {
|
"node_modules/@typescript-eslint/type-utils": {
|
||||||
"version": "6.13.2",
|
"version": "6.14.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.13.2.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.14.0.tgz",
|
||||||
"integrity": "sha512-Qr6ssS1GFongzH2qfnWKkAQmMUyZSyOr0W54nZNU1MDfo+U4Mv3XveeLZzadc/yq8iYhQZHYT+eoXJqnACM1tw==",
|
"integrity": "sha512-x6OC9Q7HfYKqjnuNu5a7kffIYs3No30isapRBJl1iCHLitD8O0lFbRcVGiOcuyN837fqXzPZ1NS10maQzZMKqw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/typescript-estree": "6.13.2",
|
"@typescript-eslint/typescript-estree": "6.14.0",
|
||||||
"@typescript-eslint/utils": "6.13.2",
|
"@typescript-eslint/utils": "6.14.0",
|
||||||
"debug": "^4.3.4",
|
"debug": "^4.3.4",
|
||||||
"ts-api-utils": "^1.0.1"
|
"ts-api-utils": "^1.0.1"
|
||||||
},
|
},
|
||||||
|
@ -8177,9 +8178,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/types": {
|
"node_modules/@typescript-eslint/types": {
|
||||||
"version": "6.13.2",
|
"version": "6.14.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.13.2.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.14.0.tgz",
|
||||||
"integrity": "sha512-7sxbQ+EMRubQc3wTfTsycgYpSujyVbI1xw+3UMRUcrhSy+pN09y/lWzeKDbvhoqcRbHdc+APLs/PWYi/cisLPg==",
|
"integrity": "sha512-uty9H2K4Xs8E47z3SnXEPRNDfsis8JO27amp2GNCnzGETEW3yTqEIVg5+AI7U276oGF/tw6ZA+UesxeQ104ceA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^16.0.0 || >=18.0.0"
|
"node": "^16.0.0 || >=18.0.0"
|
||||||
|
@ -8190,13 +8191,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/typescript-estree": {
|
"node_modules/@typescript-eslint/typescript-estree": {
|
||||||
"version": "6.13.2",
|
"version": "6.14.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.13.2.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.14.0.tgz",
|
||||||
"integrity": "sha512-SuD8YLQv6WHnOEtKv8D6HZUzOub855cfPnPMKvdM/Bh1plv1f7Q/0iFUDLKKlxHcEstQnaUU4QZskgQq74t+3w==",
|
"integrity": "sha512-yPkaLwK0yH2mZKFE/bXkPAkkFgOv15GJAUzgUVonAbv0Hr4PK/N2yaA/4XQbTZQdygiDkpt5DkxPELqHguNvyw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/types": "6.13.2",
|
"@typescript-eslint/types": "6.14.0",
|
||||||
"@typescript-eslint/visitor-keys": "6.13.2",
|
"@typescript-eslint/visitor-keys": "6.14.0",
|
||||||
"debug": "^4.3.4",
|
"debug": "^4.3.4",
|
||||||
"globby": "^11.1.0",
|
"globby": "^11.1.0",
|
||||||
"is-glob": "^4.0.3",
|
"is-glob": "^4.0.3",
|
||||||
|
@ -8250,17 +8251,17 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/utils": {
|
"node_modules/@typescript-eslint/utils": {
|
||||||
"version": "6.13.2",
|
"version": "6.14.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.13.2.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.14.0.tgz",
|
||||||
"integrity": "sha512-b9Ptq4eAZUym4idijCRzl61oPCwwREcfDI8xGk751Vhzig5fFZR9CyzDz4Sp/nxSLBYxUPyh4QdIDqWykFhNmQ==",
|
"integrity": "sha512-XwRTnbvRr7Ey9a1NT6jqdKX8y/atWG+8fAIu3z73HSP8h06i3r/ClMhmaF/RGWGW1tHJEwij1uEg2GbEmPYvYg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@eslint-community/eslint-utils": "^4.4.0",
|
"@eslint-community/eslint-utils": "^4.4.0",
|
||||||
"@types/json-schema": "^7.0.12",
|
"@types/json-schema": "^7.0.12",
|
||||||
"@types/semver": "^7.5.0",
|
"@types/semver": "^7.5.0",
|
||||||
"@typescript-eslint/scope-manager": "6.13.2",
|
"@typescript-eslint/scope-manager": "6.14.0",
|
||||||
"@typescript-eslint/types": "6.13.2",
|
"@typescript-eslint/types": "6.14.0",
|
||||||
"@typescript-eslint/typescript-estree": "6.13.2",
|
"@typescript-eslint/typescript-estree": "6.14.0",
|
||||||
"semver": "^7.5.4"
|
"semver": "^7.5.4"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
@ -8308,12 +8309,12 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/visitor-keys": {
|
"node_modules/@typescript-eslint/visitor-keys": {
|
||||||
"version": "6.13.2",
|
"version": "6.14.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.13.2.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.14.0.tgz",
|
||||||
"integrity": "sha512-OGznFs0eAQXJsp+xSd6k/O1UbFi/K/L7WjqeRoFE7vadjAF9y0uppXhYNQNEqygjou782maGClOoZwPqF0Drlw==",
|
"integrity": "sha512-fB5cw6GRhJUz03MrROVuj5Zm/Q+XWlVdIsFj+Zb1Hvqouc8t+XP2H5y53QYU/MGtd2dPg6/vJJlhoX3xc2ehfw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/types": "6.13.2",
|
"@typescript-eslint/types": "6.14.0",
|
||||||
"eslint-visitor-keys": "^3.4.1"
|
"eslint-visitor-keys": "^3.4.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
@ -9025,9 +9026,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/browserslist": {
|
"node_modules/browserslist": {
|
||||||
"version": "4.21.10",
|
"version": "4.22.2",
|
||||||
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.10.tgz",
|
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.22.2.tgz",
|
||||||
"integrity": "sha512-bipEBdZfVH5/pwrvqc+Ub0kUPVfGUhlKxbvfD+z1BDnPEO/X98ruXGA1WP5ASpAFKan7Qr6j736IacbZQuAlKQ==",
|
"integrity": "sha512-0UgcrvQmBDvZHFGdYUehrCNIazki7/lUP3kkoi/r3YB2amZbFM9J43ZRkJTXBUZK4gmx56+Sqk9+Vs9mwZx9+A==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
|
@ -9044,10 +9045,10 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"caniuse-lite": "^1.0.30001517",
|
"caniuse-lite": "^1.0.30001565",
|
||||||
"electron-to-chromium": "^1.4.477",
|
"electron-to-chromium": "^1.4.601",
|
||||||
"node-releases": "^2.0.13",
|
"node-releases": "^2.0.14",
|
||||||
"update-browserslist-db": "^1.0.11"
|
"update-browserslist-db": "^1.0.13"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"browserslist": "cli.js"
|
"browserslist": "cli.js"
|
||||||
|
@ -9155,9 +9156,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/caniuse-lite": {
|
"node_modules/caniuse-lite": {
|
||||||
"version": "1.0.30001532",
|
"version": "1.0.30001568",
|
||||||
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001532.tgz",
|
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001568.tgz",
|
||||||
"integrity": "sha512-FbDFnNat3nMnrROzqrsg314zhqN5LGQ1kyyMk2opcrwGbVGpHRhgCWtAgD5YJUqNAiQ+dklreil/c3Qf1dfCTw==",
|
"integrity": "sha512-vSUkH84HontZJ88MiNrOau1EBrCqEQYgkC5gIySiDlpsm8sGVrhU7Kx4V6h0tnqaHzIHZv08HlJIwPbL4XL9+A==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
|
@ -10604,9 +10605,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/electron-to-chromium": {
|
"node_modules/electron-to-chromium": {
|
||||||
"version": "1.4.513",
|
"version": "1.4.610",
|
||||||
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.513.tgz",
|
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.610.tgz",
|
||||||
"integrity": "sha512-cOB0xcInjm+E5qIssHeXJ29BaUyWpMyFKT5RB3bsLENDheCja0wMkHJyiPl0NBE/VzDI7JDuNEQWhe6RitEUcw==",
|
"integrity": "sha512-mqi2oL1mfeHYtOdCxbPQYV/PL7YrQlxbvFEZ0Ee8GbDdShimqt2/S6z2RWqysuvlwdOrQdqvE0KZrBTipAeJzg==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/elkjs": {
|
"node_modules/elkjs": {
|
||||||
|
@ -13748,9 +13749,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/lit-analyzer": {
|
"node_modules/lit-analyzer": {
|
||||||
"version": "2.0.1",
|
"version": "2.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/lit-analyzer/-/lit-analyzer-2.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/lit-analyzer/-/lit-analyzer-2.0.2.tgz",
|
||||||
"integrity": "sha512-4bHJLCbxywMHd9bnVkLDkCSHXs/KrlwUks75EhYtJNdzH07O5BSVdZdadbw4T2AvuYxb0xRO4ZjqgQJCkp8Kjg==",
|
"integrity": "sha512-Is3cx8ypCVq5uNl8EKkPdlLuV3HDVntDVUeLNQlzTM2Je3uG5wHcn+06NB+yhCoa4rhwwXCjprU/7g21CSFqOA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@vscode/web-custom-data": "^0.4.2",
|
"@vscode/web-custom-data": "^0.4.2",
|
||||||
|
@ -15017,9 +15018,9 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/node-releases": {
|
"node_modules/node-releases": {
|
||||||
"version": "2.0.13",
|
"version": "2.0.14",
|
||||||
"resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.13.tgz",
|
"resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.14.tgz",
|
||||||
"integrity": "sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==",
|
"integrity": "sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/non-layered-tidy-tree-layout": {
|
"node_modules/non-layered-tidy-tree-layout": {
|
||||||
|
@ -16672,9 +16673,9 @@
|
||||||
"integrity": "sha512-IXgzBWvWQwE6PrDI05OvmXUIruQTcoMDzRsOd5CDvHCVLcLHMTSYvOK5Cm46kWqlV3yAbuSpBZdJ5oP5OUoStg=="
|
"integrity": "sha512-IXgzBWvWQwE6PrDI05OvmXUIruQTcoMDzRsOd5CDvHCVLcLHMTSYvOK5Cm46kWqlV3yAbuSpBZdJ5oP5OUoStg=="
|
||||||
},
|
},
|
||||||
"node_modules/rollup": {
|
"node_modules/rollup": {
|
||||||
"version": "4.7.0",
|
"version": "4.8.0",
|
||||||
"resolved": "https://registry.npmjs.org/rollup/-/rollup-4.7.0.tgz",
|
"resolved": "https://registry.npmjs.org/rollup/-/rollup-4.8.0.tgz",
|
||||||
"integrity": "sha512-7Kw0dUP4BWH78zaZCqF1rPyQ8D5DSU6URG45v1dqS/faNsx9WXyess00uTOZxKr7oR/4TOjO1CPudT8L1UsEgw==",
|
"integrity": "sha512-NpsklK2fach5CdI+PScmlE5R4Ao/FSWtF7LkoIrHDxPACY/xshNasPsbpG0VVHxUTbf74tJbVT4PrP8JsJ6ZDA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
"rollup": "dist/bin/rollup"
|
"rollup": "dist/bin/rollup"
|
||||||
|
@ -16684,19 +16685,19 @@
|
||||||
"npm": ">=8.0.0"
|
"npm": ">=8.0.0"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"@rollup/rollup-android-arm-eabi": "4.7.0",
|
"@rollup/rollup-android-arm-eabi": "4.8.0",
|
||||||
"@rollup/rollup-android-arm64": "4.7.0",
|
"@rollup/rollup-android-arm64": "4.8.0",
|
||||||
"@rollup/rollup-darwin-arm64": "4.7.0",
|
"@rollup/rollup-darwin-arm64": "4.8.0",
|
||||||
"@rollup/rollup-darwin-x64": "4.7.0",
|
"@rollup/rollup-darwin-x64": "4.8.0",
|
||||||
"@rollup/rollup-linux-arm-gnueabihf": "4.7.0",
|
"@rollup/rollup-linux-arm-gnueabihf": "4.8.0",
|
||||||
"@rollup/rollup-linux-arm64-gnu": "4.7.0",
|
"@rollup/rollup-linux-arm64-gnu": "4.8.0",
|
||||||
"@rollup/rollup-linux-arm64-musl": "4.7.0",
|
"@rollup/rollup-linux-arm64-musl": "4.8.0",
|
||||||
"@rollup/rollup-linux-riscv64-gnu": "4.7.0",
|
"@rollup/rollup-linux-riscv64-gnu": "4.8.0",
|
||||||
"@rollup/rollup-linux-x64-gnu": "4.7.0",
|
"@rollup/rollup-linux-x64-gnu": "4.8.0",
|
||||||
"@rollup/rollup-linux-x64-musl": "4.7.0",
|
"@rollup/rollup-linux-x64-musl": "4.8.0",
|
||||||
"@rollup/rollup-win32-arm64-msvc": "4.7.0",
|
"@rollup/rollup-win32-arm64-msvc": "4.8.0",
|
||||||
"@rollup/rollup-win32-ia32-msvc": "4.7.0",
|
"@rollup/rollup-win32-ia32-msvc": "4.8.0",
|
||||||
"@rollup/rollup-win32-x64-msvc": "4.7.0",
|
"@rollup/rollup-win32-x64-msvc": "4.8.0",
|
||||||
"fsevents": "~2.3.2"
|
"fsevents": "~2.3.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -18194,9 +18195,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/turnstile-types": {
|
"node_modules/turnstile-types": {
|
||||||
"version": "1.1.3",
|
"version": "1.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/turnstile-types/-/turnstile-types-1.1.3.tgz",
|
"resolved": "https://registry.npmjs.org/turnstile-types/-/turnstile-types-1.2.0.tgz",
|
||||||
"integrity": "sha512-hurCjOLYMYU9OmUY2JX/ewHBcadUfOhHX1XgLx9A9Ig5TFl2NGqoyM4EyfaaClsROr95cT868rkgzxCvSCcY6A==",
|
"integrity": "sha512-cTtNEtCYpcXeXR5AOD0YR0xZpXk1iZeTOuXT5vAGNowGGdgapC+k6m/lOVSkmDOUopZmPtmu311XeULIro4gUA==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/type-check": {
|
"node_modules/type-check": {
|
||||||
|
@ -18510,9 +18511,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/update-browserslist-db": {
|
"node_modules/update-browserslist-db": {
|
||||||
"version": "1.0.11",
|
"version": "1.0.13",
|
||||||
"resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz",
|
"resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz",
|
||||||
"integrity": "sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==",
|
"integrity": "sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
"lint:spelling": "codespell -D - -D ../.github/codespell-dictionary.txt -I ../.github/codespell-words.txt -S './src/locales/**' ./src -s",
|
"lint:spelling": "codespell -D - -D ../.github/codespell-dictionary.txt -I ../.github/codespell-words.txt -S './src/locales/**' ./src -s",
|
||||||
"lit-analyse": "lit-analyzer src",
|
"lit-analyse": "lit-analyzer src",
|
||||||
"precommit": "run-s tsc lit-analyse lint:precommit lint:spelling prettier",
|
"precommit": "run-s tsc lit-analyse lint:precommit lint:spelling prettier",
|
||||||
|
"prequick": "run-s tsc:execute lit-analyse lint:precommit lint:spelling",
|
||||||
"prettier-check": "prettier --check .",
|
"prettier-check": "prettier --check .",
|
||||||
"prettier": "prettier --write .",
|
"prettier": "prettier --write .",
|
||||||
"pseudolocalize:build-extract-script": "cd scripts && tsc --esModuleInterop --module es2020 --moduleResolution 'node' pseudolocalize.ts && mv pseudolocalize.js pseudolocalize.mjs",
|
"pseudolocalize:build-extract-script": "cd scripts && tsc --esModuleInterop --module es2020 --moduleResolution 'node' pseudolocalize.ts && mv pseudolocalize.js pseudolocalize.mjs",
|
||||||
|
@ -64,13 +65,13 @@
|
||||||
"yaml": "^2.3.4"
|
"yaml": "^2.3.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.23.5",
|
"@babel/core": "^7.23.6",
|
||||||
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
||||||
"@babel/plugin-proposal-decorators": "^7.23.5",
|
"@babel/plugin-proposal-decorators": "^7.23.6",
|
||||||
"@babel/plugin-transform-private-methods": "^7.23.3",
|
"@babel/plugin-transform-private-methods": "^7.23.3",
|
||||||
"@babel/plugin-transform-private-property-in-object": "^7.23.4",
|
"@babel/plugin-transform-private-property-in-object": "^7.23.4",
|
||||||
"@babel/plugin-transform-runtime": "^7.23.4",
|
"@babel/plugin-transform-runtime": "^7.23.6",
|
||||||
"@babel/preset-env": "^7.23.5",
|
"@babel/preset-env": "^7.23.6",
|
||||||
"@babel/preset-typescript": "^7.23.3",
|
"@babel/preset-typescript": "^7.23.3",
|
||||||
"@hcaptcha/types": "^1.0.3",
|
"@hcaptcha/types": "^1.0.3",
|
||||||
"@jackfranklin/rollup-plugin-markdown": "^0.4.0",
|
"@jackfranklin/rollup-plugin-markdown": "^0.4.0",
|
||||||
|
@ -87,14 +88,14 @@
|
||||||
"@storybook/api": "^7.6.4",
|
"@storybook/api": "^7.6.4",
|
||||||
"@storybook/blocks": "^7.6.4",
|
"@storybook/blocks": "^7.6.4",
|
||||||
"@storybook/manager-api": "^7.6.4",
|
"@storybook/manager-api": "^7.6.4",
|
||||||
"@storybook/web-components-vite": "^7.6.4",
|
|
||||||
"@storybook/web-components": "^7.6.4",
|
"@storybook/web-components": "^7.6.4",
|
||||||
|
"@storybook/web-components-vite": "^7.6.4",
|
||||||
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
||||||
"@types/chart.js": "^2.9.41",
|
"@types/chart.js": "^2.9.41",
|
||||||
"@types/codemirror": "5.60.15",
|
"@types/codemirror": "5.60.15",
|
||||||
"@types/grecaptcha": "^3.0.7",
|
"@types/grecaptcha": "^3.0.7",
|
||||||
"@typescript-eslint/eslint-plugin": "^6.13.2",
|
"@typescript-eslint/eslint-plugin": "^6.14.0",
|
||||||
"@typescript-eslint/parser": "^6.13.2",
|
"@typescript-eslint/parser": "^6.14.0",
|
||||||
"babel-plugin-macros": "^3.1.0",
|
"babel-plugin-macros": "^3.1.0",
|
||||||
"babel-plugin-tsconfig-paths": "^1.0.3",
|
"babel-plugin-tsconfig-paths": "^1.0.3",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
|
@ -104,14 +105,14 @@
|
||||||
"eslint-plugin-lit": "^1.10.1",
|
"eslint-plugin-lit": "^1.10.1",
|
||||||
"eslint-plugin-sonarjs": "^0.23.0",
|
"eslint-plugin-sonarjs": "^0.23.0",
|
||||||
"eslint-plugin-storybook": "^0.6.15",
|
"eslint-plugin-storybook": "^0.6.15",
|
||||||
"lit-analyzer": "^2.0.1",
|
"lit-analyzer": "^2.0.2",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"prettier": "^3.1.1",
|
"prettier": "^3.1.1",
|
||||||
"pseudolocale": "^2.0.0",
|
"pseudolocale": "^2.0.0",
|
||||||
"pyright": "^1.1.338",
|
"pyright": "=1.1.338",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
"rollup": "^4.7.0",
|
"rollup": "^4.8.0",
|
||||||
"rollup-plugin-copy": "^3.5.0",
|
"rollup-plugin-copy": "^3.5.0",
|
||||||
"rollup-plugin-cssimport": "^1.0.3",
|
"rollup-plugin-cssimport": "^1.0.3",
|
||||||
"rollup-plugin-postcss-lit": "^2.1.0",
|
"rollup-plugin-postcss-lit": "^2.1.0",
|
||||||
|
@ -119,7 +120,7 @@
|
||||||
"storybook-addon-mock": "^4.3.0",
|
"storybook-addon-mock": "^4.3.0",
|
||||||
"ts-lit-plugin": "^2.0.1",
|
"ts-lit-plugin": "^2.0.1",
|
||||||
"tslib": "^2.6.2",
|
"tslib": "^2.6.2",
|
||||||
"turnstile-types": "^1.1.3",
|
"turnstile-types": "^1.2.0",
|
||||||
"typescript": "^5.3.3",
|
"typescript": "^5.3.3",
|
||||||
"vite-tsconfig-paths": "^4.2.2"
|
"vite-tsconfig-paths": "^4.2.2"
|
||||||
},
|
},
|
||||||
|
|
|
@ -75,11 +75,9 @@ export class ApplicationForm extends ModelForm<Application, string> {
|
||||||
clearIcon = false;
|
clearIcon = false;
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
getSuccessMessage(): string {
|
||||||
if (this.instance) {
|
return this.instance
|
||||||
return msg("Successfully updated application.");
|
? msg("Successfully updated application.")
|
||||||
} else {
|
: msg("Successfully created application.");
|
||||||
return msg("Successfully created application.");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async send(data: Application): Promise<Application | void> {
|
async send(data: Application): Promise<Application | void> {
|
||||||
|
@ -142,21 +140,21 @@ export class ApplicationForm extends ModelForm<Application, string> {
|
||||||
return html`<form class="pf-c-form pf-m-horizontal">
|
return html`<form class="pf-c-form pf-m-horizontal">
|
||||||
<ak-text-input
|
<ak-text-input
|
||||||
name="name"
|
name="name"
|
||||||
value=${this.instance?.name}
|
.value=${this.instance?.name}
|
||||||
label=${msg("Name")}
|
label=${msg("Name")}
|
||||||
required
|
required
|
||||||
help=${msg("Application's display Name.")}
|
help=${msg("Application's display Name.")}
|
||||||
></ak-text-input>
|
></ak-text-input>
|
||||||
<ak-text-input
|
<ak-text-input
|
||||||
name="slug"
|
name="slug"
|
||||||
value=${this.instance?.slug}
|
.value=${this.instance?.slug}
|
||||||
label=${msg("Slug")}
|
label=${msg("Slug")}
|
||||||
required
|
required
|
||||||
help=${msg("Internal application name used in URLs.")}
|
help=${msg("Internal application name used in URLs.")}
|
||||||
></ak-text-input>
|
></ak-text-input>
|
||||||
<ak-text-input
|
<ak-text-input
|
||||||
name="group"
|
name="group"
|
||||||
value=${this.instance?.group}
|
.value=${this.instance?.group}
|
||||||
label=${msg("Group")}
|
label=${msg("Group")}
|
||||||
help=${msg(
|
help=${msg(
|
||||||
"Optionally enter a group name. Applications with identical groups are shown grouped together.",
|
"Optionally enter a group name. Applications with identical groups are shown grouped together.",
|
||||||
|
@ -165,7 +163,7 @@ export class ApplicationForm extends ModelForm<Application, string> {
|
||||||
<ak-provider-search-input
|
<ak-provider-search-input
|
||||||
name="provider"
|
name="provider"
|
||||||
label=${msg("Provider")}
|
label=${msg("Provider")}
|
||||||
value=${this.instance?.provider}
|
.value=${this.instance?.provider}
|
||||||
help=${msg("Select a provider that this application should use.")}
|
help=${msg("Select a provider that this application should use.")}
|
||||||
blankable
|
blankable
|
||||||
></ak-provider-search-input>
|
></ak-provider-search-input>
|
||||||
|
@ -215,7 +213,7 @@ export class ApplicationForm extends ModelForm<Application, string> {
|
||||||
? html`<ak-file-input
|
? html`<ak-file-input
|
||||||
label="${msg("Icon")}"
|
label="${msg("Icon")}"
|
||||||
name="metaIcon"
|
name="metaIcon"
|
||||||
value=${this.instance?.metaIcon}
|
.value=${this.instance?.metaIcon}
|
||||||
current=${msg("Currently set to:")}
|
current=${msg("Currently set to:")}
|
||||||
></ak-file-input>
|
></ak-file-input>
|
||||||
${this.instance?.metaIcon
|
${this.instance?.metaIcon
|
||||||
|
|
|
@ -44,11 +44,9 @@ export class BlueprintForm extends ModelForm<BlueprintInstance, string> {
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
getSuccessMessage(): string {
|
||||||
if (this.instance) {
|
return this.instance
|
||||||
return msg("Successfully updated instance.");
|
? msg("Successfully updated instance.")
|
||||||
} else {
|
: msg("Successfully created instance.");
|
||||||
return msg("Successfully created instance.");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static get styles(): CSSResult[] {
|
static get styles(): CSSResult[] {
|
||||||
|
|
|
@ -19,11 +19,9 @@ export class CertificateKeyPairForm extends ModelForm<CertificateKeyPair, string
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
getSuccessMessage(): string {
|
||||||
if (this.instance) {
|
return this.instance
|
||||||
return msg("Successfully updated certificate-key pair.");
|
? msg("Successfully updated certificate-key pair.")
|
||||||
} else {
|
: msg("Successfully created certificate-key pair.");
|
||||||
return msg("Successfully created certificate-key pair.");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async send(data: CertificateKeyPair): Promise<CertificateKeyPair> {
|
async send(data: CertificateKeyPair): Promise<CertificateKeyPair> {
|
||||||
|
|
|
@ -37,11 +37,9 @@ export class RuleForm extends ModelForm<NotificationRule, string> {
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
getSuccessMessage(): string {
|
||||||
if (this.instance) {
|
return this.instance
|
||||||
return msg("Successfully updated rule.");
|
? msg("Successfully updated rule.")
|
||||||
} else {
|
: msg("Successfully created rule.");
|
||||||
return msg("Successfully created rule.");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async send(data: NotificationRule): Promise<NotificationRule> {
|
async send(data: NotificationRule): Promise<NotificationRule> {
|
||||||
|
|
|
@ -36,11 +36,9 @@ export class TransportForm extends ModelForm<NotificationTransport, string> {
|
||||||
showWebhook = false;
|
showWebhook = false;
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
getSuccessMessage(): string {
|
||||||
if (this.instance) {
|
return this.instance
|
||||||
return msg("Successfully updated transport.");
|
? msg("Successfully updated transport.")
|
||||||
} else {
|
: msg("Successfully created transport.");
|
||||||
return msg("Successfully created transport.");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async send(data: NotificationTransport): Promise<NotificationTransport> {
|
async send(data: NotificationTransport): Promise<NotificationTransport> {
|
||||||
|
|
|
@ -34,11 +34,9 @@ export class FlowForm extends ModelForm<Flow, string> {
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
getSuccessMessage(): string {
|
||||||
if (this.instance) {
|
return this.instance
|
||||||
return msg("Successfully updated flow.");
|
? msg("Successfully updated flow.")
|
||||||
} else {
|
: msg("Successfully created flow.");
|
||||||
return msg("Successfully created flow.");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@property({ type: Boolean })
|
@property({ type: Boolean })
|
||||||
|
|
|
@ -46,11 +46,9 @@ export class GroupForm extends ModelForm<Group, string> {
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
getSuccessMessage(): string {
|
||||||
if (this.instance) {
|
return this.instance
|
||||||
return msg("Successfully updated group.");
|
? msg("Successfully updated group.")
|
||||||
} else {
|
: msg("Successfully created group.");
|
||||||
return msg("Successfully created group.");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async load(): Promise<void> {
|
async load(): Promise<void> {
|
||||||
|
|
|
@ -79,11 +79,9 @@ export class OutpostForm extends ModelForm<Outpost, string> {
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
getSuccessMessage(): string {
|
||||||
if (this.instance) {
|
return this.instance
|
||||||
return msg("Successfully updated outpost.");
|
? msg("Successfully updated outpost.")
|
||||||
} else {
|
: msg("Successfully created outpost.");
|
||||||
return msg("Successfully created outpost.");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async send(data: Outpost): Promise<Outpost> {
|
async send(data: Outpost): Promise<Outpost> {
|
||||||
|
|
|
@ -21,11 +21,9 @@ export class ServiceConnectionDockerForm extends ModelForm<DockerServiceConnecti
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
getSuccessMessage(): string {
|
||||||
if (this.instance) {
|
return this.instance
|
||||||
return msg("Successfully updated integration.");
|
? msg("Successfully updated integration.")
|
||||||
} else {
|
: msg("Successfully created integration.");
|
||||||
return msg("Successfully created integration.");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async send(data: DockerServiceConnection): Promise<DockerServiceConnection> {
|
async send(data: DockerServiceConnection): Promise<DockerServiceConnection> {
|
||||||
|
@ -88,7 +86,7 @@ export class ServiceConnectionDockerForm extends ModelForm<DockerServiceConnecti
|
||||||
name="tlsVerification"
|
name="tlsVerification"
|
||||||
>
|
>
|
||||||
<ak-crypto-certificate-search
|
<ak-crypto-certificate-search
|
||||||
certificate=${this.instance?.tlsVerification}
|
.certificate=${this.instance?.tlsVerification}
|
||||||
></ak-crypto-certificate-search>
|
></ak-crypto-certificate-search>
|
||||||
<p class="pf-c-form__helper-text">
|
<p class="pf-c-form__helper-text">
|
||||||
${msg(
|
${msg(
|
||||||
|
@ -101,7 +99,7 @@ export class ServiceConnectionDockerForm extends ModelForm<DockerServiceConnecti
|
||||||
name="tlsAuthentication"
|
name="tlsAuthentication"
|
||||||
>
|
>
|
||||||
<ak-crypto-certificate-search
|
<ak-crypto-certificate-search
|
||||||
certificate=${this.instance?.tlsAuthentication}
|
.certificate=${this.instance?.tlsAuthentication}
|
||||||
></ak-crypto-certificate-search>
|
></ak-crypto-certificate-search>
|
||||||
<p class="pf-c-form__helper-text">
|
<p class="pf-c-form__helper-text">
|
||||||
${msg(
|
${msg(
|
||||||
|
|
|
@ -25,11 +25,9 @@ export class ServiceConnectionKubernetesForm extends ModelForm<
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
getSuccessMessage(): string {
|
||||||
if (this.instance) {
|
return this.instance
|
||||||
return msg("Successfully updated integration.");
|
? msg("Successfully updated integration.")
|
||||||
} else {
|
: msg("Successfully created integration.");
|
||||||
return msg("Successfully created integration.");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async send(data: KubernetesServiceConnection): Promise<KubernetesServiceConnection> {
|
async send(data: KubernetesServiceConnection): Promise<KubernetesServiceConnection> {
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
||||||
|
|
||||||
|
import { msg } from "@lit/localize";
|
||||||
|
|
||||||
|
export abstract class BasePolicyForm<T> extends ModelForm<T, string> {
|
||||||
|
getSuccessMessage(): string {
|
||||||
|
return this.instance
|
||||||
|
? msg("Successfully updated policy.")
|
||||||
|
: msg("Successfully created policy.");
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,8 +1,8 @@
|
||||||
|
import { BasePolicyForm } from "@goauthentik/admin/policies/BasePolicyForm";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
||||||
import { first } from "@goauthentik/common/utils";
|
import { first } from "@goauthentik/common/utils";
|
||||||
import "@goauthentik/elements/forms/FormGroup";
|
import "@goauthentik/elements/forms/FormGroup";
|
||||||
import "@goauthentik/elements/forms/HorizontalFormElement";
|
import "@goauthentik/elements/forms/HorizontalFormElement";
|
||||||
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
|
||||||
|
|
||||||
import { msg } from "@lit/localize";
|
import { msg } from "@lit/localize";
|
||||||
import { TemplateResult, html } from "lit";
|
import { TemplateResult, html } from "lit";
|
||||||
|
@ -12,21 +12,13 @@ import { ifDefined } from "lit/directives/if-defined.js";
|
||||||
import { DummyPolicy, PoliciesApi } from "@goauthentik/api";
|
import { DummyPolicy, PoliciesApi } from "@goauthentik/api";
|
||||||
|
|
||||||
@customElement("ak-policy-dummy-form")
|
@customElement("ak-policy-dummy-form")
|
||||||
export class DummyPolicyForm extends ModelForm<DummyPolicy, string> {
|
export class DummyPolicyForm extends BasePolicyForm<DummyPolicy> {
|
||||||
loadInstance(pk: string): Promise<DummyPolicy> {
|
loadInstance(pk: string): Promise<DummyPolicy> {
|
||||||
return new PoliciesApi(DEFAULT_CONFIG).policiesDummyRetrieve({
|
return new PoliciesApi(DEFAULT_CONFIG).policiesDummyRetrieve({
|
||||||
policyUuid: pk,
|
policyUuid: pk,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
|
||||||
if (this.instance) {
|
|
||||||
return msg("Successfully updated policy.");
|
|
||||||
} else {
|
|
||||||
return msg("Successfully created policy.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async send(data: DummyPolicy): Promise<DummyPolicy> {
|
async send(data: DummyPolicy): Promise<DummyPolicy> {
|
||||||
if (this.instance) {
|
if (this.instance) {
|
||||||
return new PoliciesApi(DEFAULT_CONFIG).policiesDummyUpdate({
|
return new PoliciesApi(DEFAULT_CONFIG).policiesDummyUpdate({
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
|
import { BasePolicyForm } from "@goauthentik/admin/policies/BasePolicyForm";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
||||||
import { first } from "@goauthentik/common/utils";
|
import { first } from "@goauthentik/common/utils";
|
||||||
import "@goauthentik/elements/forms/FormGroup";
|
import "@goauthentik/elements/forms/FormGroup";
|
||||||
import "@goauthentik/elements/forms/HorizontalFormElement";
|
import "@goauthentik/elements/forms/HorizontalFormElement";
|
||||||
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
|
||||||
import "@goauthentik/elements/forms/SearchSelect";
|
import "@goauthentik/elements/forms/SearchSelect";
|
||||||
|
|
||||||
import { msg } from "@lit/localize";
|
import { msg } from "@lit/localize";
|
||||||
|
@ -20,21 +20,13 @@ import {
|
||||||
} from "@goauthentik/api";
|
} from "@goauthentik/api";
|
||||||
|
|
||||||
@customElement("ak-policy-event-matcher-form")
|
@customElement("ak-policy-event-matcher-form")
|
||||||
export class EventMatcherPolicyForm extends ModelForm<EventMatcherPolicy, string> {
|
export class EventMatcherPolicyForm extends BasePolicyForm<EventMatcherPolicy> {
|
||||||
loadInstance(pk: string): Promise<EventMatcherPolicy> {
|
loadInstance(pk: string): Promise<EventMatcherPolicy> {
|
||||||
return new PoliciesApi(DEFAULT_CONFIG).policiesEventMatcherRetrieve({
|
return new PoliciesApi(DEFAULT_CONFIG).policiesEventMatcherRetrieve({
|
||||||
policyUuid: pk,
|
policyUuid: pk,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
|
||||||
if (this.instance) {
|
|
||||||
return msg("Successfully updated policy.");
|
|
||||||
} else {
|
|
||||||
return msg("Successfully created policy.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async send(data: EventMatcherPolicy): Promise<EventMatcherPolicy> {
|
async send(data: EventMatcherPolicy): Promise<EventMatcherPolicy> {
|
||||||
if (data.action?.toString() === "") data.action = null;
|
if (data.action?.toString() === "") data.action = null;
|
||||||
if (data.clientIp?.toString() === "") data.clientIp = null;
|
if (data.clientIp?.toString() === "") data.clientIp = null;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
|
import { BasePolicyForm } from "@goauthentik/admin/policies/BasePolicyForm";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
||||||
import { first } from "@goauthentik/common/utils";
|
import { first } from "@goauthentik/common/utils";
|
||||||
import "@goauthentik/elements/forms/FormGroup";
|
import "@goauthentik/elements/forms/FormGroup";
|
||||||
import "@goauthentik/elements/forms/HorizontalFormElement";
|
import "@goauthentik/elements/forms/HorizontalFormElement";
|
||||||
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
|
||||||
|
|
||||||
import { msg } from "@lit/localize";
|
import { msg } from "@lit/localize";
|
||||||
import { TemplateResult, html } from "lit";
|
import { TemplateResult, html } from "lit";
|
||||||
|
@ -12,21 +12,13 @@ import { ifDefined } from "lit/directives/if-defined.js";
|
||||||
import { PasswordExpiryPolicy, PoliciesApi } from "@goauthentik/api";
|
import { PasswordExpiryPolicy, PoliciesApi } from "@goauthentik/api";
|
||||||
|
|
||||||
@customElement("ak-policy-password-expiry-form")
|
@customElement("ak-policy-password-expiry-form")
|
||||||
export class PasswordExpiryPolicyForm extends ModelForm<PasswordExpiryPolicy, string> {
|
export class PasswordExpiryPolicyForm extends BasePolicyForm<PasswordExpiryPolicy> {
|
||||||
loadInstance(pk: string): Promise<PasswordExpiryPolicy> {
|
loadInstance(pk: string): Promise<PasswordExpiryPolicy> {
|
||||||
return new PoliciesApi(DEFAULT_CONFIG).policiesPasswordExpiryRetrieve({
|
return new PoliciesApi(DEFAULT_CONFIG).policiesPasswordExpiryRetrieve({
|
||||||
policyUuid: pk,
|
policyUuid: pk,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
|
||||||
if (this.instance) {
|
|
||||||
return msg("Successfully updated policy.");
|
|
||||||
} else {
|
|
||||||
return msg("Successfully created policy.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async send(data: PasswordExpiryPolicy): Promise<PasswordExpiryPolicy> {
|
async send(data: PasswordExpiryPolicy): Promise<PasswordExpiryPolicy> {
|
||||||
if (this.instance) {
|
if (this.instance) {
|
||||||
return new PoliciesApi(DEFAULT_CONFIG).policiesPasswordExpiryUpdate({
|
return new PoliciesApi(DEFAULT_CONFIG).policiesPasswordExpiryUpdate({
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import { BasePolicyForm } from "@goauthentik/admin/policies/BasePolicyForm";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
||||||
import { docLink } from "@goauthentik/common/global";
|
import { docLink } from "@goauthentik/common/global";
|
||||||
import { first } from "@goauthentik/common/utils";
|
import { first } from "@goauthentik/common/utils";
|
||||||
|
@ -5,7 +6,6 @@ import "@goauthentik/elements/CodeMirror";
|
||||||
import { CodeMirrorMode } from "@goauthentik/elements/CodeMirror";
|
import { CodeMirrorMode } from "@goauthentik/elements/CodeMirror";
|
||||||
import "@goauthentik/elements/forms/FormGroup";
|
import "@goauthentik/elements/forms/FormGroup";
|
||||||
import "@goauthentik/elements/forms/HorizontalFormElement";
|
import "@goauthentik/elements/forms/HorizontalFormElement";
|
||||||
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
|
||||||
|
|
||||||
import { msg } from "@lit/localize";
|
import { msg } from "@lit/localize";
|
||||||
import { TemplateResult, html } from "lit";
|
import { TemplateResult, html } from "lit";
|
||||||
|
@ -15,21 +15,13 @@ import { ifDefined } from "lit/directives/if-defined.js";
|
||||||
import { ExpressionPolicy, PoliciesApi } from "@goauthentik/api";
|
import { ExpressionPolicy, PoliciesApi } from "@goauthentik/api";
|
||||||
|
|
||||||
@customElement("ak-policy-expression-form")
|
@customElement("ak-policy-expression-form")
|
||||||
export class ExpressionPolicyForm extends ModelForm<ExpressionPolicy, string> {
|
export class ExpressionPolicyForm extends BasePolicyForm<ExpressionPolicy> {
|
||||||
loadInstance(pk: string): Promise<ExpressionPolicy> {
|
loadInstance(pk: string): Promise<ExpressionPolicy> {
|
||||||
return new PoliciesApi(DEFAULT_CONFIG).policiesExpressionRetrieve({
|
return new PoliciesApi(DEFAULT_CONFIG).policiesExpressionRetrieve({
|
||||||
policyUuid: pk,
|
policyUuid: pk,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
|
||||||
if (this.instance) {
|
|
||||||
return msg("Successfully updated policy.");
|
|
||||||
} else {
|
|
||||||
return msg("Successfully created policy.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async send(data: ExpressionPolicy): Promise<ExpressionPolicy> {
|
async send(data: ExpressionPolicy): Promise<ExpressionPolicy> {
|
||||||
if (this.instance) {
|
if (this.instance) {
|
||||||
return new PoliciesApi(DEFAULT_CONFIG).policiesExpressionUpdate({
|
return new PoliciesApi(DEFAULT_CONFIG).policiesExpressionUpdate({
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
|
import { BasePolicyForm } from "@goauthentik/admin/policies/BasePolicyForm";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
||||||
import { first } from "@goauthentik/common/utils";
|
import { first } from "@goauthentik/common/utils";
|
||||||
import "@goauthentik/elements/forms/FormGroup";
|
import "@goauthentik/elements/forms/FormGroup";
|
||||||
import "@goauthentik/elements/forms/HorizontalFormElement";
|
import "@goauthentik/elements/forms/HorizontalFormElement";
|
||||||
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
|
||||||
|
|
||||||
import { msg } from "@lit/localize";
|
import { msg } from "@lit/localize";
|
||||||
import { TemplateResult, html } from "lit";
|
import { TemplateResult, html } from "lit";
|
||||||
|
@ -12,7 +12,7 @@ import { ifDefined } from "lit/directives/if-defined.js";
|
||||||
import { PasswordPolicy, PoliciesApi } from "@goauthentik/api";
|
import { PasswordPolicy, PoliciesApi } from "@goauthentik/api";
|
||||||
|
|
||||||
@customElement("ak-policy-password-form")
|
@customElement("ak-policy-password-form")
|
||||||
export class PasswordPolicyForm extends ModelForm<PasswordPolicy, string> {
|
export class PasswordPolicyForm extends BasePolicyForm<PasswordPolicy> {
|
||||||
@state()
|
@state()
|
||||||
showStatic = true;
|
showStatic = true;
|
||||||
|
|
||||||
|
@ -32,14 +32,6 @@ export class PasswordPolicyForm extends ModelForm<PasswordPolicy, string> {
|
||||||
return policy;
|
return policy;
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
|
||||||
if (this.instance) {
|
|
||||||
return msg("Successfully updated policy.");
|
|
||||||
} else {
|
|
||||||
return msg("Successfully created policy.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async send(data: PasswordPolicy): Promise<PasswordPolicy> {
|
async send(data: PasswordPolicy): Promise<PasswordPolicy> {
|
||||||
if (this.instance) {
|
if (this.instance) {
|
||||||
return new PoliciesApi(DEFAULT_CONFIG).policiesPasswordUpdate({
|
return new PoliciesApi(DEFAULT_CONFIG).policiesPasswordUpdate({
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
|
import { BasePolicyForm } from "@goauthentik/admin/policies/BasePolicyForm";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
||||||
import { first } from "@goauthentik/common/utils";
|
import { first } from "@goauthentik/common/utils";
|
||||||
import "@goauthentik/elements/forms/FormGroup";
|
import "@goauthentik/elements/forms/FormGroup";
|
||||||
import "@goauthentik/elements/forms/HorizontalFormElement";
|
import "@goauthentik/elements/forms/HorizontalFormElement";
|
||||||
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
|
||||||
|
|
||||||
import { msg } from "@lit/localize";
|
import { msg } from "@lit/localize";
|
||||||
import { TemplateResult, html } from "lit";
|
import { TemplateResult, html } from "lit";
|
||||||
|
@ -12,21 +12,13 @@ import { ifDefined } from "lit/directives/if-defined.js";
|
||||||
import { PoliciesApi, ReputationPolicy } from "@goauthentik/api";
|
import { PoliciesApi, ReputationPolicy } from "@goauthentik/api";
|
||||||
|
|
||||||
@customElement("ak-policy-reputation-form")
|
@customElement("ak-policy-reputation-form")
|
||||||
export class ReputationPolicyForm extends ModelForm<ReputationPolicy, string> {
|
export class ReputationPolicyForm extends BasePolicyForm<ReputationPolicy> {
|
||||||
loadInstance(pk: string): Promise<ReputationPolicy> {
|
loadInstance(pk: string): Promise<ReputationPolicy> {
|
||||||
return new PoliciesApi(DEFAULT_CONFIG).policiesReputationRetrieve({
|
return new PoliciesApi(DEFAULT_CONFIG).policiesReputationRetrieve({
|
||||||
policyUuid: pk,
|
policyUuid: pk,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
|
||||||
if (this.instance) {
|
|
||||||
return msg("Successfully updated policy.");
|
|
||||||
} else {
|
|
||||||
return msg("Successfully created policy.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async send(data: ReputationPolicy): Promise<ReputationPolicy> {
|
async send(data: ReputationPolicy): Promise<ReputationPolicy> {
|
||||||
if (this.instance) {
|
if (this.instance) {
|
||||||
return new PoliciesApi(DEFAULT_CONFIG).policiesReputationUpdate({
|
return new PoliciesApi(DEFAULT_CONFIG).policiesReputationUpdate({
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
||||||
|
|
||||||
|
import { msg } from "@lit/localize";
|
||||||
|
|
||||||
|
export abstract class BasePropertyMappingForm<T> extends ModelForm<T, string> {
|
||||||
|
getSuccessMessage(): string {
|
||||||
|
return this.instance
|
||||||
|
? msg("Successfully updated mapping.")
|
||||||
|
: msg("Successfully created mapping.");
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,9 +1,9 @@
|
||||||
|
import { BasePropertyMappingForm } from "@goauthentik/admin/property-mappings/BasePropertyMappingForm";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
||||||
import { docLink } from "@goauthentik/common/global";
|
import { docLink } from "@goauthentik/common/global";
|
||||||
import "@goauthentik/elements/CodeMirror";
|
import "@goauthentik/elements/CodeMirror";
|
||||||
import { CodeMirrorMode } from "@goauthentik/elements/CodeMirror";
|
import { CodeMirrorMode } from "@goauthentik/elements/CodeMirror";
|
||||||
import "@goauthentik/elements/forms/HorizontalFormElement";
|
import "@goauthentik/elements/forms/HorizontalFormElement";
|
||||||
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
|
||||||
|
|
||||||
import { msg } from "@lit/localize";
|
import { msg } from "@lit/localize";
|
||||||
import { TemplateResult, html } from "lit";
|
import { TemplateResult, html } from "lit";
|
||||||
|
@ -13,21 +13,13 @@ import { ifDefined } from "lit/directives/if-defined.js";
|
||||||
import { LDAPPropertyMapping, PropertymappingsApi } from "@goauthentik/api";
|
import { LDAPPropertyMapping, PropertymappingsApi } from "@goauthentik/api";
|
||||||
|
|
||||||
@customElement("ak-property-mapping-ldap-form")
|
@customElement("ak-property-mapping-ldap-form")
|
||||||
export class PropertyMappingLDAPForm extends ModelForm<LDAPPropertyMapping, string> {
|
export class PropertyMappingLDAPForm extends BasePropertyMappingForm<LDAPPropertyMapping> {
|
||||||
loadInstance(pk: string): Promise<LDAPPropertyMapping> {
|
loadInstance(pk: string): Promise<LDAPPropertyMapping> {
|
||||||
return new PropertymappingsApi(DEFAULT_CONFIG).propertymappingsLdapRetrieve({
|
return new PropertymappingsApi(DEFAULT_CONFIG).propertymappingsLdapRetrieve({
|
||||||
pmUuid: pk,
|
pmUuid: pk,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
|
||||||
if (this.instance) {
|
|
||||||
return msg("Successfully updated mapping.");
|
|
||||||
} else {
|
|
||||||
return msg("Successfully created mapping.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async send(data: LDAPPropertyMapping): Promise<LDAPPropertyMapping> {
|
async send(data: LDAPPropertyMapping): Promise<LDAPPropertyMapping> {
|
||||||
if (this.instance) {
|
if (this.instance) {
|
||||||
return new PropertymappingsApi(DEFAULT_CONFIG).propertymappingsLdapUpdate({
|
return new PropertymappingsApi(DEFAULT_CONFIG).propertymappingsLdapUpdate({
|
||||||
|
|
|
@ -21,11 +21,9 @@ export class PropertyMappingNotification extends ModelForm<NotificationWebhookMa
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
getSuccessMessage(): string {
|
||||||
if (this.instance) {
|
return this.instance
|
||||||
return msg("Successfully updated mapping.");
|
? msg("Successfully updated mapping.")
|
||||||
} else {
|
: msg("Successfully created mapping.");
|
||||||
return msg("Successfully created mapping.");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async send(data: NotificationWebhookMapping): Promise<NotificationWebhookMapping> {
|
async send(data: NotificationWebhookMapping): Promise<NotificationWebhookMapping> {
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
|
import { BasePropertyMappingForm } from "@goauthentik/admin/property-mappings/BasePropertyMappingForm";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
||||||
import { docLink } from "@goauthentik/common/global";
|
import { docLink } from "@goauthentik/common/global";
|
||||||
import "@goauthentik/elements/CodeMirror";
|
import "@goauthentik/elements/CodeMirror";
|
||||||
import { CodeMirrorMode } from "@goauthentik/elements/CodeMirror";
|
import { CodeMirrorMode } from "@goauthentik/elements/CodeMirror";
|
||||||
import "@goauthentik/elements/forms/HorizontalFormElement";
|
import "@goauthentik/elements/forms/HorizontalFormElement";
|
||||||
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
|
||||||
|
|
||||||
import { msg } from "@lit/localize";
|
import { msg } from "@lit/localize";
|
||||||
import { TemplateResult, html } from "lit";
|
import { TemplateResult, html } from "lit";
|
||||||
|
@ -13,21 +13,13 @@ import { ifDefined } from "lit/directives/if-defined.js";
|
||||||
import { PropertymappingsApi, SAMLPropertyMapping } from "@goauthentik/api";
|
import { PropertymappingsApi, SAMLPropertyMapping } from "@goauthentik/api";
|
||||||
|
|
||||||
@customElement("ak-property-mapping-saml-form")
|
@customElement("ak-property-mapping-saml-form")
|
||||||
export class PropertyMappingSAMLForm extends ModelForm<SAMLPropertyMapping, string> {
|
export class PropertyMappingSAMLForm extends BasePropertyMappingForm<SAMLPropertyMapping> {
|
||||||
loadInstance(pk: string): Promise<SAMLPropertyMapping> {
|
loadInstance(pk: string): Promise<SAMLPropertyMapping> {
|
||||||
return new PropertymappingsApi(DEFAULT_CONFIG).propertymappingsSamlRetrieve({
|
return new PropertymappingsApi(DEFAULT_CONFIG).propertymappingsSamlRetrieve({
|
||||||
pmUuid: pk,
|
pmUuid: pk,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
|
||||||
if (this.instance) {
|
|
||||||
return msg("Successfully updated mapping.");
|
|
||||||
} else {
|
|
||||||
return msg("Successfully created mapping.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async send(data: SAMLPropertyMapping): Promise<SAMLPropertyMapping> {
|
async send(data: SAMLPropertyMapping): Promise<SAMLPropertyMapping> {
|
||||||
if (this.instance) {
|
if (this.instance) {
|
||||||
return new PropertymappingsApi(DEFAULT_CONFIG).propertymappingsSamlUpdate({
|
return new PropertymappingsApi(DEFAULT_CONFIG).propertymappingsSamlUpdate({
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
|
import { BasePropertyMappingForm } from "@goauthentik/admin/property-mappings/BasePropertyMappingForm";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
||||||
import { docLink } from "@goauthentik/common/global";
|
import { docLink } from "@goauthentik/common/global";
|
||||||
import "@goauthentik/elements/CodeMirror";
|
import "@goauthentik/elements/CodeMirror";
|
||||||
import { CodeMirrorMode } from "@goauthentik/elements/CodeMirror";
|
import { CodeMirrorMode } from "@goauthentik/elements/CodeMirror";
|
||||||
import "@goauthentik/elements/forms/HorizontalFormElement";
|
import "@goauthentik/elements/forms/HorizontalFormElement";
|
||||||
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
|
||||||
|
|
||||||
import { msg } from "@lit/localize";
|
import { msg } from "@lit/localize";
|
||||||
import { TemplateResult, html } from "lit";
|
import { TemplateResult, html } from "lit";
|
||||||
|
@ -13,21 +13,13 @@ import { ifDefined } from "lit/directives/if-defined.js";
|
||||||
import { PropertymappingsApi, SCIMMapping } from "@goauthentik/api";
|
import { PropertymappingsApi, SCIMMapping } from "@goauthentik/api";
|
||||||
|
|
||||||
@customElement("ak-property-mapping-scim-form")
|
@customElement("ak-property-mapping-scim-form")
|
||||||
export class PropertyMappingSCIMForm extends ModelForm<SCIMMapping, string> {
|
export class PropertyMappingSCIMForm extends BasePropertyMappingForm<SCIMMapping> {
|
||||||
loadInstance(pk: string): Promise<SCIMMapping> {
|
loadInstance(pk: string): Promise<SCIMMapping> {
|
||||||
return new PropertymappingsApi(DEFAULT_CONFIG).propertymappingsScimRetrieve({
|
return new PropertymappingsApi(DEFAULT_CONFIG).propertymappingsScimRetrieve({
|
||||||
pmUuid: pk,
|
pmUuid: pk,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
|
||||||
if (this.instance) {
|
|
||||||
return msg("Successfully updated mapping.");
|
|
||||||
} else {
|
|
||||||
return msg("Successfully created mapping.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async send(data: SCIMMapping): Promise<SCIMMapping> {
|
async send(data: SCIMMapping): Promise<SCIMMapping> {
|
||||||
if (this.instance) {
|
if (this.instance) {
|
||||||
return new PropertymappingsApi(DEFAULT_CONFIG).propertymappingsScimUpdate({
|
return new PropertymappingsApi(DEFAULT_CONFIG).propertymappingsScimUpdate({
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
|
import { BasePropertyMappingForm } from "@goauthentik/admin/property-mappings/BasePropertyMappingForm";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
||||||
import { docLink } from "@goauthentik/common/global";
|
import { docLink } from "@goauthentik/common/global";
|
||||||
import "@goauthentik/elements/CodeMirror";
|
import "@goauthentik/elements/CodeMirror";
|
||||||
import { CodeMirrorMode } from "@goauthentik/elements/CodeMirror";
|
import { CodeMirrorMode } from "@goauthentik/elements/CodeMirror";
|
||||||
import "@goauthentik/elements/forms/HorizontalFormElement";
|
import "@goauthentik/elements/forms/HorizontalFormElement";
|
||||||
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
|
||||||
|
|
||||||
import { msg } from "@lit/localize";
|
import { msg } from "@lit/localize";
|
||||||
import { TemplateResult, html } from "lit";
|
import { TemplateResult, html } from "lit";
|
||||||
|
@ -13,21 +13,13 @@ import { ifDefined } from "lit/directives/if-defined.js";
|
||||||
import { PropertymappingsApi, ScopeMapping } from "@goauthentik/api";
|
import { PropertymappingsApi, ScopeMapping } from "@goauthentik/api";
|
||||||
|
|
||||||
@customElement("ak-property-mapping-scope-form")
|
@customElement("ak-property-mapping-scope-form")
|
||||||
export class PropertyMappingScopeForm extends ModelForm<ScopeMapping, string> {
|
export class PropertyMappingScopeForm extends BasePropertyMappingForm<ScopeMapping> {
|
||||||
loadInstance(pk: string): Promise<ScopeMapping> {
|
loadInstance(pk: string): Promise<ScopeMapping> {
|
||||||
return new PropertymappingsApi(DEFAULT_CONFIG).propertymappingsScopeRetrieve({
|
return new PropertymappingsApi(DEFAULT_CONFIG).propertymappingsScopeRetrieve({
|
||||||
pmUuid: pk,
|
pmUuid: pk,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
|
||||||
if (this.instance) {
|
|
||||||
return msg("Successfully updated mapping.");
|
|
||||||
} else {
|
|
||||||
return msg("Successfully created mapping.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async send(data: ScopeMapping): Promise<ScopeMapping> {
|
async send(data: ScopeMapping): Promise<ScopeMapping> {
|
||||||
if (this.instance) {
|
if (this.instance) {
|
||||||
return new PropertymappingsApi(DEFAULT_CONFIG).propertymappingsScopeUpdate({
|
return new PropertymappingsApi(DEFAULT_CONFIG).propertymappingsScopeUpdate({
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
||||||
|
|
||||||
|
import { msg } from "@lit/localize";
|
||||||
|
|
||||||
|
export abstract class BaseProviderForm<T> extends ModelForm<T, number> {
|
||||||
|
getSuccessMessage(): string {
|
||||||
|
return this.instance
|
||||||
|
? msg("Successfully updated provider.")
|
||||||
|
: msg("Successfully created provider.");
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,11 +1,11 @@
|
||||||
import "@goauthentik/admin/common/ak-crypto-certificate-search";
|
import "@goauthentik/admin/common/ak-crypto-certificate-search";
|
||||||
import "@goauthentik/admin/common/ak-flow-search/ak-tenanted-flow-search";
|
import "@goauthentik/admin/common/ak-flow-search/ak-tenanted-flow-search";
|
||||||
|
import { BaseProviderForm } from "@goauthentik/admin/providers/BaseProviderForm";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
||||||
import { first } from "@goauthentik/common/utils";
|
import { first } from "@goauthentik/common/utils";
|
||||||
import { rootInterface } from "@goauthentik/elements/Base";
|
import { rootInterface } from "@goauthentik/elements/Base";
|
||||||
import "@goauthentik/elements/forms/FormGroup";
|
import "@goauthentik/elements/forms/FormGroup";
|
||||||
import "@goauthentik/elements/forms/HorizontalFormElement";
|
import "@goauthentik/elements/forms/HorizontalFormElement";
|
||||||
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
|
||||||
import "@goauthentik/elements/forms/Radio";
|
import "@goauthentik/elements/forms/Radio";
|
||||||
import "@goauthentik/elements/forms/SearchSelect";
|
import "@goauthentik/elements/forms/SearchSelect";
|
||||||
|
|
||||||
|
@ -25,21 +25,13 @@ import {
|
||||||
} from "@goauthentik/api";
|
} from "@goauthentik/api";
|
||||||
|
|
||||||
@customElement("ak-provider-ldap-form")
|
@customElement("ak-provider-ldap-form")
|
||||||
export class LDAPProviderFormPage extends ModelForm<LDAPProvider, number> {
|
export class LDAPProviderFormPage extends BaseProviderForm<LDAPProvider> {
|
||||||
async loadInstance(pk: number): Promise<LDAPProvider> {
|
async loadInstance(pk: number): Promise<LDAPProvider> {
|
||||||
return new ProvidersApi(DEFAULT_CONFIG).providersLdapRetrieve({
|
return new ProvidersApi(DEFAULT_CONFIG).providersLdapRetrieve({
|
||||||
id: pk,
|
id: pk,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
|
||||||
if (this.instance) {
|
|
||||||
return msg("Successfully updated provider.");
|
|
||||||
} else {
|
|
||||||
return msg("Successfully created provider.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async send(data: LDAPProvider): Promise<LDAPProvider> {
|
async send(data: LDAPProvider): Promise<LDAPProvider> {
|
||||||
if (this.instance) {
|
if (this.instance) {
|
||||||
return new ProvidersApi(DEFAULT_CONFIG).providersLdapUpdate({
|
return new ProvidersApi(DEFAULT_CONFIG).providersLdapUpdate({
|
||||||
|
@ -206,7 +198,7 @@ export class LDAPProviderFormPage extends ModelForm<LDAPProvider, number> {
|
||||||
</ak-form-element-horizontal>
|
</ak-form-element-horizontal>
|
||||||
<ak-form-element-horizontal label=${msg("Certificate")} name="certificate">
|
<ak-form-element-horizontal label=${msg("Certificate")} name="certificate">
|
||||||
<ak-crypto-certificate-search
|
<ak-crypto-certificate-search
|
||||||
certificate=${this.instance?.certificate}
|
.certificate=${this.instance?.certificate}
|
||||||
></ak-crypto-certificate-search>
|
></ak-crypto-certificate-search>
|
||||||
<p class="pf-c-form__helper-text">
|
<p class="pf-c-form__helper-text">
|
||||||
${msg(
|
${msg(
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import "@goauthentik/admin/common/ak-crypto-certificate-search";
|
import "@goauthentik/admin/common/ak-crypto-certificate-search";
|
||||||
import "@goauthentik/admin/common/ak-flow-search/ak-flow-search";
|
import "@goauthentik/admin/common/ak-flow-search/ak-flow-search";
|
||||||
|
import { BaseProviderForm } from "@goauthentik/admin/providers/BaseProviderForm";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
||||||
import { ascii_letters, digits, first, randomString } from "@goauthentik/common/utils";
|
import { ascii_letters, digits, first, randomString } from "@goauthentik/common/utils";
|
||||||
import "@goauthentik/components/ak-radio-input";
|
import "@goauthentik/components/ak-radio-input";
|
||||||
|
@ -7,7 +8,6 @@ import "@goauthentik/components/ak-text-input";
|
||||||
import "@goauthentik/components/ak-textarea-input";
|
import "@goauthentik/components/ak-textarea-input";
|
||||||
import "@goauthentik/elements/forms/FormGroup";
|
import "@goauthentik/elements/forms/FormGroup";
|
||||||
import "@goauthentik/elements/forms/HorizontalFormElement";
|
import "@goauthentik/elements/forms/HorizontalFormElement";
|
||||||
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
|
||||||
import "@goauthentik/elements/forms/Radio";
|
import "@goauthentik/elements/forms/Radio";
|
||||||
import "@goauthentik/elements/forms/SearchSelect";
|
import "@goauthentik/elements/forms/SearchSelect";
|
||||||
import "@goauthentik/elements/utils/TimeDeltaHelp";
|
import "@goauthentik/elements/utils/TimeDeltaHelp";
|
||||||
|
@ -116,7 +116,7 @@ export const redirectUriHelp = html`${redirectUriHelpMessages.map(
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@customElement("ak-provider-oauth2-form")
|
@customElement("ak-provider-oauth2-form")
|
||||||
export class OAuth2ProviderFormPage extends ModelForm<OAuth2Provider, number> {
|
export class OAuth2ProviderFormPage extends BaseProviderForm<OAuth2Provider> {
|
||||||
propertyMappings?: PaginatedScopeMappingList;
|
propertyMappings?: PaginatedScopeMappingList;
|
||||||
oauthSources?: PaginatedOAuthSourceList;
|
oauthSources?: PaginatedOAuthSourceList;
|
||||||
|
|
||||||
|
@ -143,14 +143,6 @@ export class OAuth2ProviderFormPage extends ModelForm<OAuth2Provider, number> {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
|
||||||
if (this.instance) {
|
|
||||||
return msg("Successfully updated provider.");
|
|
||||||
} else {
|
|
||||||
return msg("Successfully created provider.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async send(data: OAuth2Provider): Promise<OAuth2Provider> {
|
async send(data: OAuth2Provider): Promise<OAuth2Provider> {
|
||||||
if (this.instance) {
|
if (this.instance) {
|
||||||
return new ProvidersApi(DEFAULT_CONFIG).providersOauth2Update({
|
return new ProvidersApi(DEFAULT_CONFIG).providersOauth2Update({
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
import "@goauthentik/admin/common/ak-crypto-certificate-search";
|
import "@goauthentik/admin/common/ak-crypto-certificate-search";
|
||||||
import "@goauthentik/admin/common/ak-flow-search/ak-flow-search";
|
import "@goauthentik/admin/common/ak-flow-search/ak-flow-search";
|
||||||
|
import { BaseProviderForm } from "@goauthentik/admin/providers/BaseProviderForm";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
||||||
import { first } from "@goauthentik/common/utils";
|
import { first } from "@goauthentik/common/utils";
|
||||||
import "@goauthentik/components/ak-toggle-group";
|
import "@goauthentik/components/ak-toggle-group";
|
||||||
import "@goauthentik/elements/forms/FormGroup";
|
import "@goauthentik/elements/forms/FormGroup";
|
||||||
import "@goauthentik/elements/forms/HorizontalFormElement";
|
import "@goauthentik/elements/forms/HorizontalFormElement";
|
||||||
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
|
||||||
import "@goauthentik/elements/forms/SearchSelect";
|
import "@goauthentik/elements/forms/SearchSelect";
|
||||||
import "@goauthentik/elements/utils/TimeDeltaHelp";
|
import "@goauthentik/elements/utils/TimeDeltaHelp";
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ import {
|
||||||
} from "@goauthentik/api";
|
} from "@goauthentik/api";
|
||||||
|
|
||||||
@customElement("ak-provider-proxy-form")
|
@customElement("ak-provider-proxy-form")
|
||||||
export class ProxyProviderFormPage extends ModelForm<ProxyProvider, number> {
|
export class ProxyProviderFormPage extends BaseProviderForm<ProxyProvider> {
|
||||||
static get styles(): CSSResult[] {
|
static get styles(): CSSResult[] {
|
||||||
return [...super.styles, PFContent, PFList, PFSpacing];
|
return [...super.styles, PFContent, PFList, PFSpacing];
|
||||||
}
|
}
|
||||||
|
@ -65,14 +65,6 @@ export class ProxyProviderFormPage extends ModelForm<ProxyProvider, number> {
|
||||||
@state()
|
@state()
|
||||||
mode: ProxyMode = ProxyMode.Proxy;
|
mode: ProxyMode = ProxyMode.Proxy;
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
|
||||||
if (this.instance) {
|
|
||||||
return msg("Successfully updated provider.");
|
|
||||||
} else {
|
|
||||||
return msg("Successfully created provider.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async send(data: ProxyProvider): Promise<ProxyProvider> {
|
async send(data: ProxyProvider): Promise<ProxyProvider> {
|
||||||
data.mode = this.mode;
|
data.mode = this.mode;
|
||||||
if (this.mode !== ProxyMode.ForwardDomain) {
|
if (this.mode !== ProxyMode.ForwardDomain) {
|
||||||
|
@ -324,7 +316,7 @@ export class ProxyProviderFormPage extends ModelForm<ProxyProvider, number> {
|
||||||
<div slot="body" class="pf-c-form">
|
<div slot="body" class="pf-c-form">
|
||||||
<ak-form-element-horizontal label=${msg("Certificate")} name="certificate">
|
<ak-form-element-horizontal label=${msg("Certificate")} name="certificate">
|
||||||
<ak-crypto-certificate-search
|
<ak-crypto-certificate-search
|
||||||
certificate=${this.instance?.certificate}
|
.certificate=${this.instance?.certificate}
|
||||||
></ak-crypto-certificate-search>
|
></ak-crypto-certificate-search>
|
||||||
</ak-form-element-horizontal>
|
</ak-form-element-horizontal>
|
||||||
<ak-form-element-horizontal
|
<ak-form-element-horizontal
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
|
import { BaseProviderForm } from "@goauthentik/admin/providers/BaseProviderForm";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
||||||
import { ascii_letters, digits, first, randomString } from "@goauthentik/common/utils";
|
import { ascii_letters, digits, first, randomString } from "@goauthentik/common/utils";
|
||||||
import { rootInterface } from "@goauthentik/elements/Base";
|
import { rootInterface } from "@goauthentik/elements/Base";
|
||||||
import "@goauthentik/elements/forms/FormGroup";
|
import "@goauthentik/elements/forms/FormGroup";
|
||||||
import "@goauthentik/elements/forms/HorizontalFormElement";
|
import "@goauthentik/elements/forms/HorizontalFormElement";
|
||||||
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
|
||||||
import "@goauthentik/elements/forms/SearchSelect";
|
import "@goauthentik/elements/forms/SearchSelect";
|
||||||
|
|
||||||
import { msg } from "@lit/localize";
|
import { msg } from "@lit/localize";
|
||||||
|
@ -14,21 +14,13 @@ import { customElement } from "lit/decorators.js";
|
||||||
import { FlowsInstancesListDesignationEnum, ProvidersApi, RadiusProvider } from "@goauthentik/api";
|
import { FlowsInstancesListDesignationEnum, ProvidersApi, RadiusProvider } from "@goauthentik/api";
|
||||||
|
|
||||||
@customElement("ak-provider-radius-form")
|
@customElement("ak-provider-radius-form")
|
||||||
export class RadiusProviderFormPage extends ModelForm<RadiusProvider, number> {
|
export class RadiusProviderFormPage extends BaseProviderForm<RadiusProvider> {
|
||||||
loadInstance(pk: number): Promise<RadiusProvider> {
|
loadInstance(pk: number): Promise<RadiusProvider> {
|
||||||
return new ProvidersApi(DEFAULT_CONFIG).providersRadiusRetrieve({
|
return new ProvidersApi(DEFAULT_CONFIG).providersRadiusRetrieve({
|
||||||
id: pk,
|
id: pk,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
|
||||||
if (this.instance) {
|
|
||||||
return msg("Successfully updated provider.");
|
|
||||||
} else {
|
|
||||||
return msg("Successfully created provider.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async send(data: RadiusProvider): Promise<RadiusProvider> {
|
async send(data: RadiusProvider): Promise<RadiusProvider> {
|
||||||
if (this.instance) {
|
if (this.instance) {
|
||||||
return new ProvidersApi(DEFAULT_CONFIG).providersRadiusUpdate({
|
return new ProvidersApi(DEFAULT_CONFIG).providersRadiusUpdate({
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import "@goauthentik/admin/common/ak-crypto-certificate-search";
|
import "@goauthentik/admin/common/ak-crypto-certificate-search";
|
||||||
import "@goauthentik/admin/common/ak-flow-search/ak-flow-search";
|
import "@goauthentik/admin/common/ak-flow-search/ak-flow-search";
|
||||||
|
import { BaseProviderForm } from "@goauthentik/admin/providers/BaseProviderForm";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
||||||
import "@goauthentik/elements/forms/FormGroup";
|
import "@goauthentik/elements/forms/FormGroup";
|
||||||
import "@goauthentik/elements/forms/HorizontalFormElement";
|
import "@goauthentik/elements/forms/HorizontalFormElement";
|
||||||
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
|
||||||
import "@goauthentik/elements/forms/Radio";
|
import "@goauthentik/elements/forms/Radio";
|
||||||
import "@goauthentik/elements/forms/SearchSelect";
|
import "@goauthentik/elements/forms/SearchSelect";
|
||||||
import "@goauthentik/elements/utils/TimeDeltaHelp";
|
import "@goauthentik/elements/utils/TimeDeltaHelp";
|
||||||
|
@ -27,7 +27,7 @@ import {
|
||||||
} from "@goauthentik/api";
|
} from "@goauthentik/api";
|
||||||
|
|
||||||
@customElement("ak-provider-saml-form")
|
@customElement("ak-provider-saml-form")
|
||||||
export class SAMLProviderFormPage extends ModelForm<SAMLProvider, number> {
|
export class SAMLProviderFormPage extends BaseProviderForm<SAMLProvider> {
|
||||||
loadInstance(pk: number): Promise<SAMLProvider> {
|
loadInstance(pk: number): Promise<SAMLProvider> {
|
||||||
return new ProvidersApi(DEFAULT_CONFIG).providersSamlRetrieve({
|
return new ProvidersApi(DEFAULT_CONFIG).providersSamlRetrieve({
|
||||||
id: pk,
|
id: pk,
|
||||||
|
@ -44,14 +44,6 @@ export class SAMLProviderFormPage extends ModelForm<SAMLProvider, number> {
|
||||||
|
|
||||||
propertyMappings?: PaginatedSAMLPropertyMappingList;
|
propertyMappings?: PaginatedSAMLPropertyMappingList;
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
|
||||||
if (this.instance) {
|
|
||||||
return msg("Successfully updated provider.");
|
|
||||||
} else {
|
|
||||||
return msg("Successfully created provider.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async send(data: SAMLProvider): Promise<SAMLProvider> {
|
async send(data: SAMLProvider): Promise<SAMLProvider> {
|
||||||
if (this.instance) {
|
if (this.instance) {
|
||||||
return new ProvidersApi(DEFAULT_CONFIG).providersSamlUpdate({
|
return new ProvidersApi(DEFAULT_CONFIG).providersSamlUpdate({
|
||||||
|
@ -175,7 +167,7 @@ export class SAMLProviderFormPage extends ModelForm<SAMLProvider, number> {
|
||||||
name="signingKp"
|
name="signingKp"
|
||||||
>
|
>
|
||||||
<ak-crypto-certificate-search
|
<ak-crypto-certificate-search
|
||||||
certificate=${this.instance?.signingKp}
|
.certificate=${this.instance?.signingKp}
|
||||||
></ak-crypto-certificate-search>
|
></ak-crypto-certificate-search>
|
||||||
<p class="pf-c-form__helper-text">
|
<p class="pf-c-form__helper-text">
|
||||||
${msg(
|
${msg(
|
||||||
|
@ -188,7 +180,7 @@ export class SAMLProviderFormPage extends ModelForm<SAMLProvider, number> {
|
||||||
name="verificationKp"
|
name="verificationKp"
|
||||||
>
|
>
|
||||||
<ak-crypto-certificate-search
|
<ak-crypto-certificate-search
|
||||||
certificate=${this.instance?.verificationKp}
|
.certificate=${this.instance?.verificationKp}
|
||||||
nokey
|
nokey
|
||||||
></ak-crypto-certificate-search>
|
></ak-crypto-certificate-search>
|
||||||
<p class="pf-c-form__helper-text">
|
<p class="pf-c-form__helper-text">
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
|
import { BaseProviderForm } from "@goauthentik/admin/providers/BaseProviderForm";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
||||||
import { first } from "@goauthentik/common/utils";
|
import { first } from "@goauthentik/common/utils";
|
||||||
import "@goauthentik/elements/forms/FormGroup";
|
import "@goauthentik/elements/forms/FormGroup";
|
||||||
import "@goauthentik/elements/forms/HorizontalFormElement";
|
import "@goauthentik/elements/forms/HorizontalFormElement";
|
||||||
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
|
||||||
import "@goauthentik/elements/forms/Radio";
|
import "@goauthentik/elements/forms/Radio";
|
||||||
import "@goauthentik/elements/forms/SearchSelect";
|
import "@goauthentik/elements/forms/SearchSelect";
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ import {
|
||||||
} from "@goauthentik/api";
|
} from "@goauthentik/api";
|
||||||
|
|
||||||
@customElement("ak-provider-scim-form")
|
@customElement("ak-provider-scim-form")
|
||||||
export class SCIMProviderFormPage extends ModelForm<SCIMProvider, number> {
|
export class SCIMProviderFormPage extends BaseProviderForm<SCIMProvider> {
|
||||||
loadInstance(pk: number): Promise<SCIMProvider> {
|
loadInstance(pk: number): Promise<SCIMProvider> {
|
||||||
return new ProvidersApi(DEFAULT_CONFIG).providersScimRetrieve({
|
return new ProvidersApi(DEFAULT_CONFIG).providersScimRetrieve({
|
||||||
id: pk,
|
id: pk,
|
||||||
|
@ -39,14 +39,6 @@ export class SCIMProviderFormPage extends ModelForm<SCIMProvider, number> {
|
||||||
|
|
||||||
propertyMappings?: PaginatedSCIMMappingList;
|
propertyMappings?: PaginatedSCIMMappingList;
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
|
||||||
if (this.instance) {
|
|
||||||
return msg("Successfully updated provider.");
|
|
||||||
} else {
|
|
||||||
return msg("Successfully created provider.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async send(data: SCIMProvider): Promise<SCIMProvider> {
|
async send(data: SCIMProvider): Promise<SCIMProvider> {
|
||||||
if (this.instance) {
|
if (this.instance) {
|
||||||
return new ProvidersApi(DEFAULT_CONFIG).providersScimUpdate({
|
return new ProvidersApi(DEFAULT_CONFIG).providersScimUpdate({
|
||||||
|
|
|
@ -21,11 +21,9 @@ export class RoleForm extends ModelForm<Role, string> {
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
getSuccessMessage(): string {
|
||||||
if (this.instance) {
|
return this.instance
|
||||||
return msg("Successfully updated role.");
|
? msg("Successfully updated role.")
|
||||||
} else {
|
: msg("Successfully created role.");
|
||||||
return msg("Successfully created role.");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async send(data: Role): Promise<Role> {
|
async send(data: Role): Promise<Role> {
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
||||||
|
|
||||||
|
import { msg } from "@lit/localize";
|
||||||
|
|
||||||
|
export abstract class BaseSourceForm<T> extends ModelForm<T, string> {
|
||||||
|
getSuccessMessage(): string {
|
||||||
|
return this.instance
|
||||||
|
? msg("Successfully updated source.")
|
||||||
|
: msg("Successfully created source.");
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,10 +1,10 @@
|
||||||
import "@goauthentik/admin/common/ak-crypto-certificate-search";
|
import "@goauthentik/admin/common/ak-crypto-certificate-search";
|
||||||
import { placeholderHelperText } from "@goauthentik/admin/helperText";
|
import { placeholderHelperText } from "@goauthentik/admin/helperText";
|
||||||
|
import { BaseSourceForm } from "@goauthentik/admin/sources/BaseSourceForm";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
||||||
import { first } from "@goauthentik/common/utils";
|
import { first } from "@goauthentik/common/utils";
|
||||||
import "@goauthentik/elements/forms/FormGroup";
|
import "@goauthentik/elements/forms/FormGroup";
|
||||||
import "@goauthentik/elements/forms/HorizontalFormElement";
|
import "@goauthentik/elements/forms/HorizontalFormElement";
|
||||||
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
|
||||||
import "@goauthentik/elements/forms/SearchSelect";
|
import "@goauthentik/elements/forms/SearchSelect";
|
||||||
|
|
||||||
import { msg } from "@lit/localize";
|
import { msg } from "@lit/localize";
|
||||||
|
@ -24,7 +24,7 @@ import {
|
||||||
} from "@goauthentik/api";
|
} from "@goauthentik/api";
|
||||||
|
|
||||||
@customElement("ak-source-ldap-form")
|
@customElement("ak-source-ldap-form")
|
||||||
export class LDAPSourceForm extends ModelForm<LDAPSource, string> {
|
export class LDAPSourceForm extends BaseSourceForm<LDAPSource> {
|
||||||
loadInstance(pk: string): Promise<LDAPSource> {
|
loadInstance(pk: string): Promise<LDAPSource> {
|
||||||
return new SourcesApi(DEFAULT_CONFIG).sourcesLdapRetrieve({
|
return new SourcesApi(DEFAULT_CONFIG).sourcesLdapRetrieve({
|
||||||
slug: pk,
|
slug: pk,
|
||||||
|
@ -41,14 +41,6 @@ export class LDAPSourceForm extends ModelForm<LDAPSource, string> {
|
||||||
|
|
||||||
propertyMappings?: PaginatedLDAPPropertyMappingList;
|
propertyMappings?: PaginatedLDAPPropertyMappingList;
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
|
||||||
if (this.instance) {
|
|
||||||
return msg("Successfully updated source.");
|
|
||||||
} else {
|
|
||||||
return msg("Successfully created source.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async send(data: LDAPSource): Promise<LDAPSource> {
|
async send(data: LDAPSource): Promise<LDAPSource> {
|
||||||
if (this.instance) {
|
if (this.instance) {
|
||||||
return new SourcesApi(DEFAULT_CONFIG).sourcesLdapPartialUpdate({
|
return new SourcesApi(DEFAULT_CONFIG).sourcesLdapPartialUpdate({
|
||||||
|
@ -206,7 +198,7 @@ export class LDAPSourceForm extends ModelForm<LDAPSource, string> {
|
||||||
name="peerCertificate"
|
name="peerCertificate"
|
||||||
>
|
>
|
||||||
<ak-crypto-certificate-search
|
<ak-crypto-certificate-search
|
||||||
certificate=${this.instance?.peerCertificate}
|
.certificate=${this.instance?.peerCertificate}
|
||||||
nokey
|
nokey
|
||||||
></ak-crypto-certificate-search>
|
></ak-crypto-certificate-search>
|
||||||
<p class="pf-c-form__helper-text">
|
<p class="pf-c-form__helper-text">
|
||||||
|
@ -220,7 +212,7 @@ export class LDAPSourceForm extends ModelForm<LDAPSource, string> {
|
||||||
name="clientCertificate"
|
name="clientCertificate"
|
||||||
>
|
>
|
||||||
<ak-crypto-certificate-search
|
<ak-crypto-certificate-search
|
||||||
certificate=${this.instance?.clientCertificate}
|
.certificate=${this.instance?.clientCertificate}
|
||||||
></ak-crypto-certificate-search>
|
></ak-crypto-certificate-search>
|
||||||
<p class="pf-c-form__helper-text">
|
<p class="pf-c-form__helper-text">
|
||||||
${msg(
|
${msg(
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import "@goauthentik/admin/common/ak-flow-search/ak-source-flow-search";
|
import "@goauthentik/admin/common/ak-flow-search/ak-source-flow-search";
|
||||||
import { iconHelperText, placeholderHelperText } from "@goauthentik/admin/helperText";
|
import { iconHelperText, placeholderHelperText } from "@goauthentik/admin/helperText";
|
||||||
|
import { BaseSourceForm } from "@goauthentik/admin/sources/BaseSourceForm";
|
||||||
import { UserMatchingModeToLabel } from "@goauthentik/admin/sources/oauth/utils";
|
import { UserMatchingModeToLabel } from "@goauthentik/admin/sources/oauth/utils";
|
||||||
import { DEFAULT_CONFIG, config } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG, config } from "@goauthentik/common/api/config";
|
||||||
import { first } from "@goauthentik/common/utils";
|
import { first } from "@goauthentik/common/utils";
|
||||||
|
@ -8,7 +9,6 @@ import "@goauthentik/elements/CodeMirror";
|
||||||
import { CodeMirrorMode } from "@goauthentik/elements/CodeMirror";
|
import { CodeMirrorMode } from "@goauthentik/elements/CodeMirror";
|
||||||
import "@goauthentik/elements/forms/FormGroup";
|
import "@goauthentik/elements/forms/FormGroup";
|
||||||
import "@goauthentik/elements/forms/HorizontalFormElement";
|
import "@goauthentik/elements/forms/HorizontalFormElement";
|
||||||
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
|
||||||
import "@goauthentik/elements/forms/SearchSelect";
|
import "@goauthentik/elements/forms/SearchSelect";
|
||||||
|
|
||||||
import { msg } from "@lit/localize";
|
import { msg } from "@lit/localize";
|
||||||
|
@ -28,7 +28,7 @@ import {
|
||||||
} from "@goauthentik/api";
|
} from "@goauthentik/api";
|
||||||
|
|
||||||
@customElement("ak-source-oauth-form")
|
@customElement("ak-source-oauth-form")
|
||||||
export class OAuthSourceForm extends ModelForm<OAuthSource, string> {
|
export class OAuthSourceForm extends BaseSourceForm<OAuthSource> {
|
||||||
async loadInstance(pk: string): Promise<OAuthSource> {
|
async loadInstance(pk: string): Promise<OAuthSource> {
|
||||||
const source = await new SourcesApi(DEFAULT_CONFIG).sourcesOauthRetrieve({
|
const source = await new SourcesApi(DEFAULT_CONFIG).sourcesOauthRetrieve({
|
||||||
slug: pk,
|
slug: pk,
|
||||||
|
@ -61,14 +61,6 @@ export class OAuthSourceForm extends ModelForm<OAuthSource, string> {
|
||||||
@state()
|
@state()
|
||||||
clearIcon = false;
|
clearIcon = false;
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
|
||||||
if (this.instance) {
|
|
||||||
return msg("Successfully updated source.");
|
|
||||||
} else {
|
|
||||||
return msg("Successfully created source.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async send(data: OAuthSource): Promise<OAuthSource> {
|
async send(data: OAuthSource): Promise<OAuthSource> {
|
||||||
data.providerType = (this.providerType?.slug || "") as ProviderTypeEnum;
|
data.providerType = (this.providerType?.slug || "") as ProviderTypeEnum;
|
||||||
let source: OAuthSource;
|
let source: OAuthSource;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import "@goauthentik/admin/common/ak-flow-search/ak-source-flow-search";
|
import "@goauthentik/admin/common/ak-flow-search/ak-source-flow-search";
|
||||||
import { iconHelperText, placeholderHelperText } from "@goauthentik/admin/helperText";
|
import { iconHelperText, placeholderHelperText } from "@goauthentik/admin/helperText";
|
||||||
|
import { BaseSourceForm } from "@goauthentik/admin/sources/BaseSourceForm";
|
||||||
import { UserMatchingModeToLabel } from "@goauthentik/admin/sources/oauth/utils";
|
import { UserMatchingModeToLabel } from "@goauthentik/admin/sources/oauth/utils";
|
||||||
import { DEFAULT_CONFIG, config } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG, config } from "@goauthentik/common/api/config";
|
||||||
import { PlexAPIClient, PlexResource, popupCenterScreen } from "@goauthentik/common/helpers/plex";
|
import { PlexAPIClient, PlexResource, popupCenterScreen } from "@goauthentik/common/helpers/plex";
|
||||||
|
@ -7,7 +8,6 @@ import { ascii_letters, digits, first, randomString } from "@goauthentik/common/
|
||||||
import { rootInterface } from "@goauthentik/elements/Base";
|
import { rootInterface } from "@goauthentik/elements/Base";
|
||||||
import "@goauthentik/elements/forms/FormGroup";
|
import "@goauthentik/elements/forms/FormGroup";
|
||||||
import "@goauthentik/elements/forms/HorizontalFormElement";
|
import "@goauthentik/elements/forms/HorizontalFormElement";
|
||||||
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
|
||||||
import "@goauthentik/elements/forms/SearchSelect";
|
import "@goauthentik/elements/forms/SearchSelect";
|
||||||
|
|
||||||
import { msg } from "@lit/localize";
|
import { msg } from "@lit/localize";
|
||||||
|
@ -24,7 +24,7 @@ import {
|
||||||
} from "@goauthentik/api";
|
} from "@goauthentik/api";
|
||||||
|
|
||||||
@customElement("ak-source-plex-form")
|
@customElement("ak-source-plex-form")
|
||||||
export class PlexSourceForm extends ModelForm<PlexSource, string> {
|
export class PlexSourceForm extends BaseSourceForm<PlexSource> {
|
||||||
async loadInstance(pk: string): Promise<PlexSource> {
|
async loadInstance(pk: string): Promise<PlexSource> {
|
||||||
const source = await new SourcesApi(DEFAULT_CONFIG).sourcesPlexRetrieve({
|
const source = await new SourcesApi(DEFAULT_CONFIG).sourcesPlexRetrieve({
|
||||||
slug: pk,
|
slug: pk,
|
||||||
|
@ -50,14 +50,6 @@ export class PlexSourceForm extends ModelForm<PlexSource, string> {
|
||||||
} as PlexSource;
|
} as PlexSource;
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
|
||||||
if (this.instance) {
|
|
||||||
return msg("Successfully updated source.");
|
|
||||||
} else {
|
|
||||||
return msg("Successfully created source.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async send(data: PlexSource): Promise<PlexSource> {
|
async send(data: PlexSource): Promise<PlexSource> {
|
||||||
data.plexToken = this.plexToken || "";
|
data.plexToken = this.plexToken || "";
|
||||||
let source: PlexSource;
|
let source: PlexSource;
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
import "@goauthentik/admin/common/ak-crypto-certificate-search";
|
import "@goauthentik/admin/common/ak-crypto-certificate-search";
|
||||||
import "@goauthentik/admin/common/ak-flow-search/ak-source-flow-search";
|
import "@goauthentik/admin/common/ak-flow-search/ak-source-flow-search";
|
||||||
import { iconHelperText, placeholderHelperText } from "@goauthentik/admin/helperText";
|
import { iconHelperText, placeholderHelperText } from "@goauthentik/admin/helperText";
|
||||||
|
import { BaseSourceForm } from "@goauthentik/admin/sources/BaseSourceForm";
|
||||||
import { UserMatchingModeToLabel } from "@goauthentik/admin/sources/oauth/utils";
|
import { UserMatchingModeToLabel } from "@goauthentik/admin/sources/oauth/utils";
|
||||||
import { DEFAULT_CONFIG, config } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG, config } from "@goauthentik/common/api/config";
|
||||||
import { first } from "@goauthentik/common/utils";
|
import { first } from "@goauthentik/common/utils";
|
||||||
import { rootInterface } from "@goauthentik/elements/Base";
|
import { rootInterface } from "@goauthentik/elements/Base";
|
||||||
import "@goauthentik/elements/forms/FormGroup";
|
import "@goauthentik/elements/forms/FormGroup";
|
||||||
import "@goauthentik/elements/forms/HorizontalFormElement";
|
import "@goauthentik/elements/forms/HorizontalFormElement";
|
||||||
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
|
||||||
import "@goauthentik/elements/forms/Radio";
|
import "@goauthentik/elements/forms/Radio";
|
||||||
import "@goauthentik/elements/utils/TimeDeltaHelp";
|
import "@goauthentik/elements/utils/TimeDeltaHelp";
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ import {
|
||||||
} from "@goauthentik/api";
|
} from "@goauthentik/api";
|
||||||
|
|
||||||
@customElement("ak-source-saml-form")
|
@customElement("ak-source-saml-form")
|
||||||
export class SAMLSourceForm extends ModelForm<SAMLSource, string> {
|
export class SAMLSourceForm extends BaseSourceForm<SAMLSource> {
|
||||||
@state()
|
@state()
|
||||||
clearIcon = false;
|
clearIcon = false;
|
||||||
|
|
||||||
|
@ -41,14 +41,6 @@ export class SAMLSourceForm extends ModelForm<SAMLSource, string> {
|
||||||
return source;
|
return source;
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
|
||||||
if (this.instance) {
|
|
||||||
return msg("Successfully updated source.");
|
|
||||||
} else {
|
|
||||||
return msg("Successfully created source.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async send(data: SAMLSource): Promise<SAMLSource> {
|
async send(data: SAMLSource): Promise<SAMLSource> {
|
||||||
let source: SAMLSource;
|
let source: SAMLSource;
|
||||||
if (this.instance) {
|
if (this.instance) {
|
||||||
|
@ -272,7 +264,7 @@ export class SAMLSourceForm extends ModelForm<SAMLSource, string> {
|
||||||
</ak-form-element-horizontal>
|
</ak-form-element-horizontal>
|
||||||
<ak-form-element-horizontal label=${msg("Signing keypair")} name="signingKp">
|
<ak-form-element-horizontal label=${msg("Signing keypair")} name="signingKp">
|
||||||
<ak-crypto-certificate-search
|
<ak-crypto-certificate-search
|
||||||
certificate=${this.instance?.signingKp}
|
.certificate=${this.instance?.signingKp}
|
||||||
></ak-crypto-certificate-search>
|
></ak-crypto-certificate-search>
|
||||||
<p class="pf-c-form__helper-text">
|
<p class="pf-c-form__helper-text">
|
||||||
${msg(
|
${msg(
|
||||||
|
@ -285,7 +277,7 @@ export class SAMLSourceForm extends ModelForm<SAMLSource, string> {
|
||||||
name="verificationKp"
|
name="verificationKp"
|
||||||
>
|
>
|
||||||
<ak-crypto-certificate-search
|
<ak-crypto-certificate-search
|
||||||
certificate=${this.instance?.verificationKp}
|
.certificate=${this.instance?.verificationKp}
|
||||||
nokey
|
nokey
|
||||||
></ak-crypto-certificate-search>
|
></ak-crypto-certificate-search>
|
||||||
<p class="pf-c-form__helper-text">
|
<p class="pf-c-form__helper-text">
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
||||||
|
|
||||||
|
import { msg } from "@lit/localize";
|
||||||
|
|
||||||
|
export abstract class BaseStageForm<T> extends ModelForm<T, string> {
|
||||||
|
getSuccessMessage(): string {
|
||||||
|
return this.instance
|
||||||
|
? msg("Successfully updated stage.")
|
||||||
|
: msg("Successfully created stage.");
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,9 +1,9 @@
|
||||||
import { RenderFlowOption } from "@goauthentik/admin/flows/utils";
|
import { RenderFlowOption } from "@goauthentik/admin/flows/utils";
|
||||||
|
import { BaseStageForm } from "@goauthentik/admin/stages/BaseStageForm";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
||||||
import { first } from "@goauthentik/common/utils";
|
import { first } from "@goauthentik/common/utils";
|
||||||
import "@goauthentik/elements/forms/FormGroup";
|
import "@goauthentik/elements/forms/FormGroup";
|
||||||
import "@goauthentik/elements/forms/HorizontalFormElement";
|
import "@goauthentik/elements/forms/HorizontalFormElement";
|
||||||
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
|
||||||
import "@goauthentik/elements/forms/SearchSelect";
|
import "@goauthentik/elements/forms/SearchSelect";
|
||||||
|
|
||||||
import { msg } from "@lit/localize";
|
import { msg } from "@lit/localize";
|
||||||
|
@ -21,21 +21,13 @@ import {
|
||||||
} from "@goauthentik/api";
|
} from "@goauthentik/api";
|
||||||
|
|
||||||
@customElement("ak-stage-authenticator-duo-form")
|
@customElement("ak-stage-authenticator-duo-form")
|
||||||
export class AuthenticatorDuoStageForm extends ModelForm<AuthenticatorDuoStage, string> {
|
export class AuthenticatorDuoStageForm extends BaseStageForm<AuthenticatorDuoStage> {
|
||||||
loadInstance(pk: string): Promise<AuthenticatorDuoStage> {
|
loadInstance(pk: string): Promise<AuthenticatorDuoStage> {
|
||||||
return new StagesApi(DEFAULT_CONFIG).stagesAuthenticatorDuoRetrieve({
|
return new StagesApi(DEFAULT_CONFIG).stagesAuthenticatorDuoRetrieve({
|
||||||
stageUuid: pk,
|
stageUuid: pk,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
|
||||||
if (this.instance) {
|
|
||||||
return msg("Successfully updated stage.");
|
|
||||||
} else {
|
|
||||||
return msg("Successfully created stage.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async send(data: AuthenticatorDuoStage): Promise<AuthenticatorDuoStage> {
|
async send(data: AuthenticatorDuoStage): Promise<AuthenticatorDuoStage> {
|
||||||
if (this.instance) {
|
if (this.instance) {
|
||||||
return new StagesApi(DEFAULT_CONFIG).stagesAuthenticatorDuoPartialUpdate({
|
return new StagesApi(DEFAULT_CONFIG).stagesAuthenticatorDuoPartialUpdate({
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import { RenderFlowOption } from "@goauthentik/admin/flows/utils";
|
import { RenderFlowOption } from "@goauthentik/admin/flows/utils";
|
||||||
|
import { BaseStageForm } from "@goauthentik/admin/stages/BaseStageForm";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
||||||
import { first } from "@goauthentik/common/utils";
|
import { first } from "@goauthentik/common/utils";
|
||||||
import "@goauthentik/elements/forms/FormGroup";
|
import "@goauthentik/elements/forms/FormGroup";
|
||||||
import "@goauthentik/elements/forms/HorizontalFormElement";
|
import "@goauthentik/elements/forms/HorizontalFormElement";
|
||||||
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
|
||||||
import "@goauthentik/elements/forms/Radio";
|
import "@goauthentik/elements/forms/Radio";
|
||||||
import "@goauthentik/elements/forms/SearchSelect";
|
import "@goauthentik/elements/forms/SearchSelect";
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ import {
|
||||||
} from "@goauthentik/api";
|
} from "@goauthentik/api";
|
||||||
|
|
||||||
@customElement("ak-stage-authenticator-sms-form")
|
@customElement("ak-stage-authenticator-sms-form")
|
||||||
export class AuthenticatorSMSStageForm extends ModelForm<AuthenticatorSMSStage, string> {
|
export class AuthenticatorSMSStageForm extends BaseStageForm<AuthenticatorSMSStage> {
|
||||||
loadInstance(pk: string): Promise<AuthenticatorSMSStage> {
|
loadInstance(pk: string): Promise<AuthenticatorSMSStage> {
|
||||||
return new StagesApi(DEFAULT_CONFIG)
|
return new StagesApi(DEFAULT_CONFIG)
|
||||||
.stagesAuthenticatorSmsRetrieve({
|
.stagesAuthenticatorSmsRetrieve({
|
||||||
|
@ -45,14 +45,6 @@ export class AuthenticatorSMSStageForm extends ModelForm<AuthenticatorSMSStage,
|
||||||
@property({ attribute: false })
|
@property({ attribute: false })
|
||||||
authType?: AuthTypeEnum;
|
authType?: AuthTypeEnum;
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
|
||||||
if (this.instance) {
|
|
||||||
return msg("Successfully updated stage.");
|
|
||||||
} else {
|
|
||||||
return msg("Successfully created stage.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async send(data: AuthenticatorSMSStage): Promise<AuthenticatorSMSStage> {
|
async send(data: AuthenticatorSMSStage): Promise<AuthenticatorSMSStage> {
|
||||||
if (this.instance) {
|
if (this.instance) {
|
||||||
return new StagesApi(DEFAULT_CONFIG).stagesAuthenticatorSmsUpdate({
|
return new StagesApi(DEFAULT_CONFIG).stagesAuthenticatorSmsUpdate({
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import { RenderFlowOption } from "@goauthentik/admin/flows/utils";
|
import { RenderFlowOption } from "@goauthentik/admin/flows/utils";
|
||||||
|
import { BaseStageForm } from "@goauthentik/admin/stages/BaseStageForm";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
||||||
import { first } from "@goauthentik/common/utils";
|
import { first } from "@goauthentik/common/utils";
|
||||||
import "@goauthentik/elements/forms/HorizontalFormElement";
|
import "@goauthentik/elements/forms/HorizontalFormElement";
|
||||||
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
|
||||||
import "@goauthentik/elements/forms/SearchSelect";
|
import "@goauthentik/elements/forms/SearchSelect";
|
||||||
|
|
||||||
import { msg } from "@lit/localize";
|
import { msg } from "@lit/localize";
|
||||||
|
@ -19,21 +19,13 @@ import {
|
||||||
} from "@goauthentik/api";
|
} from "@goauthentik/api";
|
||||||
|
|
||||||
@customElement("ak-stage-authenticator-static-form")
|
@customElement("ak-stage-authenticator-static-form")
|
||||||
export class AuthenticatorStaticStageForm extends ModelForm<AuthenticatorStaticStage, string> {
|
export class AuthenticatorStaticStageForm extends BaseStageForm<AuthenticatorStaticStage> {
|
||||||
loadInstance(pk: string): Promise<AuthenticatorStaticStage> {
|
loadInstance(pk: string): Promise<AuthenticatorStaticStage> {
|
||||||
return new StagesApi(DEFAULT_CONFIG).stagesAuthenticatorStaticRetrieve({
|
return new StagesApi(DEFAULT_CONFIG).stagesAuthenticatorStaticRetrieve({
|
||||||
stageUuid: pk,
|
stageUuid: pk,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
|
||||||
if (this.instance) {
|
|
||||||
return msg("Successfully updated stage.");
|
|
||||||
} else {
|
|
||||||
return msg("Successfully created stage.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async send(data: AuthenticatorStaticStage): Promise<AuthenticatorStaticStage> {
|
async send(data: AuthenticatorStaticStage): Promise<AuthenticatorStaticStage> {
|
||||||
if (this.instance) {
|
if (this.instance) {
|
||||||
return new StagesApi(DEFAULT_CONFIG).stagesAuthenticatorStaticUpdate({
|
return new StagesApi(DEFAULT_CONFIG).stagesAuthenticatorStaticUpdate({
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import { RenderFlowOption } from "@goauthentik/admin/flows/utils";
|
import { RenderFlowOption } from "@goauthentik/admin/flows/utils";
|
||||||
|
import { BaseStageForm } from "@goauthentik/admin/stages/BaseStageForm";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
||||||
import { first } from "@goauthentik/common/utils";
|
import { first } from "@goauthentik/common/utils";
|
||||||
import "@goauthentik/elements/forms/FormGroup";
|
import "@goauthentik/elements/forms/FormGroup";
|
||||||
import "@goauthentik/elements/forms/HorizontalFormElement";
|
import "@goauthentik/elements/forms/HorizontalFormElement";
|
||||||
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
|
||||||
import "@goauthentik/elements/forms/SearchSelect";
|
import "@goauthentik/elements/forms/SearchSelect";
|
||||||
|
|
||||||
import { msg } from "@lit/localize";
|
import { msg } from "@lit/localize";
|
||||||
|
@ -21,21 +21,13 @@ import {
|
||||||
} from "@goauthentik/api";
|
} from "@goauthentik/api";
|
||||||
|
|
||||||
@customElement("ak-stage-authenticator-totp-form")
|
@customElement("ak-stage-authenticator-totp-form")
|
||||||
export class AuthenticatorTOTPStageForm extends ModelForm<AuthenticatorTOTPStage, string> {
|
export class AuthenticatorTOTPStageForm extends BaseStageForm<AuthenticatorTOTPStage> {
|
||||||
loadInstance(pk: string): Promise<AuthenticatorTOTPStage> {
|
loadInstance(pk: string): Promise<AuthenticatorTOTPStage> {
|
||||||
return new StagesApi(DEFAULT_CONFIG).stagesAuthenticatorTotpRetrieve({
|
return new StagesApi(DEFAULT_CONFIG).stagesAuthenticatorTotpRetrieve({
|
||||||
stageUuid: pk,
|
stageUuid: pk,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
|
||||||
if (this.instance) {
|
|
||||||
return msg("Successfully updated stage.");
|
|
||||||
} else {
|
|
||||||
return msg("Successfully created stage.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async send(data: AuthenticatorTOTPStage): Promise<AuthenticatorTOTPStage> {
|
async send(data: AuthenticatorTOTPStage): Promise<AuthenticatorTOTPStage> {
|
||||||
if (this.instance) {
|
if (this.instance) {
|
||||||
return new StagesApi(DEFAULT_CONFIG).stagesAuthenticatorTotpUpdate({
|
return new StagesApi(DEFAULT_CONFIG).stagesAuthenticatorTotpUpdate({
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
import { BaseStageForm } from "@goauthentik/admin/stages/BaseStageForm";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
||||||
import "@goauthentik/elements/forms/FormGroup";
|
import "@goauthentik/elements/forms/FormGroup";
|
||||||
import "@goauthentik/elements/forms/HorizontalFormElement";
|
import "@goauthentik/elements/forms/HorizontalFormElement";
|
||||||
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
|
||||||
import "@goauthentik/elements/forms/Radio";
|
import "@goauthentik/elements/forms/Radio";
|
||||||
import "@goauthentik/elements/utils/TimeDeltaHelp";
|
import "@goauthentik/elements/utils/TimeDeltaHelp";
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ import {
|
||||||
} from "@goauthentik/api";
|
} from "@goauthentik/api";
|
||||||
|
|
||||||
@customElement("ak-stage-authenticator-validate-form")
|
@customElement("ak-stage-authenticator-validate-form")
|
||||||
export class AuthenticatorValidateStageForm extends ModelForm<AuthenticatorValidateStage, string> {
|
export class AuthenticatorValidateStageForm extends BaseStageForm<AuthenticatorValidateStage> {
|
||||||
async loadInstance(pk: string): Promise<AuthenticatorValidateStage> {
|
async loadInstance(pk: string): Promise<AuthenticatorValidateStage> {
|
||||||
const stage = await new StagesApi(DEFAULT_CONFIG).stagesAuthenticatorValidateRetrieve({
|
const stage = await new StagesApi(DEFAULT_CONFIG).stagesAuthenticatorValidateRetrieve({
|
||||||
stageUuid: pk,
|
stageUuid: pk,
|
||||||
|
@ -41,14 +41,6 @@ export class AuthenticatorValidateStageForm extends ModelForm<AuthenticatorValid
|
||||||
@property({ type: Boolean })
|
@property({ type: Boolean })
|
||||||
showConfigurationStages = true;
|
showConfigurationStages = true;
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
|
||||||
if (this.instance) {
|
|
||||||
return msg("Successfully updated stage.");
|
|
||||||
} else {
|
|
||||||
return msg("Successfully created stage.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async send(data: AuthenticatorValidateStage): Promise<AuthenticatorValidateStage> {
|
async send(data: AuthenticatorValidateStage): Promise<AuthenticatorValidateStage> {
|
||||||
if (this.instance) {
|
if (this.instance) {
|
||||||
return new StagesApi(DEFAULT_CONFIG).stagesAuthenticatorValidateUpdate({
|
return new StagesApi(DEFAULT_CONFIG).stagesAuthenticatorValidateUpdate({
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import { RenderFlowOption } from "@goauthentik/admin/flows/utils";
|
import { RenderFlowOption } from "@goauthentik/admin/flows/utils";
|
||||||
|
import { BaseStageForm } from "@goauthentik/admin/stages/BaseStageForm";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
||||||
import { first } from "@goauthentik/common/utils";
|
import { first } from "@goauthentik/common/utils";
|
||||||
import "@goauthentik/elements/forms/HorizontalFormElement";
|
import "@goauthentik/elements/forms/HorizontalFormElement";
|
||||||
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
|
||||||
import "@goauthentik/elements/forms/Radio";
|
import "@goauthentik/elements/forms/Radio";
|
||||||
import "@goauthentik/elements/forms/SearchSelect";
|
import "@goauthentik/elements/forms/SearchSelect";
|
||||||
|
|
||||||
|
@ -23,21 +23,13 @@ import {
|
||||||
} from "@goauthentik/api";
|
} from "@goauthentik/api";
|
||||||
|
|
||||||
@customElement("ak-stage-authenticator-webauthn-form")
|
@customElement("ak-stage-authenticator-webauthn-form")
|
||||||
export class AuthenticateWebAuthnStageForm extends ModelForm<AuthenticateWebAuthnStage, string> {
|
export class AuthenticateWebAuthnStageForm extends BaseStageForm<AuthenticateWebAuthnStage> {
|
||||||
loadInstance(pk: string): Promise<AuthenticateWebAuthnStage> {
|
loadInstance(pk: string): Promise<AuthenticateWebAuthnStage> {
|
||||||
return new StagesApi(DEFAULT_CONFIG).stagesAuthenticatorWebauthnRetrieve({
|
return new StagesApi(DEFAULT_CONFIG).stagesAuthenticatorWebauthnRetrieve({
|
||||||
stageUuid: pk,
|
stageUuid: pk,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
|
||||||
if (this.instance) {
|
|
||||||
return msg("Successfully updated stage.");
|
|
||||||
} else {
|
|
||||||
return msg("Successfully created stage.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async send(data: AuthenticateWebAuthnStage): Promise<AuthenticateWebAuthnStage> {
|
async send(data: AuthenticateWebAuthnStage): Promise<AuthenticateWebAuthnStage> {
|
||||||
if (data.authenticatorAttachment?.toString() === "") {
|
if (data.authenticatorAttachment?.toString() === "") {
|
||||||
data.authenticatorAttachment = null;
|
data.authenticatorAttachment = null;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
import { BaseStageForm } from "@goauthentik/admin/stages/BaseStageForm";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
||||||
import "@goauthentik/elements/forms/FormGroup";
|
import "@goauthentik/elements/forms/FormGroup";
|
||||||
import "@goauthentik/elements/forms/HorizontalFormElement";
|
import "@goauthentik/elements/forms/HorizontalFormElement";
|
||||||
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
|
||||||
|
|
||||||
import { msg } from "@lit/localize";
|
import { msg } from "@lit/localize";
|
||||||
import { TemplateResult, html } from "lit";
|
import { TemplateResult, html } from "lit";
|
||||||
|
@ -11,21 +11,13 @@ import { ifDefined } from "lit/directives/if-defined.js";
|
||||||
import { CaptchaStage, CaptchaStageRequest, StagesApi } from "@goauthentik/api";
|
import { CaptchaStage, CaptchaStageRequest, StagesApi } from "@goauthentik/api";
|
||||||
|
|
||||||
@customElement("ak-stage-captcha-form")
|
@customElement("ak-stage-captcha-form")
|
||||||
export class CaptchaStageForm extends ModelForm<CaptchaStage, string> {
|
export class CaptchaStageForm extends BaseStageForm<CaptchaStage> {
|
||||||
loadInstance(pk: string): Promise<CaptchaStage> {
|
loadInstance(pk: string): Promise<CaptchaStage> {
|
||||||
return new StagesApi(DEFAULT_CONFIG).stagesCaptchaRetrieve({
|
return new StagesApi(DEFAULT_CONFIG).stagesCaptchaRetrieve({
|
||||||
stageUuid: pk,
|
stageUuid: pk,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
|
||||||
if (this.instance) {
|
|
||||||
return msg("Successfully updated stage.");
|
|
||||||
} else {
|
|
||||||
return msg("Successfully created stage.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async send(data: CaptchaStage): Promise<CaptchaStage> {
|
async send(data: CaptchaStage): Promise<CaptchaStage> {
|
||||||
if (this.instance) {
|
if (this.instance) {
|
||||||
return new StagesApi(DEFAULT_CONFIG).stagesCaptchaPartialUpdate({
|
return new StagesApi(DEFAULT_CONFIG).stagesCaptchaPartialUpdate({
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
import { BaseStageForm } from "@goauthentik/admin/stages/BaseStageForm";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
||||||
import "@goauthentik/elements/forms/FormGroup";
|
import "@goauthentik/elements/forms/FormGroup";
|
||||||
import "@goauthentik/elements/forms/HorizontalFormElement";
|
import "@goauthentik/elements/forms/HorizontalFormElement";
|
||||||
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
|
||||||
import "@goauthentik/elements/utils/TimeDeltaHelp";
|
import "@goauthentik/elements/utils/TimeDeltaHelp";
|
||||||
|
|
||||||
import { msg } from "@lit/localize";
|
import { msg } from "@lit/localize";
|
||||||
|
@ -12,7 +12,7 @@ import { ifDefined } from "lit/directives/if-defined.js";
|
||||||
import { ConsentStage, ConsentStageModeEnum, StagesApi } from "@goauthentik/api";
|
import { ConsentStage, ConsentStageModeEnum, StagesApi } from "@goauthentik/api";
|
||||||
|
|
||||||
@customElement("ak-stage-consent-form")
|
@customElement("ak-stage-consent-form")
|
||||||
export class ConsentStageForm extends ModelForm<ConsentStage, string> {
|
export class ConsentStageForm extends BaseStageForm<ConsentStage> {
|
||||||
loadInstance(pk: string): Promise<ConsentStage> {
|
loadInstance(pk: string): Promise<ConsentStage> {
|
||||||
return new StagesApi(DEFAULT_CONFIG)
|
return new StagesApi(DEFAULT_CONFIG)
|
||||||
.stagesConsentRetrieve({
|
.stagesConsentRetrieve({
|
||||||
|
@ -27,14 +27,6 @@ export class ConsentStageForm extends ModelForm<ConsentStage, string> {
|
||||||
@property({ type: Boolean })
|
@property({ type: Boolean })
|
||||||
showExpiresIn = false;
|
showExpiresIn = false;
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
|
||||||
if (this.instance) {
|
|
||||||
return msg("Successfully updated stage.");
|
|
||||||
} else {
|
|
||||||
return msg("Successfully created stage.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async send(data: ConsentStage): Promise<ConsentStage> {
|
async send(data: ConsentStage): Promise<ConsentStage> {
|
||||||
if (this.instance) {
|
if (this.instance) {
|
||||||
return new StagesApi(DEFAULT_CONFIG).stagesConsentUpdate({
|
return new StagesApi(DEFAULT_CONFIG).stagesConsentUpdate({
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
import { BaseStageForm } from "@goauthentik/admin/stages/BaseStageForm";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
||||||
import "@goauthentik/elements/forms/HorizontalFormElement";
|
import "@goauthentik/elements/forms/HorizontalFormElement";
|
||||||
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
|
||||||
|
|
||||||
import { msg } from "@lit/localize";
|
import { msg } from "@lit/localize";
|
||||||
import { TemplateResult, html } from "lit";
|
import { TemplateResult, html } from "lit";
|
||||||
|
@ -10,21 +10,13 @@ import { ifDefined } from "lit/directives/if-defined.js";
|
||||||
import { DenyStage, StagesApi } from "@goauthentik/api";
|
import { DenyStage, StagesApi } from "@goauthentik/api";
|
||||||
|
|
||||||
@customElement("ak-stage-deny-form")
|
@customElement("ak-stage-deny-form")
|
||||||
export class DenyStageForm extends ModelForm<DenyStage, string> {
|
export class DenyStageForm extends BaseStageForm<DenyStage> {
|
||||||
loadInstance(pk: string): Promise<DenyStage> {
|
loadInstance(pk: string): Promise<DenyStage> {
|
||||||
return new StagesApi(DEFAULT_CONFIG).stagesDenyRetrieve({
|
return new StagesApi(DEFAULT_CONFIG).stagesDenyRetrieve({
|
||||||
stageUuid: pk,
|
stageUuid: pk,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
|
||||||
if (this.instance) {
|
|
||||||
return msg("Successfully updated stage.");
|
|
||||||
} else {
|
|
||||||
return msg("Successfully created stage.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async send(data: DenyStage): Promise<DenyStage> {
|
async send(data: DenyStage): Promise<DenyStage> {
|
||||||
if (this.instance) {
|
if (this.instance) {
|
||||||
return new StagesApi(DEFAULT_CONFIG).stagesDenyUpdate({
|
return new StagesApi(DEFAULT_CONFIG).stagesDenyUpdate({
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
import { BaseStageForm } from "@goauthentik/admin/stages/BaseStageForm";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
||||||
import { first } from "@goauthentik/common/utils";
|
import { first } from "@goauthentik/common/utils";
|
||||||
import "@goauthentik/elements/forms/HorizontalFormElement";
|
import "@goauthentik/elements/forms/HorizontalFormElement";
|
||||||
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
|
||||||
|
|
||||||
import { msg } from "@lit/localize";
|
import { msg } from "@lit/localize";
|
||||||
import { TemplateResult, html } from "lit";
|
import { TemplateResult, html } from "lit";
|
||||||
|
@ -11,21 +11,13 @@ import { ifDefined } from "lit/directives/if-defined.js";
|
||||||
import { DummyStage, StagesApi } from "@goauthentik/api";
|
import { DummyStage, StagesApi } from "@goauthentik/api";
|
||||||
|
|
||||||
@customElement("ak-stage-dummy-form")
|
@customElement("ak-stage-dummy-form")
|
||||||
export class DummyStageForm extends ModelForm<DummyStage, string> {
|
export class DummyStageForm extends BaseStageForm<DummyStage> {
|
||||||
loadInstance(pk: string): Promise<DummyStage> {
|
loadInstance(pk: string): Promise<DummyStage> {
|
||||||
return new StagesApi(DEFAULT_CONFIG).stagesDummyRetrieve({
|
return new StagesApi(DEFAULT_CONFIG).stagesDummyRetrieve({
|
||||||
stageUuid: pk,
|
stageUuid: pk,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
|
||||||
if (this.instance) {
|
|
||||||
return msg("Successfully updated stage.");
|
|
||||||
} else {
|
|
||||||
return msg("Successfully created stage.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async send(data: DummyStage): Promise<DummyStage> {
|
async send(data: DummyStage): Promise<DummyStage> {
|
||||||
if (this.instance) {
|
if (this.instance) {
|
||||||
return new StagesApi(DEFAULT_CONFIG).stagesDummyUpdate({
|
return new StagesApi(DEFAULT_CONFIG).stagesDummyUpdate({
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
|
import { BaseStageForm } from "@goauthentik/admin/stages/BaseStageForm";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
||||||
import { first } from "@goauthentik/common/utils";
|
import { first } from "@goauthentik/common/utils";
|
||||||
import "@goauthentik/elements/forms/FormGroup";
|
import "@goauthentik/elements/forms/FormGroup";
|
||||||
import "@goauthentik/elements/forms/HorizontalFormElement";
|
import "@goauthentik/elements/forms/HorizontalFormElement";
|
||||||
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
|
||||||
|
|
||||||
import { msg } from "@lit/localize";
|
import { msg } from "@lit/localize";
|
||||||
import { TemplateResult, html } from "lit";
|
import { TemplateResult, html } from "lit";
|
||||||
|
@ -12,7 +12,7 @@ import { ifDefined } from "lit/directives/if-defined.js";
|
||||||
import { EmailStage, StagesApi, TypeCreate } from "@goauthentik/api";
|
import { EmailStage, StagesApi, TypeCreate } from "@goauthentik/api";
|
||||||
|
|
||||||
@customElement("ak-stage-email-form")
|
@customElement("ak-stage-email-form")
|
||||||
export class EmailStageForm extends ModelForm<EmailStage, string> {
|
export class EmailStageForm extends BaseStageForm<EmailStage> {
|
||||||
async loadInstance(pk: string): Promise<EmailStage> {
|
async loadInstance(pk: string): Promise<EmailStage> {
|
||||||
const stage = await new StagesApi(DEFAULT_CONFIG).stagesEmailRetrieve({
|
const stage = await new StagesApi(DEFAULT_CONFIG).stagesEmailRetrieve({
|
||||||
stageUuid: pk,
|
stageUuid: pk,
|
||||||
|
@ -30,14 +30,6 @@ export class EmailStageForm extends ModelForm<EmailStage, string> {
|
||||||
@property({ type: Boolean })
|
@property({ type: Boolean })
|
||||||
showConnectionSettings = false;
|
showConnectionSettings = false;
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
|
||||||
if (this.instance) {
|
|
||||||
return msg("Successfully updated stage.");
|
|
||||||
} else {
|
|
||||||
return msg("Successfully created stage.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async send(data: EmailStage): Promise<EmailStage> {
|
async send(data: EmailStage): Promise<EmailStage> {
|
||||||
if (this.instance) {
|
if (this.instance) {
|
||||||
return new StagesApi(DEFAULT_CONFIG).stagesEmailPartialUpdate({
|
return new StagesApi(DEFAULT_CONFIG).stagesEmailPartialUpdate({
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import "@goauthentik/admin/common/ak-flow-search/ak-flow-search";
|
import "@goauthentik/admin/common/ak-flow-search/ak-flow-search";
|
||||||
|
import { BaseStageForm } from "@goauthentik/admin/stages/BaseStageForm";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
||||||
import { first, groupBy } from "@goauthentik/common/utils";
|
import { first, groupBy } from "@goauthentik/common/utils";
|
||||||
import "@goauthentik/elements/forms/FormGroup";
|
import "@goauthentik/elements/forms/FormGroup";
|
||||||
import "@goauthentik/elements/forms/HorizontalFormElement";
|
import "@goauthentik/elements/forms/HorizontalFormElement";
|
||||||
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
|
||||||
import "@goauthentik/elements/forms/SearchSelect";
|
import "@goauthentik/elements/forms/SearchSelect";
|
||||||
|
|
||||||
import { msg } from "@lit/localize";
|
import { msg } from "@lit/localize";
|
||||||
|
@ -23,7 +23,7 @@ import {
|
||||||
} from "@goauthentik/api";
|
} from "@goauthentik/api";
|
||||||
|
|
||||||
@customElement("ak-stage-identification-form")
|
@customElement("ak-stage-identification-form")
|
||||||
export class IdentificationStageForm extends ModelForm<IdentificationStage, string> {
|
export class IdentificationStageForm extends BaseStageForm<IdentificationStage> {
|
||||||
loadInstance(pk: string): Promise<IdentificationStage> {
|
loadInstance(pk: string): Promise<IdentificationStage> {
|
||||||
return new StagesApi(DEFAULT_CONFIG).stagesIdentificationRetrieve({
|
return new StagesApi(DEFAULT_CONFIG).stagesIdentificationRetrieve({
|
||||||
stageUuid: pk,
|
stageUuid: pk,
|
||||||
|
@ -38,14 +38,6 @@ export class IdentificationStageForm extends ModelForm<IdentificationStage, stri
|
||||||
|
|
||||||
sources?: PaginatedSourceList;
|
sources?: PaginatedSourceList;
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
|
||||||
if (this.instance) {
|
|
||||||
return msg("Successfully updated stage.");
|
|
||||||
} else {
|
|
||||||
return msg("Successfully created stage.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async send(data: IdentificationStage): Promise<IdentificationStage> {
|
async send(data: IdentificationStage): Promise<IdentificationStage> {
|
||||||
if (this.instance) {
|
if (this.instance) {
|
||||||
return new StagesApi(DEFAULT_CONFIG).stagesIdentificationUpdate({
|
return new StagesApi(DEFAULT_CONFIG).stagesIdentificationUpdate({
|
||||||
|
|
|
@ -23,11 +23,9 @@ export class InvitationForm extends ModelForm<Invitation, string> {
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
getSuccessMessage(): string {
|
||||||
if (this.instance) {
|
return this.instance
|
||||||
return msg("Successfully updated invitation.");
|
? msg("Successfully updated invitation.")
|
||||||
} else {
|
: msg("Successfully created invitation.");
|
||||||
return msg("Successfully created invitation.");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async send(data: Invitation): Promise<Invitation> {
|
async send(data: Invitation): Promise<Invitation> {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
|
import { BaseStageForm } from "@goauthentik/admin/stages/BaseStageForm";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
||||||
import { first } from "@goauthentik/common/utils";
|
import { first } from "@goauthentik/common/utils";
|
||||||
import "@goauthentik/elements/forms/FormGroup";
|
import "@goauthentik/elements/forms/FormGroup";
|
||||||
import "@goauthentik/elements/forms/HorizontalFormElement";
|
import "@goauthentik/elements/forms/HorizontalFormElement";
|
||||||
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
|
||||||
|
|
||||||
import { msg } from "@lit/localize";
|
import { msg } from "@lit/localize";
|
||||||
import { TemplateResult, html } from "lit";
|
import { TemplateResult, html } from "lit";
|
||||||
|
@ -11,21 +11,13 @@ import { customElement } from "lit/decorators.js";
|
||||||
import { InvitationStage, StagesApi } from "@goauthentik/api";
|
import { InvitationStage, StagesApi } from "@goauthentik/api";
|
||||||
|
|
||||||
@customElement("ak-stage-invitation-form")
|
@customElement("ak-stage-invitation-form")
|
||||||
export class InvitationStageForm extends ModelForm<InvitationStage, string> {
|
export class InvitationStageForm extends BaseStageForm<InvitationStage> {
|
||||||
loadInstance(pk: string): Promise<InvitationStage> {
|
loadInstance(pk: string): Promise<InvitationStage> {
|
||||||
return new StagesApi(DEFAULT_CONFIG).stagesInvitationStagesRetrieve({
|
return new StagesApi(DEFAULT_CONFIG).stagesInvitationStagesRetrieve({
|
||||||
stageUuid: pk,
|
stageUuid: pk,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
|
||||||
if (this.instance) {
|
|
||||||
return msg("Successfully updated stage.");
|
|
||||||
} else {
|
|
||||||
return msg("Successfully created stage.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async send(data: InvitationStage): Promise<InvitationStage> {
|
async send(data: InvitationStage): Promise<InvitationStage> {
|
||||||
if (this.instance) {
|
if (this.instance) {
|
||||||
return new StagesApi(DEFAULT_CONFIG).stagesInvitationStagesUpdate({
|
return new StagesApi(DEFAULT_CONFIG).stagesInvitationStagesUpdate({
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import { RenderFlowOption } from "@goauthentik/admin/flows/utils";
|
import { RenderFlowOption } from "@goauthentik/admin/flows/utils";
|
||||||
|
import { BaseStageForm } from "@goauthentik/admin/stages/BaseStageForm";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
||||||
import { first } from "@goauthentik/common/utils";
|
import { first } from "@goauthentik/common/utils";
|
||||||
import "@goauthentik/elements/forms/FormGroup";
|
import "@goauthentik/elements/forms/FormGroup";
|
||||||
import "@goauthentik/elements/forms/HorizontalFormElement";
|
import "@goauthentik/elements/forms/HorizontalFormElement";
|
||||||
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
|
||||||
import "@goauthentik/elements/forms/SearchSelect";
|
import "@goauthentik/elements/forms/SearchSelect";
|
||||||
|
|
||||||
import { msg } from "@lit/localize";
|
import { msg } from "@lit/localize";
|
||||||
|
@ -22,21 +22,13 @@ import {
|
||||||
} from "@goauthentik/api";
|
} from "@goauthentik/api";
|
||||||
|
|
||||||
@customElement("ak-stage-password-form")
|
@customElement("ak-stage-password-form")
|
||||||
export class PasswordStageForm extends ModelForm<PasswordStage, string> {
|
export class PasswordStageForm extends BaseStageForm<PasswordStage> {
|
||||||
loadInstance(pk: string): Promise<PasswordStage> {
|
loadInstance(pk: string): Promise<PasswordStage> {
|
||||||
return new StagesApi(DEFAULT_CONFIG).stagesPasswordRetrieve({
|
return new StagesApi(DEFAULT_CONFIG).stagesPasswordRetrieve({
|
||||||
stageUuid: pk,
|
stageUuid: pk,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
|
||||||
if (this.instance) {
|
|
||||||
return msg("Successfully updated stage.");
|
|
||||||
} else {
|
|
||||||
return msg("Successfully created stage.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async send(data: PasswordStage): Promise<PasswordStage> {
|
async send(data: PasswordStage): Promise<PasswordStage> {
|
||||||
if (this.instance) {
|
if (this.instance) {
|
||||||
return new StagesApi(DEFAULT_CONFIG).stagesPasswordUpdate({
|
return new StagesApi(DEFAULT_CONFIG).stagesPasswordUpdate({
|
||||||
|
|
|
@ -90,11 +90,9 @@ export class PromptForm extends ModelForm<Prompt, string> {
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
getSuccessMessage(): string {
|
||||||
if (this.instance) {
|
return this.instance
|
||||||
return msg("Successfully updated prompt.");
|
? msg("Successfully updated prompt.")
|
||||||
} else {
|
: msg("Successfully created prompt.");
|
||||||
return msg("Successfully created prompt.");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static get styles(): CSSResult[] {
|
static get styles(): CSSResult[] {
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
|
import { BaseStageForm } from "@goauthentik/admin/stages/BaseStageForm";
|
||||||
import "@goauthentik/admin/stages/prompt/PromptForm";
|
import "@goauthentik/admin/stages/prompt/PromptForm";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
||||||
import "@goauthentik/elements/forms/FormGroup";
|
import "@goauthentik/elements/forms/FormGroup";
|
||||||
import "@goauthentik/elements/forms/HorizontalFormElement";
|
import "@goauthentik/elements/forms/HorizontalFormElement";
|
||||||
import "@goauthentik/elements/forms/ModalForm";
|
import "@goauthentik/elements/forms/ModalForm";
|
||||||
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
|
||||||
|
|
||||||
import { msg, str } from "@lit/localize";
|
import { msg, str } from "@lit/localize";
|
||||||
import { TemplateResult, html } from "lit";
|
import { TemplateResult, html } from "lit";
|
||||||
|
@ -19,7 +19,7 @@ import {
|
||||||
} from "@goauthentik/api";
|
} from "@goauthentik/api";
|
||||||
|
|
||||||
@customElement("ak-stage-prompt-form")
|
@customElement("ak-stage-prompt-form")
|
||||||
export class PromptStageForm extends ModelForm<PromptStage, string> {
|
export class PromptStageForm extends BaseStageForm<PromptStage> {
|
||||||
loadInstance(pk: string): Promise<PromptStage> {
|
loadInstance(pk: string): Promise<PromptStage> {
|
||||||
return new StagesApi(DEFAULT_CONFIG).stagesPromptStagesRetrieve({
|
return new StagesApi(DEFAULT_CONFIG).stagesPromptStagesRetrieve({
|
||||||
stageUuid: pk,
|
stageUuid: pk,
|
||||||
|
@ -38,14 +38,6 @@ export class PromptStageForm extends ModelForm<PromptStage, string> {
|
||||||
prompts?: PaginatedPromptList;
|
prompts?: PaginatedPromptList;
|
||||||
policies?: PaginatedPolicyList;
|
policies?: PaginatedPolicyList;
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
|
||||||
if (this.instance) {
|
|
||||||
return msg("Successfully updated stage.");
|
|
||||||
} else {
|
|
||||||
return msg("Successfully created stage.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async send(data: PromptStage): Promise<PromptStage> {
|
async send(data: PromptStage): Promise<PromptStage> {
|
||||||
if (this.instance) {
|
if (this.instance) {
|
||||||
return new StagesApi(DEFAULT_CONFIG).stagesPromptStagesUpdate({
|
return new StagesApi(DEFAULT_CONFIG).stagesPromptStagesUpdate({
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
import { BaseStageForm } from "@goauthentik/admin/stages/BaseStageForm";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
||||||
import "@goauthentik/elements/forms/HorizontalFormElement";
|
import "@goauthentik/elements/forms/HorizontalFormElement";
|
||||||
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
|
||||||
|
|
||||||
import { msg } from "@lit/localize";
|
import { msg } from "@lit/localize";
|
||||||
import { TemplateResult, html } from "lit";
|
import { TemplateResult, html } from "lit";
|
||||||
|
@ -10,21 +10,13 @@ import { ifDefined } from "lit/directives/if-defined.js";
|
||||||
import { StagesApi, UserDeleteStage } from "@goauthentik/api";
|
import { StagesApi, UserDeleteStage } from "@goauthentik/api";
|
||||||
|
|
||||||
@customElement("ak-stage-user-delete-form")
|
@customElement("ak-stage-user-delete-form")
|
||||||
export class UserDeleteStageForm extends ModelForm<UserDeleteStage, string> {
|
export class UserDeleteStageForm extends BaseStageForm<UserDeleteStage> {
|
||||||
loadInstance(pk: string): Promise<UserDeleteStage> {
|
loadInstance(pk: string): Promise<UserDeleteStage> {
|
||||||
return new StagesApi(DEFAULT_CONFIG).stagesUserDeleteRetrieve({
|
return new StagesApi(DEFAULT_CONFIG).stagesUserDeleteRetrieve({
|
||||||
stageUuid: pk,
|
stageUuid: pk,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
|
||||||
if (this.instance) {
|
|
||||||
return msg("Successfully updated stage.");
|
|
||||||
} else {
|
|
||||||
return msg("Successfully created stage.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async send(data: UserDeleteStage): Promise<UserDeleteStage> {
|
async send(data: UserDeleteStage): Promise<UserDeleteStage> {
|
||||||
if (this.instance) {
|
if (this.instance) {
|
||||||
return new StagesApi(DEFAULT_CONFIG).stagesUserDeleteUpdate({
|
return new StagesApi(DEFAULT_CONFIG).stagesUserDeleteUpdate({
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
|
import { BaseStageForm } from "@goauthentik/admin/stages/BaseStageForm";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
||||||
import { first } from "@goauthentik/common/utils";
|
import { first } from "@goauthentik/common/utils";
|
||||||
import "@goauthentik/elements/Alert";
|
import "@goauthentik/elements/Alert";
|
||||||
import "@goauthentik/elements/forms/FormGroup";
|
import "@goauthentik/elements/forms/FormGroup";
|
||||||
import "@goauthentik/elements/forms/HorizontalFormElement";
|
import "@goauthentik/elements/forms/HorizontalFormElement";
|
||||||
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
|
||||||
import "@goauthentik/elements/utils/TimeDeltaHelp";
|
import "@goauthentik/elements/utils/TimeDeltaHelp";
|
||||||
|
|
||||||
import { msg } from "@lit/localize";
|
import { msg } from "@lit/localize";
|
||||||
|
@ -13,21 +13,13 @@ import { customElement } from "lit/decorators.js";
|
||||||
import { StagesApi, UserLoginStage } from "@goauthentik/api";
|
import { StagesApi, UserLoginStage } from "@goauthentik/api";
|
||||||
|
|
||||||
@customElement("ak-stage-user-login-form")
|
@customElement("ak-stage-user-login-form")
|
||||||
export class UserLoginStageForm extends ModelForm<UserLoginStage, string> {
|
export class UserLoginStageForm extends BaseStageForm<UserLoginStage> {
|
||||||
loadInstance(pk: string): Promise<UserLoginStage> {
|
loadInstance(pk: string): Promise<UserLoginStage> {
|
||||||
return new StagesApi(DEFAULT_CONFIG).stagesUserLoginRetrieve({
|
return new StagesApi(DEFAULT_CONFIG).stagesUserLoginRetrieve({
|
||||||
stageUuid: pk,
|
stageUuid: pk,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
|
||||||
if (this.instance) {
|
|
||||||
return msg("Successfully updated stage.");
|
|
||||||
} else {
|
|
||||||
return msg("Successfully created stage.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async send(data: UserLoginStage): Promise<UserLoginStage> {
|
async send(data: UserLoginStage): Promise<UserLoginStage> {
|
||||||
if (this.instance) {
|
if (this.instance) {
|
||||||
return new StagesApi(DEFAULT_CONFIG).stagesUserLoginUpdate({
|
return new StagesApi(DEFAULT_CONFIG).stagesUserLoginUpdate({
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
import { BaseStageForm } from "@goauthentik/admin/stages/BaseStageForm";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
||||||
import "@goauthentik/elements/forms/HorizontalFormElement";
|
import "@goauthentik/elements/forms/HorizontalFormElement";
|
||||||
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
|
||||||
|
|
||||||
import { msg } from "@lit/localize";
|
import { msg } from "@lit/localize";
|
||||||
import { TemplateResult, html } from "lit";
|
import { TemplateResult, html } from "lit";
|
||||||
|
@ -10,21 +10,13 @@ import { ifDefined } from "lit/directives/if-defined.js";
|
||||||
import { StagesApi, UserLogoutStage } from "@goauthentik/api";
|
import { StagesApi, UserLogoutStage } from "@goauthentik/api";
|
||||||
|
|
||||||
@customElement("ak-stage-user-logout-form")
|
@customElement("ak-stage-user-logout-form")
|
||||||
export class UserLogoutStageForm extends ModelForm<UserLogoutStage, string> {
|
export class UserLogoutStageForm extends BaseStageForm<UserLogoutStage> {
|
||||||
loadInstance(pk: string): Promise<UserLogoutStage> {
|
loadInstance(pk: string): Promise<UserLogoutStage> {
|
||||||
return new StagesApi(DEFAULT_CONFIG).stagesUserLogoutRetrieve({
|
return new StagesApi(DEFAULT_CONFIG).stagesUserLogoutRetrieve({
|
||||||
stageUuid: pk,
|
stageUuid: pk,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
|
||||||
if (this.instance) {
|
|
||||||
return msg("Successfully updated stage.");
|
|
||||||
} else {
|
|
||||||
return msg("Successfully created stage.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async send(data: UserLogoutStage): Promise<UserLogoutStage> {
|
async send(data: UserLogoutStage): Promise<UserLogoutStage> {
|
||||||
if (this.instance) {
|
if (this.instance) {
|
||||||
return new StagesApi(DEFAULT_CONFIG).stagesUserLogoutUpdate({
|
return new StagesApi(DEFAULT_CONFIG).stagesUserLogoutUpdate({
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
|
import { BaseStageForm } from "@goauthentik/admin/stages/BaseStageForm";
|
||||||
import { UserCreationModeEnum } from "@goauthentik/api/dist/models/UserCreationModeEnum";
|
import { UserCreationModeEnum } from "@goauthentik/api/dist/models/UserCreationModeEnum";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
||||||
import { first } from "@goauthentik/common/utils";
|
import { first } from "@goauthentik/common/utils";
|
||||||
import "@goauthentik/elements/forms/FormGroup";
|
import "@goauthentik/elements/forms/FormGroup";
|
||||||
import "@goauthentik/elements/forms/HorizontalFormElement";
|
import "@goauthentik/elements/forms/HorizontalFormElement";
|
||||||
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
|
|
||||||
import "@goauthentik/elements/forms/Radio";
|
import "@goauthentik/elements/forms/Radio";
|
||||||
import "@goauthentik/elements/forms/SearchSelect";
|
import "@goauthentik/elements/forms/SearchSelect";
|
||||||
|
|
||||||
|
@ -22,21 +22,13 @@ import {
|
||||||
} from "@goauthentik/api";
|
} from "@goauthentik/api";
|
||||||
|
|
||||||
@customElement("ak-stage-user-write-form")
|
@customElement("ak-stage-user-write-form")
|
||||||
export class UserWriteStageForm extends ModelForm<UserWriteStage, string> {
|
export class UserWriteStageForm extends BaseStageForm<UserWriteStage> {
|
||||||
loadInstance(pk: string): Promise<UserWriteStage> {
|
loadInstance(pk: string): Promise<UserWriteStage> {
|
||||||
return new StagesApi(DEFAULT_CONFIG).stagesUserWriteRetrieve({
|
return new StagesApi(DEFAULT_CONFIG).stagesUserWriteRetrieve({
|
||||||
stageUuid: pk,
|
stageUuid: pk,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
|
||||||
if (this.instance) {
|
|
||||||
return msg("Successfully updated stage.");
|
|
||||||
} else {
|
|
||||||
return msg("Successfully created stage.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async send(data: UserWriteStage): Promise<UserWriteStage> {
|
async send(data: UserWriteStage): Promise<UserWriteStage> {
|
||||||
if (this.instance) {
|
if (this.instance) {
|
||||||
return new StagesApi(DEFAULT_CONFIG).stagesUserWriteUpdate({
|
return new StagesApi(DEFAULT_CONFIG).stagesUserWriteUpdate({
|
||||||
|
|
|
@ -26,11 +26,9 @@ export class TenantForm extends ModelForm<Tenant, string> {
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
getSuccessMessage(): string {
|
||||||
if (this.instance) {
|
return this.instance
|
||||||
return msg("Successfully updated tenant.");
|
? msg("Successfully updated tenant.")
|
||||||
} else {
|
: msg("Successfully created tenant.");
|
||||||
return msg("Successfully created tenant.");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async send(data: Tenant): Promise<Tenant> {
|
async send(data: Tenant): Promise<Tenant> {
|
||||||
|
@ -235,7 +233,7 @@ export class TenantForm extends ModelForm<Tenant, string> {
|
||||||
name="webCertificate"
|
name="webCertificate"
|
||||||
>
|
>
|
||||||
<ak-crypto-certificate-search
|
<ak-crypto-certificate-search
|
||||||
certificate=${this.instance?.webCertificate}
|
.certificate=${this.instance?.webCertificate}
|
||||||
></ak-crypto-certificate-search>
|
></ak-crypto-certificate-search>
|
||||||
</ak-form-element-horizontal>
|
</ak-form-element-horizontal>
|
||||||
<ak-form-element-horizontal
|
<ak-form-element-horizontal
|
||||||
|
|
|
@ -26,11 +26,9 @@ export class TokenForm extends ModelForm<Token, string> {
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
getSuccessMessage(): string {
|
||||||
if (this.instance) {
|
return this.instance
|
||||||
return msg("Successfully updated token.");
|
? msg("Successfully updated token.")
|
||||||
} else {
|
: msg("Successfully created token.");
|
||||||
return msg("Successfully created token.");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async send(data: Token): Promise<Token> {
|
async send(data: Token): Promise<Token> {
|
||||||
|
|
|
@ -14,6 +14,11 @@ import "@goauthentik/app/elements/rbac/ObjectPermissionsPage";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
||||||
import { EVENT_REFRESH } from "@goauthentik/common/constants";
|
import { EVENT_REFRESH } from "@goauthentik/common/constants";
|
||||||
import { userTypeToLabel } from "@goauthentik/common/labels";
|
import { userTypeToLabel } from "@goauthentik/common/labels";
|
||||||
|
import "@goauthentik/components/DescriptionList";
|
||||||
|
import {
|
||||||
|
type DescriptionPair,
|
||||||
|
renderDescriptionList,
|
||||||
|
} from "@goauthentik/components/DescriptionList";
|
||||||
import "@goauthentik/components/ak-status-label";
|
import "@goauthentik/components/ak-status-label";
|
||||||
import "@goauthentik/components/events/ObjectChangelog";
|
import "@goauthentik/components/events/ObjectChangelog";
|
||||||
import "@goauthentik/components/events/UserEvents";
|
import "@goauthentik/components/events/UserEvents";
|
||||||
|
@ -137,99 +142,36 @@ export class UserViewPage extends AKElement {
|
||||||
|
|
||||||
const user = this.user;
|
const user = this.user;
|
||||||
|
|
||||||
const canImpersonate =
|
// prettier-ignore
|
||||||
rootInterface()?.config?.capabilities.includes(CapabilitiesEnum.CanImpersonate) &&
|
const userInfo: DescriptionPair[] = [
|
||||||
this.user.pk !== this.me?.user.pk;
|
[msg("Username"), user.username],
|
||||||
|
[msg("Name"), user.name],
|
||||||
|
[msg("Email"), user.email || "-"],
|
||||||
|
[msg("Last login"), user.lastLogin?.toLocaleString()],
|
||||||
|
[msg("Active"), html`<ak-status-label type="warning" ?good=${user.isActive}></ak-status-label>`],
|
||||||
|
[msg("Type"), userTypeToLabel(user.type)],
|
||||||
|
[msg("Superuser"), html`<ak-status-label type="warning" ?good=${user.isSuperuser}></ak-status-label>`],
|
||||||
|
[msg("Actions"), this.renderActionButtons(user)],
|
||||||
|
[msg("Recovery"), this.renderRecoveryButtons(user)],
|
||||||
|
];
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
<div class="pf-c-card__title">${msg("User Info")}</div>
|
<div class="pf-c-card__title">${msg("User Info")}</div>
|
||||||
<div class="pf-c-card__body">
|
<div class="pf-c-card__body">${renderDescriptionList(userInfo)}</div>
|
||||||
<dl class="pf-c-description-list">
|
`;
|
||||||
<div class="pf-c-description-list__group">
|
}
|
||||||
<dt class="pf-c-description-list__term">
|
|
||||||
<span class="pf-c-description-list__text">${msg("Username")}</span>
|
renderActionButtons(user: User) {
|
||||||
</dt>
|
const canImpersonate =
|
||||||
<dd class="pf-c-description-list__description">
|
rootInterface()?.config?.capabilities.includes(CapabilitiesEnum.CanImpersonate) &&
|
||||||
<div class="pf-c-description-list__text">${user.username}</div>
|
user.pk !== this.me?.user.pk;
|
||||||
</dd>
|
|
||||||
</div>
|
return html`<div class="ak-button-collection">
|
||||||
<div class="pf-c-description-list__group">
|
|
||||||
<dt class="pf-c-description-list__term">
|
|
||||||
<span class="pf-c-description-list__text">${msg("Name")}</span>
|
|
||||||
</dt>
|
|
||||||
<dd class="pf-c-description-list__description">
|
|
||||||
<div class="pf-c-description-list__text">${user.name}</div>
|
|
||||||
</dd>
|
|
||||||
</div>
|
|
||||||
<div class="pf-c-description-list__group">
|
|
||||||
<dt class="pf-c-description-list__term">
|
|
||||||
<span class="pf-c-description-list__text">${msg("Email")}</span>
|
|
||||||
</dt>
|
|
||||||
<dd class="pf-c-description-list__description">
|
|
||||||
<div class="pf-c-description-list__text">${user.email || "-"}</div>
|
|
||||||
</dd>
|
|
||||||
</div>
|
|
||||||
<div class="pf-c-description-list__group">
|
|
||||||
<dt class="pf-c-description-list__term">
|
|
||||||
<span class="pf-c-description-list__text">${msg("Last login")}</span>
|
|
||||||
</dt>
|
|
||||||
<dd class="pf-c-description-list__description">
|
|
||||||
<div class="pf-c-description-list__text">
|
|
||||||
${user.lastLogin?.toLocaleString()}
|
|
||||||
</div>
|
|
||||||
</dd>
|
|
||||||
</div>
|
|
||||||
<div class="pf-c-description-list__group">
|
|
||||||
<dt class="pf-c-description-list__term">
|
|
||||||
<span class="pf-c-description-list__text">${msg("Active")}</span>
|
|
||||||
</dt>
|
|
||||||
<dd class="pf-c-description-list__description">
|
|
||||||
<div class="pf-c-description-list__text">
|
|
||||||
<ak-status-label
|
|
||||||
type="warning"
|
|
||||||
?good=${user.isActive}
|
|
||||||
></ak-status-label>
|
|
||||||
</div>
|
|
||||||
</dd>
|
|
||||||
</div>
|
|
||||||
<div class="pf-c-description-list__group">
|
|
||||||
<dt class="pf-c-description-list__term">
|
|
||||||
<span class="pf-c-description-list__text">${msg("Type")}</span>
|
|
||||||
</dt>
|
|
||||||
<dd class="pf-c-description-list__description">
|
|
||||||
<div class="pf-c-description-list__text">
|
|
||||||
${userTypeToLabel(user.type)}
|
|
||||||
</div>
|
|
||||||
</dd>
|
|
||||||
</div>
|
|
||||||
<div class="pf-c-description-list__group">
|
|
||||||
<dt class="pf-c-description-list__term">
|
|
||||||
<span class="pf-c-description-list__text">${msg("Superuser")}</span>
|
|
||||||
</dt>
|
|
||||||
<dd class="pf-c-description-list__description">
|
|
||||||
<div class="pf-c-description-list__text">
|
|
||||||
<ak-status-label
|
|
||||||
type="warning"
|
|
||||||
?good=${user.isSuperuser}
|
|
||||||
></ak-status-label>
|
|
||||||
</div>
|
|
||||||
</dd>
|
|
||||||
</div>
|
|
||||||
<div class="pf-c-description-list__group">
|
|
||||||
<dt class="pf-c-description-list__term">
|
|
||||||
<span class="pf-c-description-list__text">${msg("Actions")}</span>
|
|
||||||
</dt>
|
|
||||||
<dd class="pf-c-description-list__description ak-button-collection">
|
|
||||||
<div class="pf-c-description-list__text">
|
|
||||||
<ak-forms-modal>
|
<ak-forms-modal>
|
||||||
<span slot="submit"> ${msg("Update")} </span>
|
<span slot="submit"> ${msg("Update")} </span>
|
||||||
<span slot="header"> ${msg("Update User")} </span>
|
<span slot="header"> ${msg("Update User")} </span>
|
||||||
<ak-user-form slot="form" .instancePk=${user.pk}>
|
<ak-user-form slot="form" .instancePk=${user.pk}> </ak-user-form>
|
||||||
</ak-user-form>
|
<button slot="trigger" class="pf-m-primary pf-c-button pf-m-block">
|
||||||
<button
|
|
||||||
slot="trigger"
|
|
||||||
class="pf-m-primary pf-c-button pf-m-block"
|
|
||||||
>
|
|
||||||
${msg("Edit")}
|
${msg("Edit")}
|
||||||
</button>
|
</button>
|
||||||
</ak-forms-modal>
|
</ak-forms-modal>
|
||||||
|
@ -245,17 +187,12 @@ export class UserViewPage extends AKElement {
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<button
|
<button slot="trigger" class="pf-c-button pf-m-warning pf-m-block">
|
||||||
slot="trigger"
|
|
||||||
class="pf-c-button pf-m-warning pf-m-block"
|
|
||||||
>
|
|
||||||
<pf-tooltip
|
<pf-tooltip
|
||||||
position="top"
|
position="top"
|
||||||
content=${user.isActive
|
content=${user.isActive
|
||||||
? msg("Lock the user out of this system")
|
? msg("Lock the user out of this system")
|
||||||
: msg(
|
: msg("Allow the user to log in and use this system")}
|
||||||
"Allow the user to log in and use this system",
|
|
||||||
)}
|
|
||||||
>
|
>
|
||||||
${user.isActive ? msg("Deactivate") : msg("Activate")}
|
${user.isActive ? msg("Deactivate") : msg("Activate")}
|
||||||
</pf-tooltip>
|
</pf-tooltip>
|
||||||
|
@ -278,24 +215,18 @@ export class UserViewPage extends AKElement {
|
||||||
>
|
>
|
||||||
<pf-tooltip
|
<pf-tooltip
|
||||||
position="top"
|
position="top"
|
||||||
content=${msg(
|
content=${msg("Temporarily assume the identity of this user")}
|
||||||
"Temporarily assume the identity of this user",
|
|
||||||
)}
|
|
||||||
>
|
>
|
||||||
${msg("Impersonate")}
|
${msg("Impersonate")}
|
||||||
</pf-tooltip>
|
</pf-tooltip>
|
||||||
</ak-action-button>
|
</ak-action-button>
|
||||||
`
|
`
|
||||||
: nothing}
|
: nothing}
|
||||||
</div>
|
</div> `;
|
||||||
</dd>
|
}
|
||||||
</div>
|
|
||||||
<div class="pf-c-description-list__group">
|
renderRecoveryButtons(user: User) {
|
||||||
<dt class="pf-c-description-list__term">
|
return html`<div class="ak-button-collection">
|
||||||
<span class="pf-c-description-list__text">${msg("Recovery")}</span>
|
|
||||||
</dt>
|
|
||||||
<dd class="pf-c-description-list__description">
|
|
||||||
<div class="pf-c-description-list__text ak-button-collection">
|
|
||||||
<ak-forms-modal size=${PFSize.Medium} id="update-password-request">
|
<ak-forms-modal size=${PFSize.Medium} id="update-password-request">
|
||||||
<span slot="submit">${msg("Update password")}</span>
|
<span slot="submit">${msg("Update password")}</span>
|
||||||
<span slot="header">${msg("Update password")}</span>
|
<span slot="header">${msg("Update password")}</span>
|
||||||
|
|
|
@ -310,6 +310,12 @@ select[multiple] option:checked {
|
||||||
--pf-c-wizard__nav-link--before--BackgroundColor: transparent;
|
--pf-c-wizard__nav-link--before--BackgroundColor: transparent;
|
||||||
}
|
}
|
||||||
/* tree view */
|
/* tree view */
|
||||||
|
.pf-c-tree-view__node {
|
||||||
|
--pf-c-tree-view__node--Color: var(--ak-dark-foreground);
|
||||||
|
}
|
||||||
|
.pf-c-tree-view__node-toggle {
|
||||||
|
--pf-c-tree-view__node-toggle--Color: var(--ak-dark-foreground);
|
||||||
|
}
|
||||||
.pf-c-tree-view__node:focus {
|
.pf-c-tree-view__node:focus {
|
||||||
--pf-c-tree-view__node--focus--BackgroundColor: var(--ak-dark-background-light-ish);
|
--pf-c-tree-view__node--focus--BackgroundColor: var(--ak-dark-background-light-ish);
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,94 @@
|
||||||
|
import { TemplateResult, html, nothing } from "lit";
|
||||||
|
import { classMap } from "lit/directives/class-map.js";
|
||||||
|
import { map } from "lit/directives/map.js";
|
||||||
|
|
||||||
|
export type DescriptionDesc = string | TemplateResult | undefined | typeof nothing;
|
||||||
|
export type DescriptionPair = [string, DescriptionDesc];
|
||||||
|
export type DescriptionRecord = { term: string; desc: DescriptionDesc };
|
||||||
|
|
||||||
|
interface DescriptionConfig {
|
||||||
|
horizontal: boolean;
|
||||||
|
compact: boolean;
|
||||||
|
twocolumn: boolean;
|
||||||
|
threecolumn: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
const isDescriptionRecordCollection = (v: Array<unknown>): v is DescriptionRecord[] =>
|
||||||
|
v.length > 0 && typeof v[0] === "object" && !Array.isArray(v[0]);
|
||||||
|
|
||||||
|
function renderDescriptionGroup([term, description]: DescriptionPair) {
|
||||||
|
return html` <div class="pf-c-description-list__group">
|
||||||
|
<dt class="pf-c-description-list__term">
|
||||||
|
<span class="pf-c-description-list__text">${term}</span>
|
||||||
|
</dt>
|
||||||
|
<dd class="pf-c-description-list__description">
|
||||||
|
<div class="pf-c-description-list__text">${description ?? nothing}</div>
|
||||||
|
</dd>
|
||||||
|
</div>`;
|
||||||
|
}
|
||||||
|
|
||||||
|
function recordToPair({ term, desc }: DescriptionRecord): DescriptionPair {
|
||||||
|
return [term, desc];
|
||||||
|
}
|
||||||
|
|
||||||
|
function alignTermType(terms: DescriptionRecord[] | DescriptionPair[] = []) {
|
||||||
|
if (isDescriptionRecordCollection(terms)) {
|
||||||
|
return terms.map(recordToPair);
|
||||||
|
}
|
||||||
|
return terms ?? [];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* renderDescriptionList
|
||||||
|
*
|
||||||
|
* This function renders the most common form of the PatternFly description list used in our code.
|
||||||
|
* It expects either an array of term/description pairs or an array of `{ term: string, description:
|
||||||
|
* string | TemplateResult }`.
|
||||||
|
*
|
||||||
|
* An optional dictionary of configuration options is available. These enable the Patternfly
|
||||||
|
* "horizontal," "compact", "2 column on large," or "3 column on large" layouts that are (so far)
|
||||||
|
* the layouts used in Authentik's (and Gravity's, for that matter) code.
|
||||||
|
*
|
||||||
|
* This is not a web component and it does not bring its own styling ; calling code will still have
|
||||||
|
* to provide the styling necessary. It is only a function to replace the repetitious boilerplate of
|
||||||
|
* routine description lists. Its output is a standard TemplateResult that will be fully realized
|
||||||
|
* within the context of the DOM or ShadowDOM in which it is called.
|
||||||
|
*/
|
||||||
|
|
||||||
|
const defaultConfig = {
|
||||||
|
horizontal: false,
|
||||||
|
compact: false,
|
||||||
|
twocolumn: false,
|
||||||
|
threecolumn: false,
|
||||||
|
};
|
||||||
|
|
||||||
|
export function renderDescriptionList(
|
||||||
|
terms: DescriptionRecord[],
|
||||||
|
config?: DescriptionConfig,
|
||||||
|
): TemplateResult;
|
||||||
|
|
||||||
|
export function renderDescriptionList(
|
||||||
|
terms: DescriptionPair[],
|
||||||
|
config?: DescriptionConfig,
|
||||||
|
): TemplateResult;
|
||||||
|
|
||||||
|
export function renderDescriptionList(
|
||||||
|
terms: DescriptionRecord[] | DescriptionPair[] = [],
|
||||||
|
config: DescriptionConfig = defaultConfig,
|
||||||
|
) {
|
||||||
|
const checkedTerms = alignTermType(terms);
|
||||||
|
const classes = classMap({
|
||||||
|
"pf-m-horizontal": config.horizontal,
|
||||||
|
"pf-m-compact": config.compact,
|
||||||
|
"pf-m-2-col-on-lg": config.twocolumn,
|
||||||
|
"pf-m-3-col-on-lg": config.threecolumn,
|
||||||
|
});
|
||||||
|
|
||||||
|
return html`
|
||||||
|
<dl class="pf-c-description-list ${classes}">
|
||||||
|
${map(checkedTerms, renderDescriptionGroup)}
|
||||||
|
</dl>
|
||||||
|
`;
|
||||||
|
}
|
||||||
|
|
||||||
|
export default renderDescriptionList;
|
|
@ -13,6 +13,7 @@ import "@goauthentik/elements/table/TableSearch";
|
||||||
import { msg } from "@lit/localize";
|
import { msg } from "@lit/localize";
|
||||||
import { CSSResult, TemplateResult, css, html } from "lit";
|
import { CSSResult, TemplateResult, css, html } from "lit";
|
||||||
import { property, state } from "lit/decorators.js";
|
import { property, state } from "lit/decorators.js";
|
||||||
|
import { classMap } from "lit/directives/class-map.js";
|
||||||
import { ifDefined } from "lit/directives/if-defined.js";
|
import { ifDefined } from "lit/directives/if-defined.js";
|
||||||
|
|
||||||
import PFButton from "@patternfly/patternfly/components/Button/button.css";
|
import PFButton from "@patternfly/patternfly/components/Button/button.css";
|
||||||
|
@ -41,11 +42,7 @@ export class TableColumn {
|
||||||
if (!this.orderBy) {
|
if (!this.orderBy) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (table.order === this.orderBy) {
|
table.order = table.order === this.orderBy ? `-${this.orderBy}` : this.orderBy;
|
||||||
table.order = `-${this.orderBy}`;
|
|
||||||
} else {
|
|
||||||
table.order = this.orderBy;
|
|
||||||
}
|
|
||||||
table.fetch();
|
table.fetch();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -75,16 +72,12 @@ export class TableColumn {
|
||||||
}
|
}
|
||||||
|
|
||||||
render(table: Table<unknown>): TemplateResult {
|
render(table: Table<unknown>): TemplateResult {
|
||||||
return html`<th
|
const classes = {
|
||||||
role="columnheader"
|
"pf-c-table__sort": !!this.orderBy,
|
||||||
scope="col"
|
"pf-m-selected": table.order === this.orderBy || table.order === `-${this.orderBy}`,
|
||||||
class="
|
};
|
||||||
${this.orderBy ? "pf-c-table__sort " : " "}
|
|
||||||
${table.order === this.orderBy || table.order === `-${this.orderBy}`
|
return html`<th role="columnheader" scope="col" class="${classMap(classes)}">
|
||||||
? "pf-m-selected "
|
|
||||||
: ""}
|
|
||||||
"
|
|
||||||
>
|
|
||||||
${this.orderBy ? this.renderSortable(table) : html`${this.title}`}
|
${this.orderBy ? this.renderSortable(table) : html`${this.title}`}
|
||||||
</th>`;
|
</th>`;
|
||||||
}
|
}
|
||||||
|
@ -230,7 +223,7 @@ export abstract class Table<T> extends AKElement {
|
||||||
return html`<tr role="row">
|
return html`<tr role="row">
|
||||||
<td role="cell" colspan="25">
|
<td role="cell" colspan="25">
|
||||||
<div class="pf-l-bullseye">
|
<div class="pf-l-bullseye">
|
||||||
<ak-empty-state ?loading="${true}" header=${msg("Loading")}> </ak-empty-state>
|
<ak-empty-state loading header=${msg("Loading")}> </ak-empty-state>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>`;
|
</tr>`;
|
||||||
|
@ -241,9 +234,8 @@ export abstract class Table<T> extends AKElement {
|
||||||
<tr role="row">
|
<tr role="row">
|
||||||
<td role="cell" colspan="8">
|
<td role="cell" colspan="8">
|
||||||
<div class="pf-l-bullseye">
|
<div class="pf-l-bullseye">
|
||||||
${inner
|
${inner ??
|
||||||
? inner
|
html`<ak-empty-state header="${msg("No objects found.")}"
|
||||||
: html`<ak-empty-state header="${msg("No objects found.")}"
|
|
||||||
><div slot="primary">${this.renderObjectCreate()}</div>
|
><div slot="primary">${this.renderObjectCreate()}</div>
|
||||||
</ak-empty-state>`}
|
</ak-empty-state>`}
|
||||||
</div>
|
</div>
|
||||||
|
@ -257,14 +249,13 @@ export abstract class Table<T> extends AKElement {
|
||||||
}
|
}
|
||||||
|
|
||||||
renderError(): TemplateResult {
|
renderError(): TemplateResult {
|
||||||
if (!this.error) {
|
return this.error
|
||||||
return html``;
|
? html`<ak-empty-state header="${msg("Failed to fetch objects.")}" icon="fa-times">
|
||||||
}
|
|
||||||
return html`<ak-empty-state header="${msg("Failed to fetch objects.")}" icon="fa-times">
|
|
||||||
${this.error instanceof ResponseError
|
${this.error instanceof ResponseError
|
||||||
? html` <div slot="body">${this.error.message}</div> `
|
? html` <div slot="body">${this.error.message}</div> `
|
||||||
: html`<div slot="body">${this.error.detail}</div>`}
|
: html`<div slot="body">${this.error.detail}</div>`}
|
||||||
</ak-empty-state>`;
|
</ak-empty-state>`
|
||||||
|
: html``;
|
||||||
}
|
}
|
||||||
|
|
||||||
private renderRows(): TemplateResult[] | undefined {
|
private renderRows(): TemplateResult[] | undefined {
|
||||||
|
@ -294,104 +285,89 @@ export abstract class Table<T> extends AKElement {
|
||||||
private renderRowGroup(items: T[]): TemplateResult[] {
|
private renderRowGroup(items: T[]): TemplateResult[] {
|
||||||
return items.map((item) => {
|
return items.map((item) => {
|
||||||
const itemSelectHandler = (ev: InputEvent | PointerEvent) => {
|
const itemSelectHandler = (ev: InputEvent | PointerEvent) => {
|
||||||
let checked = false;
|
|
||||||
const target = ev.target as HTMLElement;
|
const target = ev.target as HTMLElement;
|
||||||
if (ev.type === "input") {
|
if (ev instanceof PointerEvent && target.classList.contains("ignore-click")) {
|
||||||
checked = (target as HTMLInputElement).checked;
|
|
||||||
} else if (ev instanceof PointerEvent) {
|
|
||||||
if (target.classList.contains("ignore-click")) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
checked = this.selectedElements.indexOf(item) === -1;
|
|
||||||
|
const selected = this.selectedElements.includes(item);
|
||||||
|
const checked =
|
||||||
|
ev instanceof PointerEvent ? !selected : (target as HTMLInputElement).checked;
|
||||||
|
|
||||||
|
if ((checked && selected) || !(checked || selected)) {
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.selectedElements = this.selectedElements.filter((i) => i !== item);
|
||||||
if (checked) {
|
if (checked) {
|
||||||
// Prevent double-adding the element to selected items
|
|
||||||
if (this.selectedElements.indexOf(item) !== -1) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
// Add item to selected
|
|
||||||
this.selectedElements.push(item);
|
this.selectedElements.push(item);
|
||||||
} else {
|
|
||||||
// Get index of item and remove if selected
|
|
||||||
const index = this.selectedElements.indexOf(item);
|
|
||||||
if (index <= -1) return;
|
|
||||||
this.selectedElements.splice(index, 1);
|
|
||||||
}
|
}
|
||||||
this.requestUpdate();
|
|
||||||
// Unset select-all if selectedElements is empty
|
|
||||||
const selectAllCheckbox =
|
const selectAllCheckbox =
|
||||||
this.shadowRoot?.querySelector<HTMLInputElement>("[name=select-all]");
|
this.shadowRoot?.querySelector<HTMLInputElement>("[name=select-all]");
|
||||||
if (!selectAllCheckbox) {
|
if (selectAllCheckbox && this.selectedElements.length < 1) {
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (this.selectedElements.length < 1) {
|
|
||||||
selectAllCheckbox.checked = false;
|
selectAllCheckbox.checked = false;
|
||||||
this.requestUpdate();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.requestUpdate();
|
||||||
};
|
};
|
||||||
return html`<tbody
|
|
||||||
role="rowgroup"
|
const renderCheckbox = () =>
|
||||||
class="${this.expandedElements.indexOf(item) > -1 ? "pf-m-expanded" : ""}"
|
html`<td class="pf-c-table__check" role="cell">
|
||||||
>
|
|
||||||
<tr
|
|
||||||
role="row"
|
|
||||||
class="${this.checkbox ? "pf-m-hoverable" : ""}"
|
|
||||||
@click=${itemSelectHandler}
|
|
||||||
>
|
|
||||||
${this.checkbox
|
|
||||||
? html`<td class="pf-c-table__check" role="cell">
|
|
||||||
<label class="ignore-click"
|
<label class="ignore-click"
|
||||||
><input
|
><input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
class="ignore-click"
|
class="ignore-click"
|
||||||
.checked=${this.selectedElements.indexOf(item) >= 0}
|
.checked=${this.selectedElements.includes(item)}
|
||||||
@input=${itemSelectHandler}
|
@input=${itemSelectHandler}
|
||||||
@click=${(ev: Event) => {
|
@click=${(ev: Event) => {
|
||||||
ev.stopPropagation();
|
ev.stopPropagation();
|
||||||
}}
|
}}
|
||||||
/></label>
|
/></label>
|
||||||
</td>`
|
</td>`;
|
||||||
: html``}
|
|
||||||
${this.expandable
|
const handleExpansion = (ev: Event) => {
|
||||||
? html`<td class="pf-c-table__toggle" role="cell">
|
|
||||||
<button
|
|
||||||
class="pf-c-button pf-m-plain ${this.expandedElements.indexOf(
|
|
||||||
item,
|
|
||||||
) > -1
|
|
||||||
? "pf-m-expanded"
|
|
||||||
: ""}"
|
|
||||||
@click=${(ev: Event) => {
|
|
||||||
ev.stopPropagation();
|
ev.stopPropagation();
|
||||||
const idx = this.expandedElements.indexOf(item);
|
const expanded = this.expandedElements.includes(item);
|
||||||
if (idx <= -1) {
|
this.expandedElements = this.expandedElements.filter((i) => i !== item);
|
||||||
// Element is not expanded, add it
|
if (!expanded) {
|
||||||
this.expandedElements.push(item);
|
this.expandedElements.push(item);
|
||||||
} else {
|
|
||||||
// Element is expanded, remove it
|
|
||||||
this.expandedElements.splice(idx, 1);
|
|
||||||
}
|
}
|
||||||
this.requestUpdate();
|
this.requestUpdate();
|
||||||
}}
|
};
|
||||||
|
|
||||||
|
const expandedClass = {
|
||||||
|
"pf-m-expanded": this.expandedElements.includes(item),
|
||||||
|
};
|
||||||
|
|
||||||
|
const renderExpansion = () => {
|
||||||
|
return html`<td class="pf-c-table__toggle" role="cell">
|
||||||
|
<button
|
||||||
|
class="pf-c-button pf-m-plain ${classMap(expandedClass)}"
|
||||||
|
@click=${handleExpansion}
|
||||||
>
|
>
|
||||||
<div class="pf-c-table__toggle-icon">
|
<div class="pf-c-table__toggle-icon">
|
||||||
<i class="fas fa-angle-down" aria-hidden="true"></i
|
<i class="fas fa-angle-down" aria-hidden="true"></i>
|
||||||
>
|
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
</td>`
|
</td>`;
|
||||||
: html``}
|
};
|
||||||
|
|
||||||
|
return html`<tbody role="rowgroup" class="${classMap(expandedClass)}">
|
||||||
|
<tr
|
||||||
|
role="row"
|
||||||
|
class="${this.checkbox ? "pf-m-hoverable" : ""}"
|
||||||
|
@click=${itemSelectHandler}
|
||||||
|
>
|
||||||
|
${this.checkbox ? renderCheckbox() : html``}
|
||||||
|
${this.expandable ? renderExpansion() : html``}
|
||||||
${this.row(item).map((col) => {
|
${this.row(item).map((col) => {
|
||||||
return html`<td role="cell">${col}</td>`;
|
return html`<td role="cell">${col}</td>`;
|
||||||
})}
|
})}
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr class="pf-c-table__expandable-row ${classMap(expandedClass)}" role="row">
|
||||||
class="pf-c-table__expandable-row ${this.expandedElements.indexOf(item) > -1
|
|
||||||
? "pf-m-expanded"
|
|
||||||
: ""}"
|
|
||||||
role="row"
|
|
||||||
>
|
|
||||||
<td></td>
|
<td></td>
|
||||||
${this.expandedElements.indexOf(item) > -1 ? this.renderExpanded(item) : html``}
|
${this.expandedElements.includes(item) ? this.renderExpanded(item) : html``}
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>`;
|
</tbody>`;
|
||||||
});
|
});
|
||||||
|
@ -418,30 +394,26 @@ export abstract class Table<T> extends AKElement {
|
||||||
}
|
}
|
||||||
|
|
||||||
renderSearch(): TemplateResult {
|
renderSearch(): TemplateResult {
|
||||||
if (!this.searchEnabled()) {
|
const runSearch = (value: string) => {
|
||||||
return html``;
|
|
||||||
}
|
|
||||||
return html`<div class="pf-c-toolbar__group pf-m-search-filter">
|
|
||||||
<ak-table-search
|
|
||||||
class="pf-c-toolbar__item pf-m-search-filter"
|
|
||||||
value=${ifDefined(this.search)}
|
|
||||||
.onSearch=${(value: string) => {
|
|
||||||
this.search = value;
|
this.search = value;
|
||||||
this.fetch();
|
|
||||||
updateURLParams({
|
updateURLParams({
|
||||||
search: value,
|
search: value,
|
||||||
});
|
});
|
||||||
}}
|
this.fetch();
|
||||||
|
};
|
||||||
|
|
||||||
|
return !this.searchEnabled()
|
||||||
|
? html``
|
||||||
|
: html`<div class="pf-c-toolbar__group pf-m-search-filter">
|
||||||
|
<ak-table-search
|
||||||
|
class="pf-c-toolbar__item pf-m-search-filter"
|
||||||
|
value=${ifDefined(this.search)}
|
||||||
|
.onSearch=${runSearch}
|
||||||
>
|
>
|
||||||
</ak-table-search>
|
</ak-table-search>
|
||||||
</div>`;
|
</div>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
||||||
renderSelectedChip(item: T): TemplateResult {
|
|
||||||
return html``;
|
|
||||||
}
|
|
||||||
|
|
||||||
renderToolbarContainer(): TemplateResult {
|
renderToolbarContainer(): TemplateResult {
|
||||||
return html`<div class="pf-c-toolbar">
|
return html`<div class="pf-c-toolbar">
|
||||||
<div class="pf-c-toolbar__content">
|
<div class="pf-c-toolbar__content">
|
||||||
|
@ -449,18 +421,7 @@ export abstract class Table<T> extends AKElement {
|
||||||
<div class="pf-c-toolbar__bulk-select">${this.renderToolbar()}</div>
|
<div class="pf-c-toolbar__bulk-select">${this.renderToolbar()}</div>
|
||||||
<div class="pf-c-toolbar__group">${this.renderToolbarAfter()}</div>
|
<div class="pf-c-toolbar__group">${this.renderToolbarAfter()}</div>
|
||||||
<div class="pf-c-toolbar__group">${this.renderToolbarSelected()}</div>
|
<div class="pf-c-toolbar__group">${this.renderToolbarSelected()}</div>
|
||||||
${this.paginated
|
${this.paginated ? this.renderTablePagination() : html``}
|
||||||
? html`<ak-table-pagination
|
|
||||||
class="pf-c-toolbar__item pf-m-pagination"
|
|
||||||
.pages=${this.data?.pagination}
|
|
||||||
.pageChangeHandler=${(page: number) => {
|
|
||||||
this.page = page;
|
|
||||||
updateURLParams({ tablePage: page });
|
|
||||||
this.fetch();
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
</ak-table-pagination>`
|
|
||||||
: html``}
|
|
||||||
</div>
|
</div>
|
||||||
</div>`;
|
</div>`;
|
||||||
}
|
}
|
||||||
|
@ -469,57 +430,87 @@ export abstract class Table<T> extends AKElement {
|
||||||
this.fetch();
|
this.fetch();
|
||||||
}
|
}
|
||||||
|
|
||||||
renderTable(): TemplateResult {
|
/* The checkbox on the table header row that allows the user to "activate all on this page,"
|
||||||
return html` ${this.checkbox && this.checkboxChip
|
* "deactivate all on this page" with a single click.
|
||||||
? html`<ak-chip-group>
|
*/
|
||||||
${this.selectedElements.map((el) => {
|
renderAllOnThisPageCheckbox(): TemplateResult {
|
||||||
return html`<ak-chip>${this.renderSelectedChip(el)}</ak-chip>`;
|
const checked =
|
||||||
})}
|
this.selectedElements.length === this.data?.results.length &&
|
||||||
</ak-chip-group>`
|
this.selectedElements.length > 0;
|
||||||
: html``}
|
|
||||||
${this.renderToolbarContainer()}
|
const onInput = (ev: InputEvent) => {
|
||||||
<table class="pf-c-table pf-m-compact pf-m-grid-md pf-m-expandable">
|
this.selectedElements = (ev.target as HTMLInputElement).checked
|
||||||
<thead>
|
? this.data?.results.slice(0) || []
|
||||||
<tr role="row">
|
: [];
|
||||||
${this.checkbox
|
};
|
||||||
? html`<td class="pf-c-table__check" role="cell">
|
|
||||||
|
return html`<td class="pf-c-table__check" role="cell">
|
||||||
<input
|
<input
|
||||||
name="select-all"
|
name="select-all"
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
aria-label=${msg("Select all rows")}
|
aria-label=${msg("Select all rows")}
|
||||||
.checked=${this.selectedElements.length ===
|
.checked=${checked}
|
||||||
this.data?.results.length &&
|
@input=${onInput}
|
||||||
this.selectedElements.length > 0}
|
|
||||||
@input=${(ev: InputEvent) => {
|
|
||||||
if ((ev.target as HTMLInputElement).checked) {
|
|
||||||
this.selectedElements =
|
|
||||||
this.data?.results.slice(0) || [];
|
|
||||||
} else {
|
|
||||||
this.selectedElements = [];
|
|
||||||
}
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
</td>`
|
</td>`;
|
||||||
: html``}
|
}
|
||||||
|
|
||||||
|
/* For very large tables where the user is selecting a limited number of entries, we provide a
|
||||||
|
* chip-based subtable at the top that shows the list of selected entries. Long text result in
|
||||||
|
* ellipsized chips, which is sub-optimal.
|
||||||
|
*/
|
||||||
|
renderSelectedChip(_item: T): TemplateResult {
|
||||||
|
// Override this for chip-based displays
|
||||||
|
return html``;
|
||||||
|
}
|
||||||
|
|
||||||
|
get needChipGroup() {
|
||||||
|
return this.checkbox && this.checkboxChip;
|
||||||
|
}
|
||||||
|
|
||||||
|
renderChipGroup(): TemplateResult {
|
||||||
|
return html`<ak-chip-group>
|
||||||
|
${this.selectedElements.map((el) => {
|
||||||
|
return html`<ak-chip>${this.renderSelectedChip(el)}</ak-chip>`;
|
||||||
|
})}
|
||||||
|
</ak-chip-group>`;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* A simple pagination display, shown at both the top and bottom of the page. */
|
||||||
|
renderTablePagination(): TemplateResult {
|
||||||
|
const handler = (page: number) => {
|
||||||
|
updateURLParams({ tablePage: page });
|
||||||
|
this.page = page;
|
||||||
|
this.fetch();
|
||||||
|
};
|
||||||
|
|
||||||
|
return html`
|
||||||
|
<ak-table-pagination
|
||||||
|
class="pf-c-toolbar__item pf-m-pagination"
|
||||||
|
.pages=${this.data?.pagination}
|
||||||
|
.pageChangeHandler=${handler}
|
||||||
|
>
|
||||||
|
</ak-table-pagination>
|
||||||
|
`;
|
||||||
|
}
|
||||||
|
|
||||||
|
renderTable(): TemplateResult {
|
||||||
|
const renderBottomPagination = () =>
|
||||||
|
html`<div class="pf-c-pagination pf-m-bottom">${this.renderTablePagination()}</div>`;
|
||||||
|
|
||||||
|
return html` ${this.needChipGroup ? this.renderChipGroup() : html``}
|
||||||
|
${this.renderToolbarContainer()}
|
||||||
|
<table class="pf-c-table pf-m-compact pf-m-grid-md pf-m-expandable">
|
||||||
|
<thead>
|
||||||
|
<tr role="row">
|
||||||
|
${this.checkbox ? this.renderAllOnThisPageCheckbox() : html``}
|
||||||
${this.expandable ? html`<td role="cell"></td>` : html``}
|
${this.expandable ? html`<td role="cell"></td>` : html``}
|
||||||
${this.columns().map((col) => col.render(this))}
|
${this.columns().map((col) => col.render(this))}
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
${this.renderRows()}
|
${this.renderRows()}
|
||||||
</table>
|
</table>
|
||||||
${this.paginated
|
${this.paginated ? renderBottomPagination() : html``}`;
|
||||||
? html` <div class="pf-c-pagination pf-m-bottom">
|
|
||||||
<ak-table-pagination
|
|
||||||
class="pf-c-toolbar__item pf-m-pagination"
|
|
||||||
.pages=${this.data?.pagination}
|
|
||||||
.pageChangeHandler=${(page: number) => {
|
|
||||||
this.page = page;
|
|
||||||
this.fetch();
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
</ak-table-pagination>
|
|
||||||
</div>`
|
|
||||||
: html``}`;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
render(): TemplateResult {
|
render(): TemplateResult {
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
///<reference types="@hcaptcha/types"/>
|
///<reference types="@hcaptcha/types"/>
|
||||||
///<reference types="turnstile-types"/>
|
|
||||||
import "@goauthentik/elements/EmptyState";
|
import "@goauthentik/elements/EmptyState";
|
||||||
import { PFSize } from "@goauthentik/elements/Spinner";
|
import { PFSize } from "@goauthentik/elements/Spinner";
|
||||||
import "@goauthentik/elements/forms/FormElement";
|
import "@goauthentik/elements/forms/FormElement";
|
||||||
import "@goauthentik/flow/FormStatic";
|
import "@goauthentik/flow/FormStatic";
|
||||||
import "@goauthentik/flow/stages/access_denied/AccessDeniedStage";
|
import "@goauthentik/flow/stages/access_denied/AccessDeniedStage";
|
||||||
import { BaseStage } from "@goauthentik/flow/stages/base";
|
import { BaseStage } from "@goauthentik/flow/stages/base";
|
||||||
|
import type { TurnstileObject } from "turnstile-types";
|
||||||
|
|
||||||
import { msg } from "@lit/localize";
|
import { msg } from "@lit/localize";
|
||||||
import { CSSResult, TemplateResult, html } from "lit";
|
import { CSSResult, TemplateResult, html } from "lit";
|
||||||
|
@ -21,6 +21,10 @@ import PFBase from "@patternfly/patternfly/patternfly-base.css";
|
||||||
|
|
||||||
import { CaptchaChallenge, CaptchaChallengeResponseRequest } from "@goauthentik/api";
|
import { CaptchaChallenge, CaptchaChallengeResponseRequest } from "@goauthentik/api";
|
||||||
|
|
||||||
|
interface TurnstileWindow extends Window {
|
||||||
|
turnstile: TurnstileObject;
|
||||||
|
}
|
||||||
|
|
||||||
@customElement("ak-stage-captcha")
|
@customElement("ak-stage-captcha")
|
||||||
export class CaptchaStage extends BaseStage<CaptchaChallenge, CaptchaChallengeResponseRequest> {
|
export class CaptchaStage extends BaseStage<CaptchaChallenge, CaptchaChallengeResponseRequest> {
|
||||||
static get styles(): CSSResult[] {
|
static get styles(): CSSResult[] {
|
||||||
|
@ -110,9 +114,8 @@ export class CaptchaStage extends BaseStage<CaptchaChallenge, CaptchaChallengeRe
|
||||||
if (!Object.hasOwn(window, "turnstile")) {
|
if (!Object.hasOwn(window, "turnstile")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
window.turnstile.render(container, {
|
(window as unknown as TurnstileWindow).turnstile.render(container, {
|
||||||
sitekey: this.challenge.siteKey,
|
sitekey: this.challenge.siteKey,
|
||||||
size: "invisible",
|
|
||||||
callback: (token) => {
|
callback: (token) => {
|
||||||
this.host?.submit({
|
this.host?.submit({
|
||||||
token: token,
|
token: token,
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
declare module "*.css";
|
declare module "*.css";
|
||||||
|
|
||||||
declare module "*.md" {
|
declare module "*.md" {
|
||||||
const html: string;
|
const html: string;
|
||||||
const metadata: { [key: string]: string };
|
const metadata: { [key: string]: string };
|
||||||
|
|
|
@ -80,9 +80,9 @@ export class UserInterface extends Interface {
|
||||||
:host([theme="dark"]) .pf-c-page__header {
|
:host([theme="dark"]) .pf-c-page__header {
|
||||||
color: var(--ak-dark-foreground) !important;
|
color: var(--ak-dark-foreground) !important;
|
||||||
}
|
}
|
||||||
.pf-c-page__header-tools-item .fas,
|
:host([theme="light"]) .pf-c-page__header-tools-item .fas,
|
||||||
.pf-c-notification-badge__count,
|
:host([theme="light"]) .pf-c-notification-badge__count,
|
||||||
.pf-c-page__header-tools-group .pf-c-button {
|
:host([theme="light"]) .pf-c-page__header-tools-group .pf-c-button {
|
||||||
color: var(--ak-global--Color--100) !important;
|
color: var(--ak-global--Color--100) !important;
|
||||||
}
|
}
|
||||||
.pf-c-page {
|
.pf-c-page {
|
||||||
|
@ -181,7 +181,7 @@ export class UserInterface extends Interface {
|
||||||
<ak-enterprise-status interface="user"></ak-enterprise-status>
|
<ak-enterprise-status interface="user"></ak-enterprise-status>
|
||||||
<div class="pf-c-page">
|
<div class="pf-c-page">
|
||||||
<div class="background-wrapper" style="${this.uiConfig.theme.background}">
|
<div class="background-wrapper" style="${this.uiConfig.theme.background}">
|
||||||
${this.uiConfig.theme.background === ""
|
${(this.uiConfig.theme.background || "") === ""
|
||||||
? html`<div class="background-default-slant"></div>`
|
? html`<div class="background-default-slant"></div>`
|
||||||
: html``}
|
: html``}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -21,11 +21,9 @@ export class UserTokenForm extends ModelForm<Token, string> {
|
||||||
}
|
}
|
||||||
|
|
||||||
getSuccessMessage(): string {
|
getSuccessMessage(): string {
|
||||||
if (this.instance) {
|
return this.instance
|
||||||
return msg("Successfully updated token.");
|
? msg("Successfully updated token.")
|
||||||
} else {
|
: msg("Successfully created token.");
|
||||||
return msg("Successfully created token.");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async send(data: Token): Promise<Token> {
|
async send(data: Token): Promise<Token> {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<?xml version="1.0" ?><xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
|
<?xml version="1.0"?><xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
|
||||||
<file target-language="fr" source-language="en" original="lit-localize-inputs" datatype="plaintext">
|
<file target-language="fr" source-language="en" original="lit-localize-inputs" datatype="plaintext">
|
||||||
<body>
|
<body>
|
||||||
<trans-unit id="s4caed5b7a7e5d89b">
|
<trans-unit id="s4caed5b7a7e5d89b">
|
||||||
|
@ -613,9 +613,9 @@ Il y a <x id="0" equiv-text="${ago}"/> jour(s)</target>
|
||||||
|
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="saa0e2675da69651b">
|
<trans-unit id="saa0e2675da69651b">
|
||||||
<source>The URL "<x id="0" equiv-text="${this.url}"/>" was not found.</source>
|
<source>The URL "<x id="0" equiv-text="${this.url}"/>" was not found.</source>
|
||||||
<target>L'URL "
|
<target>L'URL "
|
||||||
<x id="0" equiv-text="${this.url}"/>" n'a pas été trouvée.</target>
|
<x id="0" equiv-text="${this.url}"/>" n'a pas été trouvée.</target>
|
||||||
|
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="s58cd9c2fe836d9c6">
|
<trans-unit id="s58cd9c2fe836d9c6">
|
||||||
|
@ -1057,8 +1057,8 @@ Il y a <x id="0" equiv-text="${ago}"/> jour(s)</target>
|
||||||
|
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="sa8384c9c26731f83">
|
<trans-unit id="sa8384c9c26731f83">
|
||||||
<source>To allow any redirect URI, set this value to ".*". Be aware of the possible security implications this can have.</source>
|
<source>To allow any redirect URI, set this value to ".*". Be aware of the possible security implications this can have.</source>
|
||||||
<target>Pour permettre n'importe quelle URI de redirection, définissez cette valeur sur ".*". Soyez conscient des possibles implications de sécurité que cela peut avoir.</target>
|
<target>Pour permettre n'importe quelle URI de redirection, définissez cette valeur sur ".*". Soyez conscient des possibles implications de sécurité que cela peut avoir.</target>
|
||||||
|
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="s55787f4dfcdce52b">
|
<trans-unit id="s55787f4dfcdce52b">
|
||||||
|
@ -1630,7 +1630,7 @@ Il y a <x id="0" equiv-text="${ago}"/> jour(s)</target>
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="s33ed903c210a6209">
|
<trans-unit id="s33ed903c210a6209">
|
||||||
<source>Token to authenticate with. Currently only bearer authentication is supported.</source>
|
<source>Token to authenticate with. Currently only bearer authentication is supported.</source>
|
||||||
<target>Jeton d'authentification à utiliser. Actuellement, seule l'authentification "bearer authentication" est prise en charge.</target>
|
<target>Jeton d'authentification à utiliser. Actuellement, seule l'authentification "bearer authentication" est prise en charge.</target>
|
||||||
|
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="sfc8bb104e2c05af8">
|
<trans-unit id="sfc8bb104e2c05af8">
|
||||||
|
@ -1798,8 +1798,8 @@ Il y a <x id="0" equiv-text="${ago}"/> jour(s)</target>
|
||||||
|
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="sa90b7809586c35ce">
|
<trans-unit id="sa90b7809586c35ce">
|
||||||
<source>Either input a full URL, a relative path, or use 'fa://fa-test' to use the Font Awesome icon "fa-test".</source>
|
<source>Either input a full URL, a relative path, or use 'fa://fa-test' to use the Font Awesome icon "fa-test".</source>
|
||||||
<target>Entrez une URL complète, un chemin relatif ou utilisez 'fa://fa-test' pour utiliser l'icône Font Awesome "fa-test".</target>
|
<target>Entrez une URL complète, un chemin relatif ou utilisez 'fa://fa-test' pour utiliser l'icône Font Awesome "fa-test".</target>
|
||||||
|
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="s0410779cb47de312">
|
<trans-unit id="s0410779cb47de312">
|
||||||
|
@ -2897,7 +2897,7 @@ doesn't pass when either or both of the selected options are equal or above the
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="s33683c3b1dbaf264">
|
<trans-unit id="s33683c3b1dbaf264">
|
||||||
<source>To use SSL instead, use 'ldaps://' and disable this option.</source>
|
<source>To use SSL instead, use 'ldaps://' and disable this option.</source>
|
||||||
<target>Pour utiliser SSL à la base, utilisez "ldaps://" et désactviez cette option.</target>
|
<target>Pour utiliser SSL à la base, utilisez "ldaps://" et désactviez cette option.</target>
|
||||||
|
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="s2221fef80f4753a2">
|
<trans-unit id="s2221fef80f4753a2">
|
||||||
|
@ -2986,8 +2986,8 @@ doesn't pass when either or both of the selected options are equal or above the
|
||||||
|
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="s76768bebabb7d543">
|
<trans-unit id="s76768bebabb7d543">
|
||||||
<source>Field which contains members of a group. Note that if using the "memberUid" field, the value is assumed to contain a relative distinguished name. e.g. 'memberUid=some-user' instead of 'memberUid=cn=some-user,ou=groups,...'</source>
|
<source>Field which contains members of a group. Note that if using the "memberUid" field, the value is assumed to contain a relative distinguished name. e.g. 'memberUid=some-user' instead of 'memberUid=cn=some-user,ou=groups,...'</source>
|
||||||
<target>Champ qui contient les membres d'un groupe. Si vous utilisez le champ "memberUid", la valeur est censée contenir un nom distinctif relatif, par exemple 'memberUid=un-utilisateur' au lieu de 'memberUid=cn=un-utilisateur,ou=groups,...'</target>
|
<target>Champ qui contient les membres d'un groupe. Si vous utilisez le champ "memberUid", la valeur est censée contenir un nom distinctif relatif, par exemple 'memberUid=un-utilisateur' au lieu de 'memberUid=cn=un-utilisateur,ou=groups,...'</target>
|
||||||
|
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="s026555347e589f0e">
|
<trans-unit id="s026555347e589f0e">
|
||||||
|
@ -3282,7 +3282,7 @@ doesn't pass when either or both of the selected options are equal or above the
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="s3198c384c2f68b08">
|
<trans-unit id="s3198c384c2f68b08">
|
||||||
<source>Time offset when temporary users should be deleted. This only applies if your IDP uses the NameID Format 'transient', and the user doesn't log out manually.</source>
|
<source>Time offset when temporary users should be deleted. This only applies if your IDP uses the NameID Format 'transient', and the user doesn't log out manually.</source>
|
||||||
<target>Moment où les utilisateurs temporaires doivent être supprimés. Cela ne s'applique que si votre IDP utilise le format NameID "transient" et que l'utilisateur ne se déconnecte pas manuellement.</target>
|
<target>Moment où les utilisateurs temporaires doivent être supprimés. Cela ne s'applique que si votre IDP utilise le format NameID "transient" et que l'utilisateur ne se déconnecte pas manuellement.</target>
|
||||||
|
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="sb32e9c1faa0b8673">
|
<trans-unit id="sb32e9c1faa0b8673">
|
||||||
|
@ -3450,7 +3450,7 @@ doesn't pass when either or both of the selected options are equal or above the
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="s9f8aac89fe318acc">
|
<trans-unit id="s9f8aac89fe318acc">
|
||||||
<source>Optionally set the 'FriendlyName' value of the Assertion attribute.</source>
|
<source>Optionally set the 'FriendlyName' value of the Assertion attribute.</source>
|
||||||
<target>Indiquer la valeur "FriendlyName" de l'attribut d'assertion (optionnel)</target>
|
<target>Indiquer la valeur "FriendlyName" de l'attribut d'assertion (optionnel)</target>
|
||||||
|
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="s851c108679653d2a">
|
<trans-unit id="s851c108679653d2a">
|
||||||
|
@ -3779,8 +3779,8 @@ doesn't pass when either or both of the selected options are equal or above the
|
||||||
|
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="s7b1fba26d245cb1c">
|
<trans-unit id="s7b1fba26d245cb1c">
|
||||||
<source>When using an external logging solution for archiving, this can be set to "minutes=5".</source>
|
<source>When using an external logging solution for archiving, this can be set to "minutes=5".</source>
|
||||||
<target>En cas d'utilisation d'une solution de journalisation externe pour l'archivage, cette valeur peut être fixée à "minutes=5".</target>
|
<target>En cas d'utilisation d'une solution de journalisation externe pour l'archivage, cette valeur peut être fixée à "minutes=5".</target>
|
||||||
|
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="s44536d20bb5c8257">
|
<trans-unit id="s44536d20bb5c8257">
|
||||||
|
@ -3789,8 +3789,8 @@ doesn't pass when either or both of the selected options are equal or above the
|
||||||
|
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="s3bb51cabb02b997e">
|
<trans-unit id="s3bb51cabb02b997e">
|
||||||
<source>Format: "weeks=3;days=2;hours=3,seconds=2".</source>
|
<source>Format: "weeks=3;days=2;hours=3,seconds=2".</source>
|
||||||
<target>Format : "weeks=3;days=2;hours=3,seconds=2".</target>
|
<target>Format : "weeks=3;days=2;hours=3,seconds=2".</target>
|
||||||
|
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="s04bfd02201db5ab8">
|
<trans-unit id="s04bfd02201db5ab8">
|
||||||
|
@ -3986,10 +3986,10 @@ doesn't pass when either or both of the selected options are equal or above the
|
||||||
|
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="sa95a538bfbb86111">
|
<trans-unit id="sa95a538bfbb86111">
|
||||||
<source>Are you sure you want to update <x id="0" equiv-text="${this.objectLabel}"/> "<x id="1" equiv-text="${this.obj?.name}"/>"?</source>
|
<source>Are you sure you want to update <x id="0" equiv-text="${this.objectLabel}"/> "<x id="1" equiv-text="${this.obj?.name}"/>"?</source>
|
||||||
<target>Êtes-vous sûr de vouloir mettre à jour
|
<target>Êtes-vous sûr de vouloir mettre à jour
|
||||||
<x id="0" equiv-text="${this.objectLabel}"/>"
|
<x id="0" equiv-text="${this.objectLabel}"/>"
|
||||||
<x id="1" equiv-text="${this.obj?.name}"/>" ?</target>
|
<x id="1" equiv-text="${this.obj?.name}"/>" ?</target>
|
||||||
|
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="sc92d7cfb6ee1fec6">
|
<trans-unit id="sc92d7cfb6ee1fec6">
|
||||||
|
@ -5075,8 +5075,8 @@ doesn't pass when either or both of the selected options are equal or above the
|
||||||
|
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="sdf1d8edef27236f0">
|
<trans-unit id="sdf1d8edef27236f0">
|
||||||
<source>A "roaming" authenticator, like a YubiKey</source>
|
<source>A "roaming" authenticator, like a YubiKey</source>
|
||||||
<target>Un authentificateur "itinérant", comme une YubiKey</target>
|
<target>Un authentificateur "itinérant", comme une YubiKey</target>
|
||||||
|
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="sfffba7b23d8fb40c">
|
<trans-unit id="sfffba7b23d8fb40c">
|
||||||
|
@ -5401,7 +5401,7 @@ doesn't pass when either or both of the selected options are equal or above the
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="s5170f9ef331949c0">
|
<trans-unit id="s5170f9ef331949c0">
|
||||||
<source>Show arbitrary input fields to the user, for example during enrollment. Data is saved in the flow context under the 'prompt_data' variable.</source>
|
<source>Show arbitrary input fields to the user, for example during enrollment. Data is saved in the flow context under the 'prompt_data' variable.</source>
|
||||||
<target>Afficher des champs de saisie arbitraires à l'utilisateur, par exemple pendant l'inscription. Les données sont enregistrées dans le contexte du flux sous la variable "prompt_data".</target>
|
<target>Afficher des champs de saisie arbitraires à l'utilisateur, par exemple pendant l'inscription. Les données sont enregistrées dans le contexte du flux sous la variable "prompt_data".</target>
|
||||||
|
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="s36cb242ac90353bc">
|
<trans-unit id="s36cb242ac90353bc">
|
||||||
|
@ -5410,10 +5410,10 @@ doesn't pass when either or both of the selected options are equal or above the
|
||||||
|
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="s2d5f69929bb7221d">
|
<trans-unit id="s2d5f69929bb7221d">
|
||||||
<source><x id="0" equiv-text="${prompt.name}"/> ("<x id="1" equiv-text="${prompt.fieldKey}"/>", of type <x id="2" equiv-text="${prompt.type}"/>)</source>
|
<source><x id="0" equiv-text="${prompt.name}"/> ("<x id="1" equiv-text="${prompt.fieldKey}"/>", of type <x id="2" equiv-text="${prompt.type}"/>)</source>
|
||||||
<target>
|
<target>
|
||||||
<x id="0" equiv-text="${prompt.name}"/>("
|
<x id="0" equiv-text="${prompt.name}"/>("
|
||||||
<x id="1" equiv-text="${prompt.fieldKey}"/>", de type
|
<x id="1" equiv-text="${prompt.fieldKey}"/>", de type
|
||||||
<x id="2" equiv-text="${prompt.type}"/>)</target>
|
<x id="2" equiv-text="${prompt.type}"/>)</target>
|
||||||
|
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
|
@ -5462,8 +5462,8 @@ doesn't pass when either or both of the selected options are equal or above the
|
||||||
|
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="s1608b2f94fa0dbd4">
|
<trans-unit id="s1608b2f94fa0dbd4">
|
||||||
<source>If set to a duration above 0, the user will have the option to choose to "stay signed in", which will extend their session by the time specified here.</source>
|
<source>If set to a duration above 0, the user will have the option to choose to "stay signed in", which will extend their session by the time specified here.</source>
|
||||||
<target>Si défini à une durée supérieure à 0, l'utilisateur aura la possibilité de choisir de "rester connecté", ce qui prolongera sa session jusqu'à la durée spécifiée ici.</target>
|
<target>Si défini à une durée supérieure à 0, l'utilisateur aura la possibilité de choisir de "rester connecté", ce qui prolongera sa session jusqu'à la durée spécifiée ici.</target>
|
||||||
|
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="s542a71bb8f41e057">
|
<trans-unit id="s542a71bb8f41e057">
|
||||||
|
@ -6247,7 +6247,7 @@ Les liaisons avec les groupes/utilisateurs sont vérifiées par rapport à l'uti
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="sa7fcf026bd25f231">
|
<trans-unit id="sa7fcf026bd25f231">
|
||||||
<source>Can be in the format of 'unix://' when connecting to a local docker daemon, using 'ssh://' to connect via SSH, or 'https://:2376' when connecting to a remote system.</source>
|
<source>Can be in the format of 'unix://' when connecting to a local docker daemon, using 'ssh://' to connect via SSH, or 'https://:2376' when connecting to a remote system.</source>
|
||||||
<target>Peut être au format "unix://" pour une connexion à un service docker local, "ssh://" pour une connexion via SSH, ou "https://:2376" pour une connexion à un système distant.</target>
|
<target>Peut être au format "unix://" pour une connexion à un service docker local, "ssh://" pour une connexion via SSH, ou "https://:2376" pour une connexion à un système distant.</target>
|
||||||
|
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="saf1d289e3137c2ea">
|
<trans-unit id="saf1d289e3137c2ea">
|
||||||
|
@ -7554,7 +7554,7 @@ Les liaisons avec les groupes/utilisateurs sont vérifiées par rapport à l'uti
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="sff0ac1ace2d90709">
|
<trans-unit id="sff0ac1ace2d90709">
|
||||||
<source>Use this provider with nginx's auth_request or traefik's forwardAuth. Each application/domain needs its own provider. Additionally, on each domain, /outpost.goauthentik.io must be routed to the outpost (when using a managed outpost, this is done for you).</source>
|
<source>Use this provider with nginx's auth_request or traefik's forwardAuth. Each application/domain needs its own provider. Additionally, on each domain, /outpost.goauthentik.io must be routed to the outpost (when using a managed outpost, this is done for you).</source>
|
||||||
<target>Utilisez ce fournisseur avec l'option "auth_request" de Nginx ou "forwardAuth" de Traefik. Chaque application/domaine a besoin de son propre fournisseur. De plus, sur chaque domaine, "/outpost.goauthentik.io" doit être routé vers le poste avancé (lorsque vous utilisez un poste avancé géré, cela est fait pour vous).</target>
|
<target>Utilisez ce fournisseur avec l'option "auth_request" de Nginx ou "forwardAuth" de Traefik. Chaque application/domaine a besoin de son propre fournisseur. De plus, sur chaque domaine, "/outpost.goauthentik.io" doit être routé vers le poste avancé (lorsque vous utilisez un poste avancé géré, cela est fait pour vous).</target>
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="scb58b8a60cad8762">
|
<trans-unit id="scb58b8a60cad8762">
|
||||||
<source>Default relay state</source>
|
<source>Default relay state</source>
|
||||||
|
@ -7968,7 +7968,7 @@ Les liaisons avec les groupes/utilisateurs sont vérifiées par rapport à l'uti
|
||||||
<target>Utilisateur créé et ajouté au groupe <x id="0" equiv-text="${this.group.name}"/> avec succès</target>
|
<target>Utilisateur créé et ajouté au groupe <x id="0" equiv-text="${this.group.name}"/> avec succès</target>
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="s824e0943a7104668">
|
<trans-unit id="s824e0943a7104668">
|
||||||
<source>This user will be added to the group "<x id="0" equiv-text="${this.targetGroup.name}"/>".</source>
|
<source>This user will be added to the group "<x id="0" equiv-text="${this.targetGroup.name}"/>".</source>
|
||||||
<target>Cet utilisateur sera ajouté au groupe &quot;<x id="0" equiv-text="${this.targetGroup.name}"/>&quot;.</target>
|
<target>Cet utilisateur sera ajouté au groupe &quot;<x id="0" equiv-text="${this.targetGroup.name}"/>&quot;.</target>
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="s62e7f6ed7d9cb3ca">
|
<trans-unit id="s62e7f6ed7d9cb3ca">
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
title: “Happy Birthday to Us!”
|
title: "Happy Birthday to Us!"
|
||||||
description: “We are celebrating our one-year anniversary since the founding of Authentik Security..”
|
description: "We are celebrating our one-year anniversary since the founding of Authentik Security.."
|
||||||
slug: 2023-11-1-happy-birthday-to-us
|
slug: 2023-11-1-happy-birthday-to-us
|
||||||
authors:
|
authors:
|
||||||
- name: Jens Langhammer and the authentik team
|
- name: Jens Langhammer and the authentik team
|
||||||
|
@ -56,7 +56,7 @@ Once you get to know Jens, you won’t be surprised to his answer about what he
|
||||||
|
|
||||||
That task alone will scare most of us. In software, team work is most definitely what makes the dream work, so finding the right talents and skills sets and experiences to compliment Jens’ deep technical skills and full-stack experience was of paramount importance. We now have developers with expertise in frontend and backend development, infrastructure, and security, a well as a content editor.
|
That task alone will scare most of us. In software, team work is most definitely what makes the dream work, so finding the right talents and skills sets and experiences to compliment Jens’ deep technical skills and full-stack experience was of paramount importance. We now have developers with expertise in frontend and backend development, infrastructure, and security, a well as a content editor.
|
||||||
|
|
||||||
Of course, it is not just the technical skills that a potential new hire needs; as important are less-measurable skills like collaboration, communication, and perhaps most importantly, what we call “technical curiosity”.
|
Of course, it is not just the technical skills that a potential new hire needs; as important are less-measurable skills like collaboration, communication, and perhaps most importantly, what we call "technical curiosity".
|
||||||
|
|
||||||
> How does this thing work, from whom can I learn more, and with whom can I share my knowledge?
|
> How does this thing work, from whom can I learn more, and with whom can I share my knowledge?
|
||||||
|
|
||||||
|
@ -90,10 +90,10 @@ An interesting offset to our shared love of building is the shared sense of humi
|
||||||
|
|
||||||
The tone and espirit of the company is one reason it’s so meaningful to celebrate our 1-year birthday; we can happily celebrate a hard year of doing things with full, enthusiastic engagement. At authentik, nerdiness is embraced, technical curiosity flourishes, and transparency is a big part of our nature. Speaking of how we communicate with our community, our Discord forum is (in addition to GitHub) an important place where transparency matters. For example, we recently asked our community what they preferred for a release cycle. Based on the answers, we lengthened the release time from from monthly to every two or three months.
|
The tone and espirit of the company is one reason it’s so meaningful to celebrate our 1-year birthday; we can happily celebrate a hard year of doing things with full, enthusiastic engagement. At authentik, nerdiness is embraced, technical curiosity flourishes, and transparency is a big part of our nature. Speaking of how we communicate with our community, our Discord forum is (in addition to GitHub) an important place where transparency matters. For example, we recently asked our community what they preferred for a release cycle. Based on the answers, we lengthened the release time from from monthly to every two or three months.
|
||||||
|
|
||||||
Moving from a role of solo creator of an open source project, to being primary maintainer of a popular, growing project, to suddenly being CTO of a company based on that project is a quite a transition. A natural question we wanted to ask Jens is “What’s been the hardest thing about building a company?” His answers:
|
Moving from a role of solo creator of an open source project, to being primary maintainer of a popular, growing project, to suddenly being CTO of a company based on that project is a quite a transition. A natural question we wanted to ask Jens is "What’s been the hardest thing about building a company?" His answers:
|
||||||
|
|
||||||
- “Recognizing and accepting that you don’t get to work on only what you want to, 100% of time… “
|
- "Recognizing and accepting that you don’t get to work on only what you want to, 100% of time… "
|
||||||
- “Learning to delegate, learning to let go a bit, trusting others to do it in their way, in the right spirit. Especially letting others get into the code… I’ve learned that instead of saying ‘I would not have done it this way’, I instead measure the success of the change itself.”
|
- "Learning to delegate, learning to let go a bit, trusting others to do it in their way, in the right spirit. Especially letting others get into the code… I’ve learned that instead of saying ‘I would not have done it this way’, I instead measure the success of the change itself."
|
||||||
|
|
||||||
### What’s up next?
|
### What’s up next?
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Automated security versus the security mindset
|
title: Automated security versus the security mindset
|
||||||
description: “Automated security plays a key part in many cybersecurity tasks. But what are its failings and will a security mindset always require the human factor?”
|
description: "Automated security plays a key part in many cybersecurity tasks. But what are its failings and will a security mindset always require the human factor?"
|
||||||
slug: 2023-11-30-automated-security-versus-the-security-mindset
|
slug: 2023-11-30-automated-security-versus-the-security-mindset
|
||||||
authors:
|
authors:
|
||||||
- name: Jens Langhammer
|
- name: Jens Langhammer
|
||||||
|
@ -142,7 +142,7 @@ Once new and significant threats are detected by the automated security, it is h
|
||||||
|
|
||||||
### Human-centered cybersecurity
|
### Human-centered cybersecurity
|
||||||
|
|
||||||
Despite the growing technology around automated security, and the temptation to relax when it is deployed, there are human factors that are irreplaceable in the practice of cybersecurity. We recently wrote about the importance of the “Blue Team” and how [organizational and product hardening](https://goauthentik.io/blog/2023-11-22-how-we-saved-over-100k#hardening) are an integral part of our human-centered security mindset.
|
Despite the growing technology around automated security, and the temptation to relax when it is deployed, there are human factors that are irreplaceable in the practice of cybersecurity. We recently wrote about the importance of the "Blue Team" and how [organizational and product hardening](https://goauthentik.io/blog/2023-11-22-how-we-saved-over-100k#hardening) are an integral part of our human-centered security mindset.
|
||||||
|
|
||||||
- The human ability to think creatively and rapidly adapt to changing situations is invaluable to good security processes.
|
- The human ability to think creatively and rapidly adapt to changing situations is invaluable to good security processes.
|
||||||
- The higher the security risk, the more you need skilled security professionals to supervise the security process.
|
- The higher the security risk, the more you need skilled security professionals to supervise the security process.
|
||||||
|
|
|
@ -0,0 +1,93 @@
|
||||||
|
---
|
||||||
|
title: "Okta's October breach part two: a delayed but slightly better response"
|
||||||
|
description: "Okta continues to revel more information about the HAR files breach first revealed in October; now we know that a service account was involved, and 100% of their customer support users were impacted."
|
||||||
|
slug: 2023-12-12-oktas-october-breach-part-two
|
||||||
|
authors:
|
||||||
|
- name: Jens Langhammer
|
||||||
|
title: CTO at Authentik Security Inc
|
||||||
|
url: https://github.com/BeryJu
|
||||||
|
image_url: https://github.com/BeryJu.png
|
||||||
|
tags:
|
||||||
|
- authentik
|
||||||
|
- security mindset
|
||||||
|
- incident response
|
||||||
|
- service account
|
||||||
|
- Okta
|
||||||
|
- SSO
|
||||||
|
- HAR files
|
||||||
|
- identity provider
|
||||||
|
- authentication
|
||||||
|
- Authentik Security
|
||||||
|
hide_table_of_contents: false
|
||||||
|
image: ./okta-timeline.png
|
||||||
|
---
|
||||||
|
|
||||||
|
> **_authentik is an open source Identity Provider that unifies your identity needs into a single platform, replacing Okta, Active Directory, and auth0. Authentik Security is a [public benefit company](https://github.com/OpenCoreVentures/ocv-public-benefit-company/blob/main/ocv-public-benefit-company-charter.md) building on top of the open source project._**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
On November 29th, 2023, Okta [revealed](https://sec.okta.com/harfiles) that a breach they announced in October was much worse than originally conveyed. The number of impacted users went from less than 1% of customers to every single customer who had every opened a Support ticket in the Okta Help Center.
|
||||||
|
|
||||||
|
> So the impact leapt from [134 users](https://sec.okta.com/articles/2023/11/unauthorized-access-oktas-support-case-management-system-root-cause) to [18,400 users](https://www.beyondtrust.com/blog/entry/okta-support-unit-breach-update).
|
||||||
|
|
||||||
|
We wrote in October about Okta’s poor response to breaches (see [Okta got breached again](https://goauthentik.io/blog/2023-10-23-another-okta-breach)), but since our blog doesn’t seem to be changing Okta’s behaviour, let’s take a closer look at the new revelations from Okta about what happened back in October, how it is impacting users now, and why Okta is still dealing with it in December.
|
||||||
|
|
||||||
|
> Now all of Okta’s customers are paying the price… with increased phishing and spam.
|
||||||
|
|
||||||
|
Our take is that any company can be hacked, but it is the response that matters. How quick is the response, how transparent are the details, how forthright are the acknowledgments? Okta’s initial announcement about the October breach (remember the [HAR file](https://goauthentik.io/blog/2023-10-23-another-okta-breach) that contained a session token?) was less-than-timely, devoid of details, and titled with one of the worst titles ever given such a serious announcement.
|
||||||
|
|
||||||
|
![screenshot of the timeline that Okta published](./okta-timeline.png)
|
||||||
|
|
||||||
|
<!--truncate-->
|
||||||
|
|
||||||
|
## Looking back at October’s breach
|
||||||
|
|
||||||
|
With the original incident, probably what most people now recall is not only the technical details of the session tokens that were exposed in HAR files, but also the very slow response time. Turns out 1Password reported the breach to Okta on September 29, and [BeyondTrust](https://www.beyondtrust.com/blog/entry/okta-support-unit-breach) reported the breach to Okta on October 2. But Okta waited three weeks before announcing the breach on October 20th.
|
||||||
|
|
||||||
|
In this October 20th announcement, Okta CISO David Bradbury stated that the malicious actor had gained access to Okta’s Support dashboard and retrieved only names and emails addresses for a very small number of customers. He explained that the hacker used session tokens that were not scrubbed from a HAR file (which Okta support routinely asks their customers to submit, for troubleshooting purposes) to gain access to specific customer’s accounts. But what wasn’t revealed at the time (because Okta themselves did not yet know) was _how_ the hacker obtained access to the Customer Support dashboard to access customer accounts and then download associated HAR files.
|
||||||
|
|
||||||
|
### The second **Okta shoe fell in early November**
|
||||||
|
|
||||||
|
As mentioned above, the new information revealed by Okta came from their security team retracing the steps of the original malicious actor. Okta’s research and analysis was greatly aided by the fact that [BeyondTrust shared a suspicious IP address with Okta](https://www.beyondtrust.com/blog/entry/okta-support-unit-breach-update); the IP address that BeyondTrust believed to be the hacker’s.
|
||||||
|
|
||||||
|
**Initial access gained via a service account**
|
||||||
|
|
||||||
|
This new finding, based on retracing the steps of that IP address, show that the initial breach occurred when the hacker obtained the credentials for a service account "stored in the system", which provided access to the Customer Support dashboard and had permissions to view and update customer support cases. The hacker then reviewed customer support cases, downloaded the associated HAR files, and retrieved the session tokens.
|
||||||
|
|
||||||
|
From the [November 3rd announcement](https://sec.okta.com/articles/2023/11/unauthorized-access-oktas-support-case-management-system-root-cause), we now know that the service account credentials were exposed through an Okta employee’s personal Google account, which the employee had accessed on the Okta-issued work laptop.
|
||||||
|
|
||||||
|
In announcing the service account’s role in the breach, Okta’s CISO stated:
|
||||||
|
|
||||||
|
> "During our investigation into suspicious use of this account, Okta Security identified that an employee had signed-in to their personal Google profile on the Chrome browser of their Okta-managed laptop. The username and password of the service account had been saved into the employee’s personal Google account."
|
||||||
|
|
||||||
|
The use of the service account was discovered on October 16, by examining the activities of the IP address of the hacker that BeyondTrust had supplied Okta. This begs the question of why Okta did not revel the malicious use of the service account in their October 20th announcement. Perhaps they did not yet want to show details of their internal investigation?
|
||||||
|
|
||||||
|
### And a third shoe in late November
|
||||||
|
|
||||||
|
Now fast-forward to Okta’s [November 29th announcement](https://sec.okta.com/harfiles). Back in October, it was known that after the hacker accessed Okta’s Support dashboard they ran queries on the support database to create reports containing customer data. In the November 3rd announcement Okta shared that the report was thought to be quite small is scope; this is the infamous "less than 1% of Okta customers" statement.
|
||||||
|
|
||||||
|
But after more internal investigation and recreating the reports that the malicious actor ran, Okta announced on November 29th that their original statement that less than 1% of their users were impacted by the October breach was incorrect. Instead, Okta revealed that the scope of the report was much larger, and indeed concluded that "[the report contained a list of all customer support system users](https://sec.okta.com/harfiles)". A total of 18,400 users. The only customers that were not impacted are those in FedRAMP and DoD IL4 environments, who are on a separate support platform.
|
||||||
|
|
||||||
|
> An aside, perhaps, but the timing of Okta’s update is interesting; the announcement was released on the same date as the quarterly earnings report. This could be seen as transparency, or it could be seen as damage control. (Also, why in the heck is Nov 29th within Okta’s 3rd quarter of **fiscal year 2024**? But we aren’t writing here about Okta’s financial schedules; I digress.)
|
||||||
|
|
||||||
|
**Filters removed from report**
|
||||||
|
|
||||||
|
Apparently when the hacker ran queries to gather customer data, they used a standard template available from the dashboard. However, they removed all filters on the templated report, thus grabbing much more data then the original template would have returned.
|
||||||
|
|
||||||
|
In addition to removing all filters on the report, it seems that Okta’s original analysis of the logs pertaining to the breach failed to take in to account exactly HOW the hacker accessed and downloaded data:
|
||||||
|
|
||||||
|
> "For a period of 14 days, while actively investigating, Okta did not identify suspicious downloads in our logs. When a user opens and views files attached to a support case, a specific log event type and ID is generated tied to that file. If a user instead navigates directly to the Files tab in the customer support system, as the threat actor did in this attack, they will instead generate an **entirely different log event** with a different record ID."
|
||||||
|
|
||||||
|
## Now what?
|
||||||
|
|
||||||
|
The third shoe has dropped, but it feels like there might still be a fourth. Maybe even more data was stolen, beyond just email addresses. Perhaps the malicious actor gained more sensitive customer data when they were able to log into specific customer’s accounts, but are sitting on it waiting to use it. Perhaps the explorations by the hacker form within the customer support system reveled other weaknesses that have yet to be exploited.
|
||||||
|
|
||||||
|
So while we are all waiting with baited breath to see if Okta can squeeze even more drama into 2023, here are a few tips to consider:
|
||||||
|
|
||||||
|
- If you are an Okta customer, do indeed follow each and every one of their recommendations, listed under the "**Implementing recommended best practices**" section of their [November 29th announcement](https://sec.okta.com/harfiles).
|
||||||
|
- Be aware of Okta’s plan for a 90-day pause on new features. During the [earning report call](https://seekingalpha.com/article/4655057-okta-inc-okta-q3-2024-earnings-call-transcript) on November 29th CEO Todd McKinnon stated "During this hyper-focused phase, no other project or even product development area is more important. In fact, the launch dates for the new products and features that we highlighted at Oktane last month will be pushed out approximately 90 days."
|
||||||
|
- As Okta advises, be on the lookout for more phishing attempts and stay hyper-vigilant.
|
||||||
|
- In general, across the board, be vigilant and adopt a "[security mindset](https://goauthentik.io/blog/2023-11-30-automated-security-versus-the-security-mindset)" (as valuable and maybe more than any technology).
|
||||||
|
- Consider breaking out of vendor lock-in and using an on-premise, open core solution such as [authentik](https://goauthentik.io/). We realize change is hard, but continual breaches and uncertainty around when a breach has been fully contained is also painful.
|
||||||
|
|
||||||
|
We’d be happy to talk with you more about your security and identity management needs; reach out to us with an email to [hello@goauthentik.io](mailto:hello@goauthentik.io) or on [Discord](https://discord.com/channels/809154715984199690/809154716507963434).
|
Binary file not shown.
After Width: | Height: | Size: 95 KiB |
|
@ -64,9 +64,17 @@ kubernetes_image_pull_secrets: []
|
||||||
# (Available with 2022.11.0+)
|
# (Available with 2022.11.0+)
|
||||||
# Applies to: proxy outposts
|
# Applies to: proxy outposts
|
||||||
kubernetes_ingress_class_name: null
|
kubernetes_ingress_class_name: null
|
||||||
# Optionally apply an RFC 6902 compliant patch to the Kubernetes objects. This value expects
|
# Optionally apply an RFC 6902 compliant patch to the Kubernetes objects.
|
||||||
# a mapping of a key which can be any of the values from `kubernetes_disabled_components`,
|
# For an understanding of how this works, refer to the link below:
|
||||||
# which configures which component the patches are applied to. For example:
|
# https://github.com/kubernetes-sigs/kustomize/blob/master/examples/jsonpatch.md
|
||||||
|
#
|
||||||
|
# This value expects a mapping where the key represents
|
||||||
|
# the Kubernetes component that shall be patched.
|
||||||
|
# It can be any of the same values supported by `kubernetes_disabled_components`.
|
||||||
|
#
|
||||||
|
# For example use this patch to add custom resource requests and limits
|
||||||
|
# to the outpost deployment:
|
||||||
|
#
|
||||||
# deployment:
|
# deployment:
|
||||||
# - op: add
|
# - op: add
|
||||||
# path: "/spec/template/spec/containers/0/resources"
|
# path: "/spec/template/spec/containers/0/resources"
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
# 2023-06 Cure53 Code audit
|
# 2023-06 Cure53 Code audit
|
||||||
|
|
||||||
In May/June of 2023, we've had a Pen-test conducted by [Cure53](https://cure53.de). The following security updates, 2023.4.2 and 2023.5.3 were released as a response to the found issues.
|
In May/June of 2023, we've had a Pentest conducted by [Cure53](https://cure53.de). The following security updates, 2023.4.2 and 2023.5.3 were released as a response to the found issues.
|
||||||
|
|
||||||
From the complete report, these are the points we're addressing with this update:
|
From the [complete report](https://cure53.de/pentest-report_authentik.pdf), these are the points we're addressing with this update:
|
||||||
|
|
||||||
### ATH-01-001: Path traversal on blueprints allows arbitrary file-read (Medium)
|
### ATH-01-001: Path traversal on blueprints allows arbitrary file-read (Medium)
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
"@docusaurus/module-type-aliases": "3.0.1",
|
"@docusaurus/module-type-aliases": "3.0.1",
|
||||||
"@docusaurus/tsconfig": "3.0.1",
|
"@docusaurus/tsconfig": "3.0.1",
|
||||||
"@docusaurus/types": "3.0.1",
|
"@docusaurus/types": "3.0.1",
|
||||||
"@types/react": "^18.2.43",
|
"@types/react": "^18.2.45",
|
||||||
"prettier": "3.1.1",
|
"prettier": "3.1.1",
|
||||||
"typescript": "~5.3.3"
|
"typescript": "~5.3.3"
|
||||||
},
|
},
|
||||||
|
@ -4373,9 +4373,9 @@
|
||||||
"integrity": "sha512-+0autS93xyXizIYiyL02FCY8N+KkKPhILhcUSA276HxzreZ16kl+cmwvV2qAM/PuCCwPXzOXOWhiPcw20uSFcA=="
|
"integrity": "sha512-+0autS93xyXizIYiyL02FCY8N+KkKPhILhcUSA276HxzreZ16kl+cmwvV2qAM/PuCCwPXzOXOWhiPcw20uSFcA=="
|
||||||
},
|
},
|
||||||
"node_modules/@types/react": {
|
"node_modules/@types/react": {
|
||||||
"version": "18.2.43",
|
"version": "18.2.45",
|
||||||
"resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.43.tgz",
|
"resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.45.tgz",
|
||||||
"integrity": "sha512-nvOV01ZdBdd/KW6FahSbcNplt2jCJfyWdTos61RYHV+FVv5L/g9AOX1bmbVcWcLFL8+KHQfh1zVIQrud6ihyQA==",
|
"integrity": "sha512-TtAxCNrlrBp8GoeEp1npd5g+d/OejJHFxS3OWmrPBMFaVQMSN0OFySozJio5BHxTuTeug00AVXVAjfDSfk+lUg==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/prop-types": "*",
|
"@types/prop-types": "*",
|
||||||
"@types/scheduler": "*",
|
"@types/scheduler": "*",
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
"@docusaurus/module-type-aliases": "3.0.1",
|
"@docusaurus/module-type-aliases": "3.0.1",
|
||||||
"@docusaurus/tsconfig": "3.0.1",
|
"@docusaurus/tsconfig": "3.0.1",
|
||||||
"@docusaurus/types": "3.0.1",
|
"@docusaurus/types": "3.0.1",
|
||||||
"@types/react": "^18.2.43",
|
"@types/react": "^18.2.45",
|
||||||
"prettier": "3.1.1",
|
"prettier": "3.1.1",
|
||||||
"typescript": "~5.3.3"
|
"typescript": "~5.3.3"
|
||||||
},
|
},
|
||||||
|
|
Reference in New Issue