Compare commits
40
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5ceb78db72 | ||
|
|
86e347a6eb | ||
|
|
e1669e3685 | ||
|
|
7961cc5a5d | ||
|
|
be54152697 | ||
|
|
4569c221c1 | ||
|
|
f8cd97ebfb | ||
|
|
a445660fa6 | ||
|
|
a6f130bcc3 | ||
|
|
dc057d465b | ||
|
|
941b6bc9c0 | ||
|
|
ca5ce170d7 | ||
|
|
cd61e91eb8 | ||
|
|
b9e1016592 | ||
|
|
5734217bc4 | ||
|
|
bbd324fb19 | ||
|
|
f1341f57c0 | ||
|
|
2db2805965 | ||
|
|
d11d12a63f | ||
|
|
2c34d5995e | ||
|
|
b8e3227386 | ||
|
|
88bd5bcf5a | ||
|
|
c684d7d665 | ||
|
|
f8dde2e253 | ||
|
|
b70cff61be | ||
|
|
4b4c69a17e | ||
|
|
a9265211af | ||
|
|
f729a9318f | ||
|
|
6d5e0905b1 | ||
|
|
1a5f8c0ed1 | ||
|
|
e9bd9f29dd | ||
|
|
2957bf0c9a | ||
|
|
2e44ef9450 | ||
|
|
22a1a95dc2 | ||
|
|
29732d18af | ||
|
|
2c34e7480c | ||
|
|
7c8e63fefa | ||
|
|
3bac23f005 | ||
|
|
80a1953816 | ||
|
|
363cea56f6 |
No files matched your search
@@ -69,7 +69,7 @@ runs:
|
||||
rustflags: ""
|
||||
- name: Setup rust dependencies
|
||||
if: ${{ contains(inputs.dependencies, 'rust') }}
|
||||
uses: taiki-e/install-action@68a389c788b2cd04016ce8c80ee23b80d2ab3d68 # v2
|
||||
uses: taiki-e/install-action@1919c4a95903d2c33e4a221102edca87309fc14b # v2
|
||||
with:
|
||||
tool: cargo-deny cargo-machete cargo-llvm-cov nextest
|
||||
- name: Setup pnpm
|
||||
|
||||
@@ -21,16 +21,24 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
language: ["go", "javascript", "python"]
|
||||
language:
|
||||
- lang: "go"
|
||||
deps: "system,go,runtime"
|
||||
- lang: "javascript"
|
||||
deps: "system,node,runtime"
|
||||
- lang: "python"
|
||||
deps: "system,python,rust,runtime"
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v5
|
||||
- name: Setup authentik env
|
||||
uses: ./.github/actions/setup
|
||||
with:
|
||||
dependencies: ${{ matrix.language.deps }}
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
languages: ${{ matrix.language.lang }}
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
|
||||
- name: Perform CodeQL Analysis
|
||||
|
||||
@@ -4,7 +4,10 @@ from django.db.models import QuerySet
|
||||
from django.http import HttpRequest
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
from django_filters import FilterSet, ModelChoiceFilter
|
||||
from drf_spectacular.utils import extend_schema_field
|
||||
from guardian.shortcuts import get_objects_for_user
|
||||
from rest_framework.exceptions import ValidationError
|
||||
from rest_framework.fields import ReadOnlyField
|
||||
from rest_framework.viewsets import ModelViewSet
|
||||
|
||||
from authentik.blueprints.v1.importer import SERIALIZER_CONTEXT_BLUEPRINT
|
||||
@@ -22,6 +25,9 @@ from authentik.lib.utils.reflection import ConditionalInheritance
|
||||
class ApplicationEntitlementSerializer(AttributesMixinSerializer, ModelSerializer):
|
||||
"""ApplicationEntitlement Serializer"""
|
||||
|
||||
app_name = ReadOnlyField(source="app.name")
|
||||
app_slug = ReadOnlyField(source="app.slug")
|
||||
|
||||
def validate_app(self, app: Application) -> Application:
|
||||
"""Ensure user has permission to view"""
|
||||
request: HttpRequest = self.context.get("request")
|
||||
@@ -40,6 +46,8 @@ class ApplicationEntitlementSerializer(AttributesMixinSerializer, ModelSerialize
|
||||
"pbm_uuid",
|
||||
"name",
|
||||
"app",
|
||||
"app_name",
|
||||
"app_slug",
|
||||
"attributes",
|
||||
]
|
||||
|
||||
@@ -50,15 +58,26 @@ class ApplicationEntitlementFilter(FilterSet):
|
||||
for_user = ModelChoiceFilter(
|
||||
queryset=User.objects.all(),
|
||||
method="filter_for_user",
|
||||
label=_(
|
||||
"Entitlements assigned to this user, directly or through a group, "
|
||||
"regardless of the user's access to the application."
|
||||
),
|
||||
)
|
||||
|
||||
@extend_schema_field(
|
||||
{
|
||||
"type": "integer",
|
||||
"description": _(
|
||||
"Entitlements assigned to this user, directly or through a group, "
|
||||
"regardless of the user's access to the application."
|
||||
),
|
||||
}
|
||||
)
|
||||
def filter_for_user(
|
||||
self, queryset: QuerySet[ApplicationEntitlement], name, value: User
|
||||
) -> QuerySet[ApplicationEntitlement]:
|
||||
if (
|
||||
not get_objects_for_user(self.request.user, "authentik_core.view_user_applications")
|
||||
.filter(pk=value.pk)
|
||||
.exists()
|
||||
):
|
||||
raise ValidationError({"for_user": "User not found"})
|
||||
return queryset.filter(pk__in=value.all_app_entitlements().values("pk"))
|
||||
|
||||
class Meta:
|
||||
@@ -80,7 +99,7 @@ class ApplicationEntitlementViewSet(
|
||||
):
|
||||
"""ApplicationEntitlement Viewset"""
|
||||
|
||||
queryset = ApplicationEntitlement.objects.all()
|
||||
queryset = ApplicationEntitlement.objects.select_related("app").all()
|
||||
serializer_class = ApplicationEntitlementSerializer
|
||||
search_fields = [
|
||||
"pbm_uuid",
|
||||
@@ -90,4 +109,5 @@ class ApplicationEntitlementViewSet(
|
||||
"attributes",
|
||||
]
|
||||
filterset_class = ApplicationEntitlementFilter
|
||||
ordering = ["name"]
|
||||
ordering = ["app__name", "name"]
|
||||
ordering_fields = ["name", "app__name"]
|
||||
@@ -503,7 +503,7 @@ class User(SerializerModel, AttributesMixin, AbstractUser):
|
||||
def app_entitlements(self, app: Application | None) -> QuerySet[ApplicationEntitlement]:
|
||||
"""Get all entitlements this user has for `app`."""
|
||||
if not app:
|
||||
return []
|
||||
return ApplicationEntitlement.objects.none()
|
||||
return self.all_app_entitlements().filter(app=app)
|
||||
|
||||
def all_app_entitlements(self) -> QuerySet[ApplicationEntitlement]:
|
||||
|
||||
@@ -135,6 +135,112 @@ class TestApplicationEntitlements(APITestCase):
|
||||
{"non_field_errors": ["One of 'group', 'user' must be set."]},
|
||||
)
|
||||
|
||||
def test_api_for_user(self):
|
||||
"""Test listing all entitlements a user has via for_user"""
|
||||
other_app = Application.objects.create(name=generate_id(), slug=generate_id())
|
||||
ent_direct = ApplicationEntitlement.objects.create(app=self.app, name=generate_id())
|
||||
PolicyBinding.objects.create(target=ent_direct, user=self.user, order=0)
|
||||
group = Group.objects.create(name=generate_id())
|
||||
self.user.groups.add(group)
|
||||
ent_group = ApplicationEntitlement.objects.create(app=other_app, name=generate_id())
|
||||
PolicyBinding.objects.create(target=ent_group, group=group, order=0)
|
||||
# Entitlement the user does not have
|
||||
ApplicationEntitlement.objects.create(app=self.app, name=generate_id())
|
||||
self.client.force_login(create_test_admin_user())
|
||||
res = self.client.get(
|
||||
reverse("authentik_api:applicationentitlement-list"),
|
||||
{"for_user": self.user.pk},
|
||||
)
|
||||
self.assertEqual(res.status_code, 200)
|
||||
body = res.json()
|
||||
self.assertEqual(body["pagination"]["count"], 2)
|
||||
self.assertCountEqual(
|
||||
[ent["name"] for ent in body["results"]],
|
||||
[ent_direct.name, ent_group.name],
|
||||
)
|
||||
self.assertCountEqual(
|
||||
[ent["app_name"] for ent in body["results"]],
|
||||
[self.app.name, other_app.name],
|
||||
)
|
||||
|
||||
def test_api_for_user_ordering(self):
|
||||
"""Test that for_user results can be ordered by application name"""
|
||||
app_a = Application.objects.create(name=f"aaa-{generate_id()}", slug=generate_id())
|
||||
app_b = Application.objects.create(name=f"bbb-{generate_id()}", slug=generate_id())
|
||||
ent_a = ApplicationEntitlement.objects.create(app=app_a, name=generate_id())
|
||||
ent_b = ApplicationEntitlement.objects.create(app=app_b, name=generate_id())
|
||||
PolicyBinding.objects.create(target=ent_a, user=self.user, order=0)
|
||||
PolicyBinding.objects.create(target=ent_b, user=self.user, order=0)
|
||||
self.client.force_login(create_test_admin_user())
|
||||
for ordering, expected in [
|
||||
("app__name", [ent_a.name, ent_b.name]),
|
||||
("-app__name", [ent_b.name, ent_a.name]),
|
||||
]:
|
||||
with self.subTest(ordering=ordering):
|
||||
res = self.client.get(
|
||||
reverse("authentik_api:applicationentitlement-list"),
|
||||
{"for_user": self.user.pk, "ordering": ordering, "search": ""},
|
||||
)
|
||||
self.assertEqual(res.status_code, 200)
|
||||
self.assertEqual(
|
||||
[ent["name"] for ent in res.json()["results"]],
|
||||
expected,
|
||||
)
|
||||
|
||||
def test_api_for_user_deduplicated(self):
|
||||
"""Test that an entitlement matched by multiple bindings is only returned once"""
|
||||
ent = ApplicationEntitlement.objects.create(app=self.app, name=generate_id())
|
||||
PolicyBinding.objects.create(target=ent, user=self.user, order=0)
|
||||
group = Group.objects.create(name=generate_id())
|
||||
self.user.groups.add(group)
|
||||
PolicyBinding.objects.create(target=ent, group=group, order=1)
|
||||
self.client.force_login(create_test_admin_user())
|
||||
res = self.client.get(
|
||||
reverse("authentik_api:applicationentitlement-list"),
|
||||
{"for_user": self.user.pk},
|
||||
)
|
||||
self.assertEqual(res.status_code, 200)
|
||||
self.assertEqual(res.json()["pagination"]["count"], 1)
|
||||
|
||||
def test_api_for_user_with_permission(self):
|
||||
"""Test for_user with explicitly granted permissions (non-superuser)"""
|
||||
ent = ApplicationEntitlement.objects.create(app=self.app, name=generate_id())
|
||||
PolicyBinding.objects.create(target=ent, user=self.user, order=0)
|
||||
self.other_user.assign_perms_to_managed_role("authentik_core.view_applicationentitlement")
|
||||
self.other_user.assign_perms_to_managed_role("authentik_core.view_user_applications")
|
||||
self.client.force_login(self.other_user)
|
||||
res = self.client.get(
|
||||
reverse("authentik_api:applicationentitlement-list"),
|
||||
{"for_user": self.user.pk},
|
||||
)
|
||||
self.assertEqual(res.status_code, 200)
|
||||
body = res.json()
|
||||
self.assertEqual(body["pagination"]["count"], 1)
|
||||
self.assertEqual(body["results"][0]["name"], ent.name)
|
||||
|
||||
def test_api_for_user_denied(self):
|
||||
"""Test that for_user requires view_user_applications on the target user"""
|
||||
ent = ApplicationEntitlement.objects.create(app=self.app, name=generate_id())
|
||||
PolicyBinding.objects.create(target=ent, user=self.user, order=0)
|
||||
self.other_user.assign_perms_to_managed_role("authentik_core.view_applicationentitlement")
|
||||
self.client.force_login(self.other_user)
|
||||
res = self.client.get(
|
||||
reverse("authentik_api:applicationentitlement-list"),
|
||||
{"for_user": self.user.pk},
|
||||
)
|
||||
self.assertEqual(res.status_code, 400)
|
||||
self.assertJSONEqual(res.content, {"for_user": "User not found"})
|
||||
|
||||
def test_api_for_user_invalid(self):
|
||||
"""Test for_user with a non-numerical value"""
|
||||
self.client.force_login(create_test_admin_user())
|
||||
res = self.client.get(
|
||||
reverse("authentik_api:applicationentitlement-list"),
|
||||
{"for_user": "foo"},
|
||||
)
|
||||
self.assertEqual(res.status_code, 400)
|
||||
self.assertIn("for_user", res.json())
|
||||
|
||||
def test_api_bindings_group(self):
|
||||
"""Test that API doesn't allow policies to be bound to this"""
|
||||
ent = ApplicationEntitlement.objects.create(app=self.app, name=generate_id())
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
"""WS-Federation Provider API tests"""
|
||||
|
||||
from unittest import skipIf
|
||||
|
||||
from cryptography.hazmat.backends.openssl.backend import backend
|
||||
from django.urls import reverse
|
||||
from rest_framework.test import APITestCase
|
||||
|
||||
@@ -15,6 +18,7 @@ class TestWSFederationProviderAPI(APITestCase):
|
||||
super().setUp()
|
||||
self.client.force_login(create_test_admin_user())
|
||||
|
||||
@skipIf(backend._fips_enabled, "The FIPS provider has no Ed25519")
|
||||
def test_create_validate_unsupported_key_type(self):
|
||||
"""Test validation rejects key types without an XML-DSIG transform (Ed25519)"""
|
||||
ed25519_cert = create_test_cert(PrivateKeyAlg.ED25519)
|
||||
|
||||
+43
-33
@@ -29,8 +29,8 @@ from authentik.flows.challenge import (
|
||||
WithUserInfoChallenge,
|
||||
)
|
||||
from authentik.flows.exceptions import StageInvalidException
|
||||
from authentik.flows.models import InvalidResponseAction
|
||||
from authentik.flows.planner import PLAN_CONTEXT_APPLICATION, PLAN_CONTEXT_PENDING_USER
|
||||
from authentik.flows.models import Flow, InvalidResponseAction
|
||||
from authentik.flows.planner import PLAN_CONTEXT_APPLICATION, PLAN_CONTEXT_PENDING_USER, FlowPlan
|
||||
from authentik.lib.avatars import DEFAULT_AVATAR, get_avatar
|
||||
from authentik.lib.tracing import active_tracer
|
||||
from authentik.lib.utils.reflection import class_to_path
|
||||
@@ -44,6 +44,43 @@ HIST_FLOWS_STAGE_TIME = Histogram(
|
||||
"Duration taken by different parts of stages",
|
||||
["stage_type", "method"],
|
||||
)
|
||||
LOGGER = get_logger()
|
||||
|
||||
|
||||
def _get_pending_user(plan: FlowPlan | None, request: HttpRequest, for_display=False) -> User:
|
||||
"""Either show the matched User object or show what the user entered,
|
||||
based on what the earlier stage (mostly IdentificationStage) set.
|
||||
_USER_IDENTIFIER overrides the first User, as PENDING_USER is used for
|
||||
other things besides the form display.
|
||||
|
||||
If no user is pending, returns request.user"""
|
||||
if not plan:
|
||||
return request.user
|
||||
if PLAN_CONTEXT_PENDING_USER_IDENTIFIER in plan.context and for_display:
|
||||
return User(
|
||||
username=plan.context.get(PLAN_CONTEXT_PENDING_USER_IDENTIFIER),
|
||||
email="",
|
||||
)
|
||||
if PLAN_CONTEXT_PENDING_USER in plan.context:
|
||||
return plan.context[PLAN_CONTEXT_PENDING_USER]
|
||||
return request.user
|
||||
|
||||
|
||||
def format_flow_title(plan: FlowPlan | None, flow: Flow, request: HttpRequest) -> str:
|
||||
"""Allow usage of placeholder in flow title."""
|
||||
data = {
|
||||
"app": "",
|
||||
"user": "",
|
||||
}
|
||||
if plan:
|
||||
data["app"] = plan.context.get(PLAN_CONTEXT_APPLICATION, "")
|
||||
data["user"] = _get_pending_user(plan, request, for_display=True)
|
||||
try:
|
||||
return flow.title % data
|
||||
|
||||
except Exception as exc: # noqa
|
||||
LOGGER.warning("failed to template title", exc=exc)
|
||||
return flow.title
|
||||
|
||||
|
||||
class StageView(View):
|
||||
@@ -65,22 +102,7 @@ class StageView(View):
|
||||
super().__init__(**kwargs)
|
||||
|
||||
def get_pending_user(self, for_display=False) -> User:
|
||||
"""Either show the matched User object or show what the user entered,
|
||||
based on what the earlier stage (mostly IdentificationStage) set.
|
||||
_USER_IDENTIFIER overrides the first User, as PENDING_USER is used for
|
||||
other things besides the form display.
|
||||
|
||||
If no user is pending, returns request.user"""
|
||||
if not self.executor.plan:
|
||||
return self.request.user
|
||||
if PLAN_CONTEXT_PENDING_USER_IDENTIFIER in self.executor.plan.context and for_display:
|
||||
return User(
|
||||
username=self.executor.plan.context.get(PLAN_CONTEXT_PENDING_USER_IDENTIFIER),
|
||||
email="",
|
||||
)
|
||||
if PLAN_CONTEXT_PENDING_USER in self.executor.plan.context:
|
||||
return self.executor.plan.context[PLAN_CONTEXT_PENDING_USER]
|
||||
return self.request.user
|
||||
return _get_pending_user(self.executor.plan, self.request, for_display=for_display)
|
||||
|
||||
def cleanup(self):
|
||||
"""Cleanup session"""
|
||||
@@ -154,20 +176,6 @@ class ChallengeStageView(StageView):
|
||||
):
|
||||
return self.challenge_valid(challenge)
|
||||
|
||||
def format_title(self) -> str:
|
||||
"""Allow usage of placeholder in flow title."""
|
||||
if not self.executor.plan:
|
||||
return self.executor.flow.title
|
||||
try:
|
||||
return self.executor.flow.title % {
|
||||
"app": self.executor.plan.context.get(PLAN_CONTEXT_APPLICATION, ""),
|
||||
"user": self.get_pending_user(for_display=True),
|
||||
}
|
||||
|
||||
except Exception as exc: # noqa
|
||||
self.logger.warning("failed to template title", exc=exc)
|
||||
return self.executor.flow.title
|
||||
|
||||
@property
|
||||
def cancel_url(self) -> str:
|
||||
from authentik.flows.views.executor import NEXT_ARG_NAME, SESSION_KEY_GET
|
||||
@@ -203,7 +211,9 @@ class ChallengeStageView(StageView):
|
||||
# refreshes must mint fresh URLs instead of reusing cached ones.
|
||||
flow_info = ContextualFlowInfo(
|
||||
data={
|
||||
"title": self.format_title(),
|
||||
"title": format_flow_title(
|
||||
self.executor.plan, self.executor.flow, self.request
|
||||
),
|
||||
"background": self.executor.flow.background_url(use_cache=False),
|
||||
"background_themed_urls": self.executor.flow.background_themed_urls(
|
||||
use_cache=False,
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
{% include "base/header_js.html" %}
|
||||
<meta name="ak-flow-layout" content="{{ flow.layout }}">
|
||||
<meta name="ak-flow-background" content="{{ flow.background }}">
|
||||
<meta name="ak-flow-title" content="{{ flow.title }}">
|
||||
<meta name="ak-flow-title" content="{{ flow_title }}">
|
||||
{% endblock %}
|
||||
|
||||
{% block interface_stylesheet %}
|
||||
|
||||
@@ -3,8 +3,12 @@
|
||||
from django.test import RequestFactory
|
||||
from django.urls import reverse
|
||||
|
||||
from authentik.core.models import Application
|
||||
from authentik.core.tests.utils import create_test_flow
|
||||
from authentik.flows.planner import PLAN_CONTEXT_APPLICATION, FlowPlan
|
||||
from authentik.flows.stage import PLAN_CONTEXT_PENDING_USER_IDENTIFIER
|
||||
from authentik.flows.tests import APIFlowTestCase
|
||||
from authentik.flows.views.executor import SESSION_KEY_PLAN
|
||||
from authentik.flows.views.interface import FlowInterfaceView
|
||||
|
||||
|
||||
@@ -121,6 +125,52 @@ class TestFlowInterfaceTitle(APIFlowTestCase):
|
||||
)
|
||||
self.assertContains(response, '<meta name="ak-flow-title" content="100% secure">')
|
||||
|
||||
def test_title_plan_context(self):
|
||||
"""Placeholders are filled from the plan in the session"""
|
||||
flow = create_test_flow()
|
||||
flow.title = "Sign in to %(app)s as %(user)s"
|
||||
flow.save()
|
||||
plan = FlowPlan(flow_pk=flow.pk.hex)
|
||||
plan.context[PLAN_CONTEXT_APPLICATION] = Application(name="Grafana")
|
||||
plan.context[PLAN_CONTEXT_PENDING_USER_IDENTIFIER] = "jdoe"
|
||||
session = self.client.session
|
||||
session[SESSION_KEY_PLAN] = plan
|
||||
session.save()
|
||||
response = self.client.get(
|
||||
reverse("authentik_core:if-flow", kwargs={"flow_slug": flow.slug})
|
||||
)
|
||||
self.assertContains(
|
||||
response, '<meta name="ak-flow-title" content="Sign in to Grafana as jdoe">'
|
||||
)
|
||||
|
||||
def test_title_plan_other_flow(self):
|
||||
"""A plan for a different flow still fills placeholders"""
|
||||
flow = create_test_flow()
|
||||
flow.title = "Sign in to %(app)s"
|
||||
flow.save()
|
||||
plan = FlowPlan(flow_pk=create_test_flow().pk.hex)
|
||||
plan.context[PLAN_CONTEXT_APPLICATION] = Application(name="Grafana")
|
||||
session = self.client.session
|
||||
session[SESSION_KEY_PLAN] = plan
|
||||
session.save()
|
||||
response = self.client.get(
|
||||
reverse("authentik_core:if-flow", kwargs={"flow_slug": flow.slug})
|
||||
)
|
||||
self.assertContains(response, '<meta name="ak-flow-title" content="Sign in to Grafana">')
|
||||
|
||||
def test_title_plan_invalid_placeholder(self):
|
||||
"""Unknown placeholders with a plan keep the original title"""
|
||||
flow = create_test_flow()
|
||||
flow.title = "Hello %(foo)s"
|
||||
flow.save()
|
||||
session = self.client.session
|
||||
session[SESSION_KEY_PLAN] = FlowPlan(flow_pk=flow.pk.hex)
|
||||
session.save()
|
||||
response = self.client.get(
|
||||
reverse("authentik_core:if-flow", kwargs={"flow_slug": flow.slug})
|
||||
)
|
||||
self.assertContains(response, '<meta name="ak-flow-title" content="Hello %(foo)s">')
|
||||
|
||||
|
||||
class TestFlowInterfaceBackground(APIFlowTestCase):
|
||||
"""Test the flow background on the interface page"""
|
||||
|
||||
@@ -8,6 +8,8 @@ from ua_parser.user_agent_parser import Parse
|
||||
|
||||
from authentik.core.views.interface import InterfaceView
|
||||
from authentik.flows.models import Flow
|
||||
from authentik.flows.stage import format_flow_title
|
||||
from authentik.flows.views.executor import SESSION_KEY_PLAN
|
||||
|
||||
# Oldest WebKit that can parse the default flow executor bundle. Earlier versions
|
||||
# fail to parse it and render an empty page, so they are sent to the simplified
|
||||
@@ -33,18 +35,25 @@ def version_below(version: dict[str, Any], minimum: tuple[int, int]) -> bool:
|
||||
class FlowInterfaceView(InterfaceView):
|
||||
"""Flow interface"""
|
||||
|
||||
def get_context_data(self, **kwargs: Any) -> dict[str, Any]:
|
||||
flow = get_object_or_404(Flow, slug=self.kwargs.get("flow_slug"))
|
||||
# Flow title formatted with a default dict, as we don't know the keys used
|
||||
def get_formatted_flow_title(self, flow: Flow) -> str:
|
||||
if "%(" not in flow.title:
|
||||
return flow.title
|
||||
if plan := self.request.session.get(SESSION_KEY_PLAN):
|
||||
return format_flow_title(plan, flow, self.request)
|
||||
# Fallback if we don't have a flow plan yet, format the title with an empty defaultdict
|
||||
# Only format titles with named placeholders, as a bare "% s" would
|
||||
# otherwise inline the dict's repr
|
||||
if "%(" in flow.title:
|
||||
try:
|
||||
flow.title = (flow.title % defaultdict(str)).strip()
|
||||
except TypeError, ValueError:
|
||||
# If title formatting is invalid, keep the original title unchanged.
|
||||
pass
|
||||
try:
|
||||
return (flow.title % defaultdict(str)).strip()
|
||||
except TypeError, ValueError:
|
||||
# If title formatting is invalid, keep the original title unchanged.
|
||||
pass
|
||||
return flow.title
|
||||
|
||||
def get_context_data(self, **kwargs: Any) -> dict[str, Any]:
|
||||
flow = get_object_or_404(Flow, slug=self.kwargs.get("flow_slug"))
|
||||
kwargs["flow"] = flow
|
||||
kwargs["flow_title"] = self.get_formatted_flow_title(flow)
|
||||
kwargs["flow_background_url"] = flow.background_url(self.request)
|
||||
kwargs["flow_background_themed_urls"] = flow.background_themed_urls(self.request)
|
||||
kwargs["inspector"] = "inspector" in self.request.GET
|
||||
|
||||
@@ -110,6 +110,7 @@ class TestSAMLProviderAPI(APITestCase):
|
||||
},
|
||||
)
|
||||
|
||||
@skipIf(backend._fips_enabled, "The FIPS provider has no Ed25519")
|
||||
def test_create_validate_unsupported_key_type_verification_encryption(self):
|
||||
"""Test validation rejects unsupported key types on the verification and encryption
|
||||
keypairs"""
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
"""FIPS mode tests"""
|
||||
|
||||
import hashlib
|
||||
from unittest import skipUnless
|
||||
|
||||
from cryptography.exceptions import InternalError, UnsupportedAlgorithm
|
||||
from cryptography.hazmat.backends.openssl.backend import backend
|
||||
from cryptography.hazmat.primitives import hashes, hmac
|
||||
from cryptography.hazmat.primitives.ciphers.aead import ChaCha20Poly1305
|
||||
from cryptography.hazmat.primitives.kdf.scrypt import Scrypt
|
||||
from django.test import SimpleTestCase
|
||||
|
||||
|
||||
@skipUnless(backend._fips_enabled, "FIPS mode is off")
|
||||
class TestFIPS(SimpleTestCase):
|
||||
"""FIPS mode refuses algorithms that no FIPS standard approves. Ed25519 and ML-DSA aren't
|
||||
checked: they're approved, the current FIPS provider just doesn't have them."""
|
||||
|
||||
def test_hashlib_md5(self):
|
||||
"""MD5 for security use"""
|
||||
with self.assertRaises(ValueError):
|
||||
hashlib.md5(b"") # nosec
|
||||
|
||||
def test_hashlib_new(self):
|
||||
"""hashlib.new() falls back to Python's builtin MD5, so these have no builtin"""
|
||||
for name in ("ripemd160", "sm3", "md5-sha1"):
|
||||
with self.subTest(name=name), self.assertRaises(ValueError):
|
||||
hashlib.new(name, b"")
|
||||
|
||||
def test_hashlib_pbkdf2_md5(self):
|
||||
"""PBKDF2 with MD5"""
|
||||
with self.assertRaises(ValueError):
|
||||
hashlib.pbkdf2_hmac("md5", b"", b"salt", 1)
|
||||
|
||||
def test_hashlib_scrypt(self):
|
||||
"""scrypt"""
|
||||
with self.assertRaises(ValueError):
|
||||
hashlib.scrypt(b"", salt=b"salt", n=2, r=1, p=1)
|
||||
|
||||
def test_cryptography_md5(self):
|
||||
"""MD5, which only fails once OpenSSL initializes the digest"""
|
||||
with self.assertRaises((InternalError, UnsupportedAlgorithm)):
|
||||
hashes.Hash(hashes.MD5()) # nosec
|
||||
|
||||
def test_cryptography_hmac_md5(self):
|
||||
"""HMAC with MD5"""
|
||||
with self.assertRaises(UnsupportedAlgorithm):
|
||||
hmac.HMAC(b"key", hashes.MD5()) # nosec
|
||||
|
||||
def test_cryptography_scrypt(self):
|
||||
"""scrypt"""
|
||||
with self.assertRaises(UnsupportedAlgorithm):
|
||||
Scrypt(salt=b"salt", length=32, n=2, r=1, p=1).derive(b"")
|
||||
|
||||
def test_cryptography_chacha20_poly1305(self):
|
||||
"""ChaCha20-Poly1305"""
|
||||
with self.assertRaises(UnsupportedAlgorithm):
|
||||
ChaCha20Poly1305(b"k" * 32).encrypt(b"n" * 12, b"", None)
|
||||
@@ -26,7 +26,7 @@ class Migration(migrations.Migration):
|
||||
("urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified", "Unspecified"),
|
||||
],
|
||||
default="urn:oasis:names:tc:SAML:2.0:nameid-format:persistent",
|
||||
help_text="NameID Policy sent to the IdP. Can be unset, in which case no Policy is sent.",
|
||||
help_text="Format of the NameID Policy sent to the IdP. Select Unspecified to let the IdP choose the format of the NameID it returns.",
|
||||
),
|
||||
),
|
||||
]
|
||||
@@ -126,7 +126,8 @@ class SAMLSource(Source):
|
||||
choices=SAMLNameIDPolicy.choices,
|
||||
default=SAMLNameIDPolicy.PERSISTENT,
|
||||
help_text=_(
|
||||
"NameID Policy sent to the IdP. Can be unset, in which case no Policy is sent."
|
||||
"Format of the NameID Policy sent to the IdP. Select Unspecified to let the IdP "
|
||||
"choose the format of the NameID it returns."
|
||||
),
|
||||
)
|
||||
binding_type = models.CharField(
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
"""SAML Source API tests"""
|
||||
|
||||
from unittest import skipIf
|
||||
|
||||
from cryptography.hazmat.backends.openssl.backend import backend
|
||||
from django.urls import reverse
|
||||
from rest_framework.test import APITestCase
|
||||
|
||||
@@ -15,6 +18,7 @@ class TestSAMLSourceAPI(APITestCase):
|
||||
super().setUp()
|
||||
self.client.force_login(create_test_admin_user())
|
||||
|
||||
@skipIf(backend._fips_enabled, "The FIPS provider has no Ed25519")
|
||||
def test_create_validate_unsupported_key_type(self):
|
||||
"""Test validation rejects key types without an XML-DSIG transform (Ed25519)"""
|
||||
ed25519_cert = create_test_cert(PrivateKeyAlg.ED25519)
|
||||
|
||||
@@ -13479,7 +13479,7 @@
|
||||
"urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified"
|
||||
],
|
||||
"title": "Name id policy",
|
||||
"description": "NameID Policy sent to the IdP. Can be unset, in which case no Policy is sent."
|
||||
"description": "Format of the NameID Policy sent to the IdP. Select Unspecified to let the IdP choose the format of the NameID it returns."
|
||||
},
|
||||
"binding_type": {
|
||||
"type": "string",
|
||||
|
||||
@@ -83,7 +83,7 @@ RUN --mount=type=bind,target=rust-toolchain.toml,src=rust-toolchain.toml \
|
||||
# Stage: Download uv
|
||||
FROM ghcr.io/astral-sh/uv:0.13.7@sha256:96f40d3904aad8d0bd010539001d36c8e2188b981e1334471a90c4a1d93bb490 AS uv
|
||||
# Stage: Base python image
|
||||
FROM ghcr.io/goauthentik/fips-python:3.14.10-slim-trixie-fips@sha256:9f2478ddb774b8d4b2c2d91fa4d5d0cfd0172726a7b2e2e06fc200d9b3090f35 AS python-base
|
||||
FROM ghcr.io/goauthentik/fips-python:3.14.10-p1-slim-trixie-fips@sha256:d4c46c4022b3545f4a2ad575b81a08d7effd9da44048d6018e393aee37508aaf AS python-base
|
||||
|
||||
ENV VENV_PATH="/ak-root/.venv" \
|
||||
PATH="/lifecycle:/ak-root/.venv/bin:$PATH" \
|
||||
|
||||
Generated
+2
-2
@@ -180,7 +180,7 @@ export interface CoreApplicationEntitlementsListRequest {
|
||||
* Entitlements assigned to this user, directly or through a group, regardless of the user's
|
||||
* access to the application.
|
||||
*/
|
||||
forUser?: string;
|
||||
forUser?: number;
|
||||
name?: string;
|
||||
/**
|
||||
* Which field to use when ordering the results.
|
||||
@@ -215,7 +215,7 @@ export interface CoreApplicationEntitlementsRequestableListRequest {
|
||||
* Entitlements assigned to this user, directly or through a group, regardless of the user's
|
||||
* access to the application.
|
||||
*/
|
||||
forUser?: string;
|
||||
forUser?: number;
|
||||
name?: string;
|
||||
/**
|
||||
* Which field to use when ordering the results.
|
||||
|
||||
+25
-1
@@ -20,6 +20,14 @@ export interface ApplicationEntitlement {
|
||||
readonly pbmUuid: string;
|
||||
name: string;
|
||||
app: string;
|
||||
/**
|
||||
* Application's display Name.
|
||||
*/
|
||||
readonly appName: string;
|
||||
/**
|
||||
* Internal application name, used in URLs.
|
||||
*/
|
||||
readonly appSlug: string;
|
||||
attributes?: { [key: string]: any };
|
||||
}
|
||||
|
||||
@@ -36,6 +44,20 @@ export function instanceOfApplicationEntitlement(value: object): value is Applic
|
||||
return false;
|
||||
if (!("name" in value) || value["name"] === undefined) return false;
|
||||
if (!("app" in value) || value["app"] === undefined) return false;
|
||||
if (
|
||||
(!("appName" in (value as Record<string, any>)) &&
|
||||
!("app_name" in (value as Record<string, any>))) ||
|
||||
((value as Record<string, any>)["appName"] === undefined &&
|
||||
(value as Record<string, any>)["app_name"] === undefined)
|
||||
)
|
||||
return false;
|
||||
if (
|
||||
(!("appSlug" in (value as Record<string, any>)) &&
|
||||
!("app_slug" in (value as Record<string, any>))) ||
|
||||
((value as Record<string, any>)["appSlug"] === undefined &&
|
||||
(value as Record<string, any>)["app_slug"] === undefined)
|
||||
)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -54,6 +76,8 @@ export function ApplicationEntitlementFromJSONTyped(
|
||||
pbmUuid: json["pbm_uuid"],
|
||||
name: json["name"],
|
||||
app: json["app"],
|
||||
appName: json["app_name"],
|
||||
appSlug: json["app_slug"],
|
||||
attributes: json["attributes"] == null ? undefined : json["attributes"],
|
||||
};
|
||||
}
|
||||
@@ -63,7 +87,7 @@ export function ApplicationEntitlementToJSON(json: any): ApplicationEntitlement
|
||||
}
|
||||
|
||||
export function ApplicationEntitlementToJSONTyped(
|
||||
value?: Omit<ApplicationEntitlement, "pbmUuid"> | null,
|
||||
value?: Omit<ApplicationEntitlement, "pbmUuid" | "appName" | "appSlug"> | null,
|
||||
ignoreDiscriminator: boolean = false,
|
||||
): any {
|
||||
if (value == null) {
|
||||
|
||||
+2
-1
@@ -105,7 +105,8 @@ export interface PatchedSAMLSourceRequest {
|
||||
*/
|
||||
forceAuthn?: boolean;
|
||||
/**
|
||||
* NameID Policy sent to the IdP. Can be unset, in which case no Policy is sent.
|
||||
* Format of the NameID Policy sent to the IdP. Select Unspecified to let the IdP choose the
|
||||
* format of the NameID it returns.
|
||||
*/
|
||||
nameIdPolicy?: SAMLNameIDPolicyEnum;
|
||||
bindingType?: BindingTypeEnum;
|
||||
|
||||
+2
-1
@@ -136,7 +136,8 @@ export interface SAMLSource {
|
||||
*/
|
||||
forceAuthn?: boolean;
|
||||
/**
|
||||
* NameID Policy sent to the IdP. Can be unset, in which case no Policy is sent.
|
||||
* Format of the NameID Policy sent to the IdP. Select Unspecified to let the IdP choose the
|
||||
* format of the NameID it returns.
|
||||
*/
|
||||
nameIdPolicy?: SAMLNameIDPolicyEnum;
|
||||
bindingType?: BindingTypeEnum;
|
||||
|
||||
+2
-1
@@ -105,7 +105,8 @@ export interface SAMLSourceRequest {
|
||||
*/
|
||||
forceAuthn?: boolean;
|
||||
/**
|
||||
* NameID Policy sent to the IdP. Can be unset, in which case no Policy is sent.
|
||||
* Format of the NameID Policy sent to the IdP. Select Unspecified to let the IdP choose the
|
||||
* format of the NameID it returns.
|
||||
*/
|
||||
nameIdPolicy?: SAMLNameIDPolicyEnum;
|
||||
bindingType?: BindingTypeEnum;
|
||||
|
||||
Generated
+601
-611
File diff suppressed because it is too large.
Load diff
+4
-4
@@ -8,7 +8,7 @@ dependencies = [
|
||||
"ak-guardian==3.2.0",
|
||||
"argon2-cffi==25.1.0",
|
||||
"bcrypt==5.0.0",
|
||||
"cachetools==7.2.7",
|
||||
"cachetools==7.2.8",
|
||||
"certifi==2026.10.23",
|
||||
"channels==4.3.2",
|
||||
"cryptography==50.0.2",
|
||||
@@ -26,7 +26,7 @@ dependencies = [
|
||||
"django-postgres-extra==3.0.1",
|
||||
"django-prometheus==2.5.0",
|
||||
"django-storages[s3]==1.14.6",
|
||||
"django==5.2.18",
|
||||
"django==5.2.19",
|
||||
"djangoql==0.19.1",
|
||||
"djangorestframework==3.18.3",
|
||||
"docker==7.2.0",
|
||||
@@ -61,7 +61,7 @@ dependencies = [
|
||||
"paramiko==5.0.1",
|
||||
"psycopg[c,pool]==3.3.6",
|
||||
"pydantic-scim==0.0.8",
|
||||
"pydantic==2.14.1",
|
||||
"pydantic==2.14.2",
|
||||
"pyjwt==2.15.1",
|
||||
"pyrad==2.6.0",
|
||||
"pyroscope-io==1.4.0",
|
||||
@@ -112,7 +112,7 @@ dev = [
|
||||
"pytest-github-actions-annotate-failures==0.4.2",
|
||||
"pytest-randomly==5.0.0",
|
||||
"pytest-timeout==2.4.0",
|
||||
"pytest==9.1.1",
|
||||
"pytest==9.2.0",
|
||||
"requests-mock==1.12.1",
|
||||
"ruff==0.17.3",
|
||||
"selenium==4.51.0",
|
||||
|
||||
+19
-9
@@ -2768,7 +2768,7 @@ paths:
|
||||
- in: query
|
||||
name: for_user
|
||||
schema:
|
||||
type: string
|
||||
type: integer
|
||||
description: Entitlements assigned to this user, directly or through a group,
|
||||
regardless of the user's access to the application.
|
||||
- $ref: '#/components/parameters/QueryName'
|
||||
@@ -2975,7 +2975,7 @@ paths:
|
||||
- in: query
|
||||
name: for_user
|
||||
schema:
|
||||
type: string
|
||||
type: integer
|
||||
description: Entitlements assigned to this user, directly or through a group,
|
||||
regardless of the user's access to the application.
|
||||
- $ref: '#/components/parameters/QueryName'
|
||||
@@ -26568,7 +26568,7 @@ paths:
|
||||
allOf:
|
||||
- $ref: '#/components/schemas/SAMLNameIDPolicyEnum'
|
||||
description: |+
|
||||
NameID Policy sent to the IdP. Can be unset, in which case no Policy is sent.
|
||||
Format of the NameID Policy sent to the IdP. Select Unspecified to let the IdP choose the format of the NameID it returns.
|
||||
|
||||
- $ref: '#/components/parameters/QueryPaginationOrdering'
|
||||
- $ref: '#/components/parameters/QueryPaginationPage'
|
||||
@@ -36585,11 +36585,21 @@ components:
|
||||
app:
|
||||
type: string
|
||||
format: uuid
|
||||
app_name:
|
||||
type: string
|
||||
description: Application's display Name.
|
||||
readOnly: true
|
||||
app_slug:
|
||||
type: string
|
||||
description: Internal application name, used in URLs.
|
||||
readOnly: true
|
||||
attributes:
|
||||
type: object
|
||||
additionalProperties: {}
|
||||
required:
|
||||
- app
|
||||
- app_name
|
||||
- app_slug
|
||||
- name
|
||||
- pbm_uuid
|
||||
ApplicationEntitlementRequest:
|
||||
@@ -53868,8 +53878,8 @@ components:
|
||||
name_id_policy:
|
||||
allOf:
|
||||
- $ref: '#/components/schemas/SAMLNameIDPolicyEnum'
|
||||
description: NameID Policy sent to the IdP. Can be unset, in which case
|
||||
no Policy is sent.
|
||||
description: Format of the NameID Policy sent to the IdP. Select Unspecified
|
||||
to let the IdP choose the format of the NameID it returns.
|
||||
binding_type:
|
||||
$ref: '#/components/schemas/BindingTypeEnum'
|
||||
verification_kp:
|
||||
@@ -58110,8 +58120,8 @@ components:
|
||||
name_id_policy:
|
||||
allOf:
|
||||
- $ref: '#/components/schemas/SAMLNameIDPolicyEnum'
|
||||
description: NameID Policy sent to the IdP. Can be unset, in which case
|
||||
no Policy is sent.
|
||||
description: Format of the NameID Policy sent to the IdP. Select Unspecified
|
||||
to let the IdP choose the format of the NameID it returns.
|
||||
binding_type:
|
||||
$ref: '#/components/schemas/BindingTypeEnum'
|
||||
verification_kp:
|
||||
@@ -58315,8 +58325,8 @@ components:
|
||||
name_id_policy:
|
||||
allOf:
|
||||
- $ref: '#/components/schemas/SAMLNameIDPolicyEnum'
|
||||
description: NameID Policy sent to the IdP. Can be unset, in which case
|
||||
no Policy is sent.
|
||||
description: Format of the NameID Policy sent to the IdP. Select Unspecified
|
||||
to let the IdP choose the format of the NameID it returns.
|
||||
binding_type:
|
||||
$ref: '#/components/schemas/BindingTypeEnum'
|
||||
verification_kp:
|
||||
|
||||
@@ -116,7 +116,7 @@ impl Application {
|
||||
.flatten()
|
||||
}
|
||||
|
||||
/// Verify a signed token (HS256 by client secret, else RS256 via JWKS).
|
||||
/// Verify a signed token (HS256 by client secret, else RS256 or ML-DSA via JWKS).
|
||||
pub(super) async fn verify_token(&self, token: &str) -> Result<Claims> {
|
||||
let client_id = self
|
||||
.provider
|
||||
@@ -137,14 +137,14 @@ impl Application {
|
||||
.ok_or_else(|| eyre!("provider has no client secret"))?;
|
||||
token::verify_hs256(token, client_secret, &self.endpoint.issuer, client_id)
|
||||
} else {
|
||||
self.verify_rs256_cached(token, &self.endpoint.issuer, client_id)
|
||||
self.verify_jwks_cached(token, &self.endpoint.issuer, client_id)
|
||||
.await
|
||||
}
|
||||
}
|
||||
|
||||
/// Verify an RS256 token against the cached JWKS, refreshing it when the
|
||||
/// Verify a token against the cached JWKS, refreshing it when the
|
||||
/// token's `kid` is not present (e.g. after key rotation).
|
||||
async fn verify_rs256_cached(
|
||||
async fn verify_jwks_cached(
|
||||
&self,
|
||||
token: &str,
|
||||
issuer: &str,
|
||||
@@ -155,12 +155,12 @@ impl Application {
|
||||
if let Some(jwks) = self.jwks_cache.load_full()
|
||||
&& jwks.find(&kid).is_some()
|
||||
{
|
||||
return token::verify_rs256(token, &jwks, issuer, audience);
|
||||
return token::verify_jwks(token, &jwks, issuer, audience);
|
||||
}
|
||||
|
||||
let jwks =
|
||||
backchannel::fetch_jwks(&self.backchannel_client, &self.endpoint.jwks_uri).await?;
|
||||
let claims = token::verify_rs256(token, &jwks, issuer, audience);
|
||||
let claims = token::verify_jwks(token, &jwks, issuer, audience);
|
||||
self.jwks_cache.store(Some(Arc::new(jwks)));
|
||||
claims
|
||||
}
|
||||
|
||||
+322
-15
@@ -1,10 +1,26 @@
|
||||
//! Verification of authentik-issued access tokens (used as ID tokens).
|
||||
//!
|
||||
//! HS256 and RS256 tokens go through jsonwebtoken. ML-DSA tokens (RFC 9964) are
|
||||
//! verified with aws-lc-rs directly, since jsonwebtoken has no post-quantum
|
||||
//! algorithms and cannot even parse a header naming one.
|
||||
|
||||
use eyre::{Result, eyre};
|
||||
use jsonwebtoken::{Algorithm, DecodingKey, Validation, decode, decode_header, jwk::JwkSet};
|
||||
use aws_lc_rs::signature::{
|
||||
ML_DSA_44, ML_DSA_65, ML_DSA_87, UnparsedPublicKey, VerificationAlgorithm,
|
||||
};
|
||||
use base64::{Engine as _, engine::general_purpose::URL_SAFE_NO_PAD as BASE64URL};
|
||||
use eyre::{Result, bail, eyre};
|
||||
use jsonwebtoken::{
|
||||
Algorithm, DecodingKey, Validation, decode, get_current_timestamp,
|
||||
jwk::{AlgorithmParameters, Jwk, JwkSet},
|
||||
};
|
||||
use serde::Deserialize;
|
||||
|
||||
use crate::outpost::proxy::claims::{Claims, ProxyClaims};
|
||||
|
||||
/// Leeway applied to `exp` and `nbf` on the ML-DSA path; matches jsonwebtoken's
|
||||
/// default so both verification paths accept the same tokens.
|
||||
const LEEWAY_SECONDS: u64 = 60;
|
||||
|
||||
fn validation(alg: Algorithm, issuer: &str, audience: &str) -> Validation {
|
||||
let mut validation = Validation::new(alg);
|
||||
validation.set_issuer(&[issuer]);
|
||||
@@ -19,12 +35,16 @@ fn validation(alg: Algorithm, issuer: &str, audience: &str) -> Validation {
|
||||
}
|
||||
|
||||
fn decode_claims(token: &str, key: &DecodingKey, validation: &Validation) -> Result<Claims> {
|
||||
let mut claims = decode::<Claims>(token, key, validation)?.claims;
|
||||
let claims = decode::<Claims>(token, key, validation)?.claims;
|
||||
Ok(finish_claims(token, claims))
|
||||
}
|
||||
|
||||
fn finish_claims(token: &str, mut claims: Claims) -> Claims {
|
||||
token.clone_into(&mut claims.raw_token);
|
||||
if claims.ak_proxy.is_none() {
|
||||
claims.ak_proxy = Some(ProxyClaims::default());
|
||||
}
|
||||
Ok(claims)
|
||||
claims
|
||||
}
|
||||
|
||||
/// Verify an HS256-signed token using the provider client secret.
|
||||
@@ -38,36 +58,166 @@ pub(crate) fn verify_hs256(
|
||||
decode_claims(token, &key, &validation(Algorithm::HS256, issuer, audience))
|
||||
}
|
||||
|
||||
/// Extract the `kid` from a token header without verifying the signature.
|
||||
pub(crate) fn token_kid(token: &str) -> Result<Option<String>> {
|
||||
Ok(decode_header(token)?.kid)
|
||||
/// The header fields needed to route a token, parsed without jsonwebtoken so
|
||||
/// that an `alg` it does not know (ML-DSA) still gets through.
|
||||
#[derive(Deserialize)]
|
||||
struct RawHeader {
|
||||
alg: String,
|
||||
kid: Option<String>,
|
||||
}
|
||||
|
||||
/// Verify an RS256-signed token against the JWK matching its `kid`.
|
||||
pub(crate) fn verify_rs256(
|
||||
fn raw_header(token: &str) -> Result<RawHeader> {
|
||||
let header = token
|
||||
.split('.')
|
||||
.next()
|
||||
.ok_or_else(|| eyre!("malformed token"))?;
|
||||
Ok(serde_json::from_slice(&BASE64URL.decode(header)?)?)
|
||||
}
|
||||
|
||||
/// Extract the `kid` from a token header without verifying the signature.
|
||||
pub(crate) fn token_kid(token: &str) -> Result<Option<String>> {
|
||||
Ok(raw_header(token)?.kid)
|
||||
}
|
||||
|
||||
fn mldsa_algorithm(alg: &str) -> Option<&'static dyn VerificationAlgorithm> {
|
||||
match alg {
|
||||
"ML-DSA-44" => Some(&ML_DSA_44),
|
||||
"ML-DSA-65" => Some(&ML_DSA_65),
|
||||
"ML-DSA-87" => Some(&ML_DSA_87),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
/// Verify a token signed with the provider's key pair against the JWK matching
|
||||
/// its `kid`: RS256 through jsonwebtoken, ML-DSA through aws-lc-rs.
|
||||
pub(crate) fn verify_jwks(
|
||||
token: &str,
|
||||
jwks: &JwkSet,
|
||||
issuer: &str,
|
||||
audience: &str,
|
||||
) -> Result<Claims> {
|
||||
let kid = decode_header(token)?
|
||||
.kid
|
||||
.ok_or_else(|| eyre!("token header has no kid"))?;
|
||||
let header = raw_header(token)?;
|
||||
let kid = header.kid.ok_or_else(|| eyre!("token header has no kid"))?;
|
||||
let jwk = jwks
|
||||
.find(&kid)
|
||||
.ok_or_else(|| eyre!("no JWK matching kid {kid}"))?;
|
||||
if let Some(algorithm) = mldsa_algorithm(&header.alg) {
|
||||
return verify_mldsa(token, jwk, &header.alg, algorithm, issuer, audience);
|
||||
}
|
||||
let key = DecodingKey::from_jwk(jwk)?;
|
||||
decode_claims(token, &key, &validation(Algorithm::RS256, issuer, audience))
|
||||
}
|
||||
|
||||
/// The registered claims checked on the ML-DSA path, mirroring what
|
||||
/// `validation` asks jsonwebtoken to enforce.
|
||||
#[derive(Deserialize)]
|
||||
struct RegisteredClaims {
|
||||
exp: Option<u64>,
|
||||
nbf: Option<u64>,
|
||||
iss: Option<String>,
|
||||
aud: Option<Audience>,
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
#[serde(untagged)]
|
||||
enum Audience {
|
||||
Single(String),
|
||||
Multiple(Vec<String>),
|
||||
}
|
||||
|
||||
impl Audience {
|
||||
fn contains(&self, audience: &str) -> bool {
|
||||
match self {
|
||||
Self::Single(aud) => aud == audience,
|
||||
Self::Multiple(auds) => auds.iter().any(|aud| aud == audience),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Verify an ML-DSA (RFC 9964) signed token against an `AKP` JWK.
|
||||
fn verify_mldsa(
|
||||
token: &str,
|
||||
jwk: &Jwk,
|
||||
alg: &str,
|
||||
algorithm: &'static dyn VerificationAlgorithm,
|
||||
issuer: &str,
|
||||
audience: &str,
|
||||
) -> Result<Claims> {
|
||||
// jsonwebtoken keeps key types it does not know as a bag of fields.
|
||||
let AlgorithmParameters::Other(params) = &jwk.algorithm else {
|
||||
bail!("JWK for {alg} token is not an AKP key");
|
||||
};
|
||||
if params.fields.get("kty").and_then(serde_json::Value::as_str) != Some("AKP") {
|
||||
bail!("JWK for {alg} token is not an AKP key");
|
||||
}
|
||||
if let Some(jwk_alg) = params.fields.get("alg").and_then(serde_json::Value::as_str)
|
||||
&& jwk_alg != alg
|
||||
{
|
||||
bail!("JWK algorithm {jwk_alg} does not match token algorithm {alg}");
|
||||
}
|
||||
let public_key = params
|
||||
.fields
|
||||
.get("pub")
|
||||
.and_then(serde_json::Value::as_str)
|
||||
.map(|encoded| BASE64URL.decode(encoded))
|
||||
.ok_or_else(|| eyre!("AKP JWK has no pub member"))??;
|
||||
|
||||
let (message, signature) = token
|
||||
.rsplit_once('.')
|
||||
.ok_or_else(|| eyre!("malformed token"))?;
|
||||
let signature = BASE64URL.decode(signature)?;
|
||||
UnparsedPublicKey::new(algorithm, public_key)
|
||||
.verify(message.as_bytes(), &signature)
|
||||
.map_err(|_| eyre!("invalid {alg} signature"))?;
|
||||
|
||||
let (_, payload) = message
|
||||
.split_once('.')
|
||||
.ok_or_else(|| eyre!("malformed token"))?;
|
||||
let payload = BASE64URL.decode(payload)?;
|
||||
validate_registered_claims(&serde_json::from_slice(&payload)?, issuer, audience)?;
|
||||
Ok(finish_claims(token, serde_json::from_slice(&payload)?))
|
||||
}
|
||||
|
||||
fn validate_registered_claims(
|
||||
claims: &RegisteredClaims,
|
||||
issuer: &str,
|
||||
audience: &str,
|
||||
) -> Result<()> {
|
||||
let now = get_current_timestamp();
|
||||
match claims.exp {
|
||||
Some(exp) if exp + LEEWAY_SECONDS >= now => {}
|
||||
Some(_) => bail!("token has expired"),
|
||||
None => bail!("token has no exp claim"),
|
||||
}
|
||||
if let Some(nbf) = claims.nbf
|
||||
&& nbf > now + LEEWAY_SECONDS
|
||||
{
|
||||
bail!("token is not yet valid");
|
||||
}
|
||||
match claims.iss.as_deref() {
|
||||
Some(iss) if iss == issuer => {}
|
||||
Some(_) => bail!("token issuer does not match"),
|
||||
None => bail!("token has no iss claim"),
|
||||
}
|
||||
match &claims.aud {
|
||||
Some(aud) if aud.contains(audience) => Ok(()),
|
||||
Some(_) => bail!("token audience does not match"),
|
||||
None => bail!("token has no aud claim"),
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use std::time::{SystemTime, UNIX_EPOCH};
|
||||
|
||||
use aws_lc_rs::signature::{
|
||||
KeyPair as _, ML_DSA_44_SIGNING, ML_DSA_65_SIGNING, PqdsaKeyPair, PqdsaSigningAlgorithm,
|
||||
};
|
||||
use base64::{Engine as _, engine::general_purpose::URL_SAFE_NO_PAD as BASE64URL};
|
||||
use jsonwebtoken::{Algorithm, EncodingKey, Header, encode, jwk::JwkSet};
|
||||
use serde_json::{Value, json};
|
||||
|
||||
use super::{verify_hs256, verify_rs256};
|
||||
use super::{verify_hs256, verify_jwks};
|
||||
|
||||
const ISSUER: &str = "https://test.goauthentik.io/application/o/test-app/";
|
||||
const AUDIENCE: &str = "client-123";
|
||||
@@ -184,7 +334,7 @@ J78973mJGC9/uRJqtkbPBeQ=
|
||||
)
|
||||
.expect("failed to sign token");
|
||||
|
||||
let claims = verify_rs256(&token, &jwks(), ISSUER, AUDIENCE).expect("verification failed");
|
||||
let claims = verify_jwks(&token, &jwks(), ISSUER, AUDIENCE).expect("verification failed");
|
||||
|
||||
assert_eq!(claims.sub, "user-uuid");
|
||||
assert_eq!(claims.raw_token, token);
|
||||
@@ -267,6 +417,163 @@ J78973mJGC9/uRJqtkbPBeQ=
|
||||
.expect("failed to sign token");
|
||||
|
||||
let _ =
|
||||
verify_rs256(&token, &jwks(), ISSUER, AUDIENCE).expect_err("should reject unknown kid");
|
||||
verify_jwks(&token, &jwks(), ISSUER, AUDIENCE).expect_err("should reject unknown kid");
|
||||
}
|
||||
|
||||
const MLDSA_KID: &str = "mldsa-key";
|
||||
|
||||
fn mldsa_jwks(key_pair: &PqdsaKeyPair, alg: &str) -> JwkSet {
|
||||
serde_json::from_value(json!({
|
||||
"keys": [{
|
||||
"kty": "AKP",
|
||||
"use": "sig",
|
||||
"alg": alg,
|
||||
"kid": MLDSA_KID,
|
||||
"pub": BASE64URL.encode(key_pair.public_key().as_ref()),
|
||||
}]
|
||||
}))
|
||||
.expect("failed to parse JWKS")
|
||||
}
|
||||
|
||||
fn mldsa_token(
|
||||
key_pair: &PqdsaKeyPair,
|
||||
signing: &PqdsaSigningAlgorithm,
|
||||
alg: &str,
|
||||
claims: &Value,
|
||||
) -> String {
|
||||
let header =
|
||||
BASE64URL.encode(json!({"alg": alg, "kid": MLDSA_KID, "typ": "JWT"}).to_string());
|
||||
let payload = BASE64URL.encode(claims.to_string());
|
||||
let message = format!("{header}.{payload}");
|
||||
let mut signature = vec![0_u8; signing.signature_len()];
|
||||
let len = key_pair
|
||||
.sign(message.as_bytes(), &mut signature)
|
||||
.expect("failed to sign token");
|
||||
signature.truncate(len);
|
||||
format!("{message}.{}", BASE64URL.encode(signature))
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn verifies_mldsa() {
|
||||
for (signing, alg) in [
|
||||
(&ML_DSA_44_SIGNING, "ML-DSA-44"),
|
||||
(&ML_DSA_65_SIGNING, "ML-DSA-65"),
|
||||
] {
|
||||
let key_pair = PqdsaKeyPair::generate(signing).expect("failed to generate key");
|
||||
let token = mldsa_token(&key_pair, signing, alg, &token_claims());
|
||||
|
||||
let claims = verify_jwks(&token, &mldsa_jwks(&key_pair, alg), ISSUER, AUDIENCE)
|
||||
.expect("verification failed");
|
||||
|
||||
assert_eq!(claims.sub, "user-uuid");
|
||||
assert_eq!(claims.preferred_username, "akadmin");
|
||||
assert_eq!(claims.groups, vec!["admins".to_owned()]);
|
||||
assert_eq!(claims.raw_token, token);
|
||||
assert!(claims.ak_proxy.is_some());
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn rejects_mldsa_wrong_key() {
|
||||
let signer = PqdsaKeyPair::generate(&ML_DSA_44_SIGNING).expect("failed to generate key");
|
||||
let other = PqdsaKeyPair::generate(&ML_DSA_44_SIGNING).expect("failed to generate key");
|
||||
let token = mldsa_token(&signer, &ML_DSA_44_SIGNING, "ML-DSA-44", &token_claims());
|
||||
|
||||
let _ = verify_jwks(&token, &mldsa_jwks(&other, "ML-DSA-44"), ISSUER, AUDIENCE)
|
||||
.expect_err("signature from another key must be rejected");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn rejects_mldsa_tampered_payload() {
|
||||
let key_pair = PqdsaKeyPair::generate(&ML_DSA_44_SIGNING).expect("failed to generate key");
|
||||
let token = mldsa_token(&key_pair, &ML_DSA_44_SIGNING, "ML-DSA-44", &token_claims());
|
||||
let (header, rest) = token.split_once('.').expect("malformed token");
|
||||
let (_, signature) = rest.rsplit_once('.').expect("malformed token");
|
||||
let payload = BASE64URL.encode(
|
||||
json!({
|
||||
"iss": ISSUER, "aud": AUDIENCE, "exp": expiry(), "sub": "someone-else",
|
||||
})
|
||||
.to_string(),
|
||||
);
|
||||
let tampered = format!("{header}.{payload}.{signature}");
|
||||
|
||||
let _ = verify_jwks(
|
||||
&tampered,
|
||||
&mldsa_jwks(&key_pair, "ML-DSA-44"),
|
||||
ISSUER,
|
||||
AUDIENCE,
|
||||
)
|
||||
.expect_err("tampered payload must be rejected");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn rejects_mldsa_algorithm_mismatch() {
|
||||
// The token names a different parameter set than the JWK it references.
|
||||
let key_pair = PqdsaKeyPair::generate(&ML_DSA_44_SIGNING).expect("failed to generate key");
|
||||
let token = mldsa_token(&key_pair, &ML_DSA_44_SIGNING, "ML-DSA-65", &token_claims());
|
||||
|
||||
let _ = verify_jwks(
|
||||
&token,
|
||||
&mldsa_jwks(&key_pair, "ML-DSA-44"),
|
||||
ISSUER,
|
||||
AUDIENCE,
|
||||
)
|
||||
.expect_err("algorithm mismatch must be rejected");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn rejects_mldsa_with_rsa_jwk() {
|
||||
let key_pair = PqdsaKeyPair::generate(&ML_DSA_44_SIGNING).expect("failed to generate key");
|
||||
let claims = token_claims();
|
||||
let header = BASE64URL.encode(json!({"alg": "ML-DSA-44", "kid": KID}).to_string());
|
||||
let payload = BASE64URL.encode(claims.to_string());
|
||||
let message = format!("{header}.{payload}");
|
||||
let mut signature = vec![0_u8; ML_DSA_44_SIGNING.signature_len()];
|
||||
let len = key_pair
|
||||
.sign(message.as_bytes(), &mut signature)
|
||||
.expect("failed to sign token");
|
||||
signature.truncate(len);
|
||||
let token = format!("{message}.{}", BASE64URL.encode(signature));
|
||||
|
||||
let _ = verify_jwks(&token, &jwks(), ISSUER, AUDIENCE)
|
||||
.expect_err("an RSA JWK cannot verify an ML-DSA token");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn rejects_mldsa_expired_and_wrong_issuer() {
|
||||
let key_pair = PqdsaKeyPair::generate(&ML_DSA_44_SIGNING).expect("failed to generate key");
|
||||
let jwks = mldsa_jwks(&key_pair, "ML-DSA-44");
|
||||
let expired = mldsa_token(
|
||||
&key_pair,
|
||||
&ML_DSA_44_SIGNING,
|
||||
"ML-DSA-44",
|
||||
&json!({"iss": ISSUER, "aud": AUDIENCE, "sub": "user", "exp": now() - 3600}),
|
||||
);
|
||||
let _ = verify_jwks(&expired, &jwks, ISSUER, AUDIENCE)
|
||||
.expect_err("expired token must be rejected");
|
||||
|
||||
let valid = mldsa_token(&key_pair, &ML_DSA_44_SIGNING, "ML-DSA-44", &token_claims());
|
||||
let _ = verify_jwks(&valid, &jwks, "https://evil.example.com/", AUDIENCE)
|
||||
.expect_err("mismatched issuer must be rejected");
|
||||
let _ = verify_jwks(&valid, &jwks, ISSUER, "other-client")
|
||||
.expect_err("mismatched audience must be rejected");
|
||||
|
||||
let missing_aud = mldsa_token(
|
||||
&key_pair,
|
||||
&ML_DSA_44_SIGNING,
|
||||
"ML-DSA-44",
|
||||
&json!({"iss": ISSUER, "sub": "user", "exp": expiry()}),
|
||||
);
|
||||
let _ = verify_jwks(&missing_aud, &jwks, ISSUER, AUDIENCE)
|
||||
.expect_err("token without aud must be rejected");
|
||||
|
||||
let not_yet_valid = mldsa_token(
|
||||
&key_pair,
|
||||
&ML_DSA_44_SIGNING,
|
||||
"ML-DSA-44",
|
||||
&json!({"iss": ISSUER, "aud": AUDIENCE, "sub": "user", "exp": expiry(), "nbf": now() + 600}),
|
||||
);
|
||||
let _ = verify_jwks(¬_yet_valid, &jwks, ISSUER, AUDIENCE)
|
||||
.expect_err("nbf beyond leeway must be rejected");
|
||||
}
|
||||
}
|
||||
@@ -408,14 +408,14 @@ requires-dist = [
|
||||
{ name = "ak-guardian", editable = "packages/ak-guardian" },
|
||||
{ name = "argon2-cffi", specifier = "==25.1.0" },
|
||||
{ name = "bcrypt", specifier = "==5.0.0" },
|
||||
{ name = "cachetools", specifier = "==7.2.7" },
|
||||
{ name = "cachetools", specifier = "==7.2.8" },
|
||||
{ name = "certifi", specifier = "==2026.10.23" },
|
||||
{ name = "channels", specifier = "==4.3.2" },
|
||||
{ name = "cryptography", specifier = "==50.0.2" },
|
||||
{ name = "dacite", specifier = "==1.9.2" },
|
||||
{ name = "deepmerge", specifier = "==3.0.1" },
|
||||
{ name = "defusedxml", specifier = "==0.7.1" },
|
||||
{ name = "django", specifier = "==5.2.18" },
|
||||
{ name = "django", specifier = "==5.2.19" },
|
||||
{ name = "django-channels-postgres", editable = "packages/django-channels-postgres" },
|
||||
{ name = "django-countries", specifier = "==9.1.0" },
|
||||
{ name = "django-dramatiq-postgres", editable = "packages/django-dramatiq-postgres" },
|
||||
@@ -460,7 +460,7 @@ requires-dist = [
|
||||
{ name = "packaging", specifier = "==26.3" },
|
||||
{ name = "paramiko", specifier = "==5.0.1" },
|
||||
{ name = "psycopg", extras = ["c", "pool"], specifier = "==3.3.6" },
|
||||
{ name = "pydantic", specifier = "==2.14.1" },
|
||||
{ name = "pydantic", specifier = "==2.14.2" },
|
||||
{ name = "pydantic-scim", specifier = "==0.0.8" },
|
||||
{ name = "pyjwt", specifier = "==2.15.1" },
|
||||
{ name = "pyrad", specifier = "==2.6.0" },
|
||||
@@ -507,7 +507,7 @@ dev = [
|
||||
{ name = "lxml-stubs", specifier = "==0.5.1" },
|
||||
{ name = "mypy", specifier = "==2.3.1" },
|
||||
{ name = "pdoc", specifier = "==16.0.0" },
|
||||
{ name = "pytest", specifier = "==9.1.1" },
|
||||
{ name = "pytest", specifier = "==9.2.0" },
|
||||
{ name = "pytest-django", specifier = "==4.14.0" },
|
||||
{ name = "pytest-flakefinder", specifier = "==1.1.0" },
|
||||
{ name = "pytest-github-actions-annotate-failures", specifier = "==0.4.2" },
|
||||
@@ -789,11 +789,11 @@ wheels = [
|
||||
|
||||
[[package]]
|
||||
name = "cachetools"
|
||||
version = "7.2.7"
|
||||
version = "7.2.8"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/40/3a/bce69b9ecf4658dcd3599abe5122a9031386f8f94bd85c6525fca9109db7/cachetools-7.2.7.tar.gz", hash = "sha256:e2154c809ce9e1247120258c36821467597b5663d44c3255a9790785f23c2b1e", size = 47240, upload-time = "2026-10-28T22:15:17.189Z" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/93/6f/faa5e0606769105e70e0478031a8f9a6b729e329f42ce2462585c6d9aa52/cachetools-7.2.8.tar.gz", hash = "sha256:3f9b146b2160975da273e7c23ec882f3996b65df608150d52083c07de0682075", size = 47821, upload-time = "2026-10-31T21:37:51.986Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/dc/68/211287b89b122a6842b3f078ffecc5a2abd3c0e4362748586f765e2fb3c5/cachetools-7.2.7-py3-none-any.whl", hash = "sha256:88e6b53373a96786d20894fed9ce623ae5b73cbc07421b7a73098db088be69ae", size = 19654, upload-time = "2026-10-28T22:15:15.555Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0c/35/2fb720060bb278759da35f2076fab1af4e9d66e3add080e6b40d6e25ba48/cachetools-7.2.8-py3-none-any.whl", hash = "sha256:09b04a85741d0019b3fb7d02b7ee9933a422fa6923af92a0fd63b893b695830c", size = 19646, upload-time = "2026-10-31T21:37:50.278Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -1217,16 +1217,16 @@ wheels = [
|
||||
|
||||
[[package]]
|
||||
name = "django"
|
||||
version = "5.2.18"
|
||||
version = "5.2.19"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "asgiref" },
|
||||
{ name = "sqlparse" },
|
||||
{ name = "tzdata", marker = "sys_platform == 'win32'" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/85/fe/79e692b430c7721bf4b812c328bfe687e73e3f28f56611a6a18a97e887cc/django-5.2.18.tar.gz", hash = "sha256:461c5dd06d2ea16bd5ca37d3f46e4def1d6b0fe7588c6f4e2119517bb0af8b2d", size = 10910238, upload-time = "2026-10-06T13:01:09.371Z" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/02/29/a487a108caa76430c8b616aa90a6d09cf431306112c14093e6f0a7454e17/django-5.2.19.tar.gz", hash = "sha256:ad03d8abc51dbff95ebf34b27123cf0c26a3b62db7ba0cd520783686362533d1", size = 10969285, upload-time = "2026-11-03T15:22:09.468Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/d6/01/6568ec52b26548ca1b83d33249f7274db3bf74698f42c0da42ec9db1a24a/django-5.2.18-py3-none-any.whl", hash = "sha256:92ed81d500be6408ecd704d7bd1366c534f30427bffcc63c5fefb129561aec7c", size = 8316071, upload-time = "2026-10-06T13:01:04.413Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/3c/fb/65b4e897d1268288a46457493d9aec6541be8be08e0093a93cc101c03ab2/django-5.2.19-py3-none-any.whl", hash = "sha256:5965d974a5218a2b68a11dd1276434707f23886525c23f0598eccedaf4f4ca00", size = 8319631, upload-time = "2026-11-03T15:22:03.67Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -3182,7 +3182,7 @@ wheels = [
|
||||
|
||||
[[package]]
|
||||
name = "pydantic"
|
||||
version = "2.14.1"
|
||||
version = "2.14.2"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "annotated-types" },
|
||||
@@ -3190,9 +3190,9 @@ dependencies = [
|
||||
{ name = "typing-extensions" },
|
||||
{ name = "typing-inspection" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/7c/0b/8e10b2e693af8ec54346a14caf36221334775975a747c9ceaa3f8371d96d/pydantic-2.14.1.tar.gz", hash = "sha256:94f478203dd03404682a1ada216965651dd74b1d2d5ffd62e00e0837caab5c26", size = 900362, upload-time = "2026-10-11T18:37:55.396Z" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/9f/d5/b4867fa7c7f04c34997d7d8aad744f64d210bb99d67cf18bf3fb1eea1aed/pydantic-2.14.2.tar.gz", hash = "sha256:fb7b2db6cefe8414dd612edeede49c4c433acb0432b0f92b95024e45f66c505d", size = 911596, upload-time = "2026-10-29T16:37:12.476Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/35/ea/a56b9fe5066f3537b7882f77e9c5dfb26d8c2eefdaed9b5fc73d57b4dc22/pydantic-2.14.1-py3-none-any.whl", hash = "sha256:9195d967ec791692a04438115466764fb8b9a27b31f14a760437694f40d6b454", size = 488106, upload-time = "2026-10-11T18:37:53.437Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/97/01/c71a71258b58659c72504e5fd65b451f6e36e34dc931d0b237ded213c814/pydantic-2.14.2-py3-none-any.whl", hash = "sha256:7efbf7507b937931cd32a5755acb00ea1cf5ccb1d4e8067a5850d5069e382118", size = 490403, upload-time = "2026-10-29T16:37:10.181Z" },
|
||||
]
|
||||
|
||||
[package.optional-dependencies]
|
||||
@@ -3202,44 +3202,44 @@ email = [
|
||||
|
||||
[[package]]
|
||||
name = "pydantic-core"
|
||||
version = "2.50.1"
|
||||
version = "2.50.2"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "typing-extensions" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/a6/24/af4ec4be49fbc810f35b0bdcacc3d433b56bbfa469fd3bfd4ae116cd9bf1/pydantic_core-2.50.1.tar.gz", hash = "sha256:e50d7b94baac6c7d09927fa5ca5800a0c7ee5015c7fcff65beb3a1931b5a6e09", size = 513515, upload-time = "2026-10-11T18:35:44.82Z" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/af/8e/23ec1021834e35041fbb2f10946141e6acdfd39379c45cc4d65a4e8a1d98/pydantic_core-2.50.2.tar.gz", hash = "sha256:1b0e8dc3932cf4e9ed5727570325cacc716b9409ffc794a221c0ccc72e8eb775", size = 518711, upload-time = "2026-10-29T16:34:57.465Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/49/33/28b96e81677153715e3eafb9f26663a80841e859fde282a380359b0d3fa1/pydantic_core-2.50.1-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:1cf41f1ae3fa155cf167a72689ad044bcc1e3c97e064123677149bdfb5dafc4a", size = 2224428, upload-time = "2026-10-11T18:33:07.153Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/94/40/15c06410c9b7b8da5805d27b64e09bd3f900e986728106db2689dbc51513/pydantic_core-2.50.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:4df197990c15b5a37c5a277d131d9f2c67de6133f2e5dafd80d9bba4b99f46f9", size = 2023740, upload-time = "2026-10-11T18:33:08.763Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a1/4e/5eb629f6efc2a27e421d789dd4bfacbb5f6d09c80c28b13d1e87d73163d5/pydantic_core-2.50.1-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0036473f5583e6a60e50b8b21651511564277a3f05cc5dab8cf579f552cd5f6c", size = 2049435, upload-time = "2026-10-11T18:33:10.366Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ba/8e/f195aebec49ad12318876ac2368c197a7939f5d52f8e156d2238ef8a4588/pydantic_core-2.50.1-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:992c3514ec891fa7858099183e4d64e6bd5a5d4ff452fae29df22faa77a006bb", size = 2172975, upload-time = "2026-10-11T18:33:12.368Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e0/f5/7ad9fb83010cd5ea0948409db105676ed779c4e709e2d3d89b9fe2558794/pydantic_core-2.50.1-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:739dc730e6be3bd5ec2f4ab5cfc7eb047cc45fc1497b3bafec74ff2ed07df597", size = 2364197, upload-time = "2026-10-11T18:33:14.244Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ca/fb/bf0aab3e78301d202b82a0322ec968cd703b11fc0623fde9a28708936f62/pydantic_core-2.50.1-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:32fad3a91e51b6d2039c572db04a5a873260b399f6bd62c3552671fa7a4a2899", size = 2444259, upload-time = "2026-10-11T18:33:15.79Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/45/35/38f6d6564fae57d9b12e5676dfa947e0e7d5c46dbeaa7eb3352261d6d299/pydantic_core-2.50.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:42b54c2c90ad348b5e3a85e03e715d572c1fde357ef104cdfe3b03b697a404ea", size = 2159857, upload-time = "2026-10-11T18:33:17.51Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/65/a0/fb0a3ca10f139dcf765b2d312d10cf0f65c57c59993229d00ad12b14ceff/pydantic_core-2.50.1-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:2df1ff41884de2bc4b307bafd7c40a691094fad2ff8e767e5b45a319257bcf4e", size = 2233954, upload-time = "2026-10-11T18:33:19.591Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8c/6a/e63842252702aa4ec6e6b7178ca85e541a77459076592c23ebe2d9840b33/pydantic_core-2.50.1-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:fe90228920fd8ff2be62622b6bb8a2b11acd65046d50c6b130614b5879605a20", size = 2243876, upload-time = "2026-10-11T18:33:21.393Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/39/25/5991cf8318b37e0dfab47b87541619a1df8501a793cba0d978846cba37a7/pydantic_core-2.50.1-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:844b869f118e22a41a091bdcedda8a71bc1b0f62c38d1a0c3211cece47e1d8fc", size = 2277908, upload-time = "2026-10-11T18:33:23.324Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a7/3e/3ee8baaa6cc25a6961c69168cf9ff0f002d56f4e0d541ad6724c18fb61f3/pydantic_core-2.50.1-cp314-cp314-musllinux_1_1_armv7l.whl", hash = "sha256:2eb75304506894a281d346220a4f7481a1b8729577c5ed2a05395991966a8396", size = 2449285, upload-time = "2026-10-11T18:33:24.942Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c0/c7/acbec6deac13fe697a80c275a9b6661db62c4d323bac8a47347b1f39c7cd/pydantic_core-2.50.1-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:6b20a4bffabdad0db2927ac034ae3b8a681b1f7a0182f3e60b479ad2fde21ebb", size = 2479013, upload-time = "2026-10-11T18:33:26.925Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/10/08/21a3f237b264389f6219d053ee78fc1b5c2fd402c1b1cb2b6cb8b85f9834/pydantic_core-2.50.1-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:99ba9bc2b8062ea0c326a990f7f00e6530c23579de66dd246e72c4cafef950a5", size = 1484400, upload-time = "2026-10-11T18:33:28.693Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/09/ce/077a6d262d12ef09108377ac0717f029f420d773ace63cafd6143af75568/pydantic_core-2.50.1-cp314-cp314-win32.whl", hash = "sha256:cf356f70551d40374eaffb1aa63f1eb6d2006681cbd7a9faea173ce0f4dd7cd2", size = 2103222, upload-time = "2026-10-11T18:33:30.326Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/14/4c/350a2415209c43d670eb71d3c040f332c04a30583d39e311b05c7ac15762/pydantic_core-2.50.1-cp314-cp314-win_amd64.whl", hash = "sha256:d32f3acc081cc3923386d88f422cde8892335e95f034e0104bb4cf9310d9915f", size = 2171586, upload-time = "2026-10-11T18:33:32.139Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/bf/92/9bea6ca96580a0902fed366f064f0829e404f41889b34543279a1162b888/pydantic_core-2.50.1-cp314-cp314-win_arm64.whl", hash = "sha256:bed5163e03b98bc1fa2eb05d74c63d9c5c95d8ed6254985481640fbf5e237dea", size = 2155773, upload-time = "2026-10-11T18:33:33.896Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/86/8c/f121f073cf32bdd5cba7e6230b1ce0ac845b0cf43e44dd597d95af272db2/pydantic_core-2.50.1-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:9572c1369e9c9da2d64a7b7992c786d90ff295abc93964cfe3125e4290768070", size = 2234017, upload-time = "2026-10-11T18:33:35.588Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a4/69/2bb2bcd6146cffe98d760a46c42ae71efd5151d9b2f9c9bf6619a3b32083/pydantic_core-2.50.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:2005207aafe1231315718bf6ed5d064a7300fb4772754af35ee72fc68159492e", size = 2001016, upload-time = "2026-10-11T18:33:37.57Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/20/b3/fbf854c7d07ec114260c26e9e2071a4381740f9ae09641dbfcbdf2a18c45/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:64f6047f62a6c5ae08d0a6afb035667aa2d97c3d20d69762e034c5ea144d92a5", size = 2023015, upload-time = "2026-10-11T18:33:39.433Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/65/20/6de55b2f92cdb614b745c6e9ced639fc4fd7e1e77604825a88bdece6fcbd/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:1ef800dd7d85bcdadf4c3076e4c94e43939493558a3b69a1ea830c706d4617bb", size = 2192543, upload-time = "2026-10-11T18:33:41.381Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0c/d9/19e91c94bd5c405945ce2f15526808aea37e162c253160de8ed7bf70b406/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b0135bcdcaa0f23573f286e4cb5e0fd2962700964ed13df085b85f2b97aeab9e", size = 2388704, upload-time = "2026-10-11T18:33:43.167Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b6/bc/2e24c8415eae1a25ee5a5484946a917123bad2e9d01689a759236928175a/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0b3a6f334c6a2345ca15318ff894502a90012536404b37c844a976c76c846e0b", size = 2464118, upload-time = "2026-10-11T18:33:44.856Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/bd/1f/945b8053cb061c64e102bcaf7bfb9ed740c0bd4349f9bb978a7d4ddff4ab/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:06e01fbbfdb9be777b316a71b6c49efaf4a08b615d0a98d678cda3023f79d019", size = 2150142, upload-time = "2026-10-11T18:33:46.661Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2b/78/96a3e50bf0d64aaae781107eb9335b7529d05a85793ed6e7241c4cd1d931/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:a29a061fec0b4e2d714f277e70a3a18125ecff803f2fea6eade2f2e53711d112", size = 2245577, upload-time = "2026-10-11T18:33:48.574Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7a/5d/a6038a0322232758a6ebfa709f4ca14a60bf5b93940cd0b345056a557da4/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:f5187624823423e1d1b82b1072ac41dc837389e18d3d0572cc19bbee46cd550a", size = 2263728, upload-time = "2026-10-11T18:33:50.527Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0d/4b/76ded3333a457a9344c4f2d63f2d82d0101654b05178fa4ddfe7d3627674/pydantic_core-2.50.1-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:3e46a9eb0a0901dd6275e6b06ac3a464885ef350ec4121fe486869de8053e4bb", size = 2293630, upload-time = "2026-10-11T18:33:52.362Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a9/00/9eca378335c9c1b72bc779bf6e4c2a82ce784f14ec48a0e87102c9870e05/pydantic_core-2.50.1-cp314-cp314t-musllinux_1_1_armv7l.whl", hash = "sha256:756d669f04e62ec4148ecfe22be6a4484d9b1181a6ef32e205ebfd200540858b", size = 2468048, upload-time = "2026-10-11T18:33:54.118Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/35/ca/e3832e9cf93651251de43c8c5c029ed680a3c1a0a1b17ee26c81bed08cbd/pydantic_core-2.50.1-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:c516cc5367ca3448995d42cb994bf3f4c9002d2a7c22eac9622551269ad1b807", size = 2512159, upload-time = "2026-10-11T18:33:55.99Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4b/f2/773469b5a10a39116a2cb17edaf6d722f017dd8da07161b371465311c542/pydantic_core-2.50.1-cp314-cp314t-win32.whl", hash = "sha256:9d1bed94af6a63835461f3cf7502058eb166c58c4778e11d0f433cfb1bd69e19", size = 2098406, upload-time = "2026-10-11T18:33:58.043Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ee/42/0bb74f8f25204b259b11ab7c12dc7f180893b6bd706118b385147fb6efd5/pydantic_core-2.50.1-cp314-cp314t-win_amd64.whl", hash = "sha256:c8dce1f1e0e5358b682a6ad3fa5e31b31d4560997b8e61417e9217c8d60f8a0c", size = 2148481, upload-time = "2026-10-11T18:33:59.913Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/47/0d/d801646c9679a4e630e15cf521d4108b93854b42a6e6e02391bd4c6b1095/pydantic_core-2.50.1-cp314-cp314t-win_arm64.whl", hash = "sha256:ceff0acc940be2715bd6ad17b24c0e5304abf44f6efd0f81ee8499e640f9dc86", size = 2174972, upload-time = "2026-10-11T18:34:01.875Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f2/64/fc525bb981a9f287cfa34346e7ed1d5ef7c043c2b9b517f54c6136032d10/pydantic_core-2.50.2-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:efad0bdc67d3b119c3bab6b94d341a27333c2bb89ed75dfa182a4a06cd0ea329", size = 2226414, upload-time = "2026-10-29T16:32:58.559Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/db/68/315701095f25687938ab79d263a6d939337456c2840fe69038fd38000338/pydantic_core-2.50.2-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:6ffb4dce3ecb2cd563aa30f9eb5088a1cf1f4f688b90cbb374fa96e49fc50b02", size = 2095041, upload-time = "2026-10-29T16:32:59.873Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b8/4b/efd3abf31aa24bc97b311735f418886f947b4f193df02a1977643963b03e/pydantic_core-2.50.2-cp314-cp314-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:150f6e101f575c21a4ecfed1be1c05bb89a0ad49cb9c846ed377583bd71b32c2", size = 2257635, upload-time = "2026-10-29T16:33:01.096Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2d/6c/146b36eed4de8115a0fda76840703e75f5f8b36aeb3af86976bf094d1a17/pydantic_core-2.50.2-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:1db9cab6197e797824f0479dd2ae5fd2e272aa61c61b7faa5a6e450ca7a0d3b7", size = 2116807, upload-time = "2026-10-29T16:33:02.692Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/fb/94/db006ea79bbe405cc38b25899319c7d461ff1813cbdfe6aa90a65ed1dfff/pydantic_core-2.50.2-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:1b9f652e17a13bbc09b45f74c3c326cca72059ce4dcdef687fcb04389db413a9", size = 2201037, upload-time = "2026-10-29T16:33:03.942Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/41/f9/ea2bc1ec13a67af4a63c9a887fa0aa6ef4ade9018e2bb412d4fc80110e19/pydantic_core-2.50.2-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:823b222c4fc861a82c650998a6117ecbd150cc71bf8b78f9a31bf3f48c456108", size = 2374904, upload-time = "2026-10-29T16:33:05.458Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/44/8e/26a6a075301f0e563646037ea69bef8c63911d38fbd257f94cec69cdf985/pydantic_core-2.50.2-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:783abdfac21247d33bec40aa683d26bba30d61655c40de38b2decc4797aabf92", size = 2457626, upload-time = "2026-10-29T16:33:07.271Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9d/a2/8eeabaf1d394f0d3b9a27129ac21556eabee6f2ddcb418069ef4037e00b0/pydantic_core-2.50.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:b29b7c5adf4b2be7c941f7f76432aa3269cd5052ff8610376b8ece24d7b02c51", size = 2245505, upload-time = "2026-10-29T16:33:08.824Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/bd/54/449778cd397e2682b30d1bcfab0872f6ac36702b59cc326296b7f4f14928/pydantic_core-2.50.2-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:4ac996e42a93d80122a23edce44e02c6b9c4913f5c6198a077da31475341a39a", size = 2259563, upload-time = "2026-10-29T16:33:10.107Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/26/c2/2f65691d25488ee0f3c17861d079e8ccb7817955522d07cd3c3970d30af5/pydantic_core-2.50.2-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:99e1d482138a71902415ba375bb4627679a5fefd3bd07803c3a8f37632f4981d", size = 2290470, upload-time = "2026-10-29T16:33:11.273Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9f/32/aa7c40234cd24536afa0895ff1d26f9f15638004e25242c5193ce053b96b/pydantic_core-2.50.2-cp314-cp314-musllinux_1_1_armv7l.whl", hash = "sha256:a53d5f11cd6d15569ba3e53f3498077f0d5e633f6ec604d2ea613e895017ebee", size = 2477272, upload-time = "2026-10-29T16:33:12.771Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c4/43/c347c68e040cf93d8487a8f4fc28f2768312834c7d21c301538f416f9955/pydantic_core-2.50.2-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:23385c4626f8b5a7792aa381ea573d9432cfbf4c21375a0a5eed2a4fb64e0e58", size = 2484352, upload-time = "2026-10-29T16:33:14.485Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b8/8e/72556126c8b6154fe7acaf757b96b2daa37aeffc3a517deb76e272f5ad09/pydantic_core-2.50.2-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:9a8a62281fd9c6a373b3fd3d473685e6838d43341eecde5f47729748e2c11ee3", size = 1491226, upload-time = "2026-10-29T16:33:15.603Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/5b/66/004c85511812964a36b3535af022c5c0dfcb760a31e4905b96310e8dd6c8/pydantic_core-2.50.2-cp314-cp314-win32.whl", hash = "sha256:18f008ef58cd30782f81b6e0119e20b7e884edcefbc2d370162ebe033f6e5c99", size = 2113134, upload-time = "2026-10-29T16:33:16.87Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a3/5f/dcd3df20ab2a7279d42a8415fc184e8e77bcf9aa3c9ac3e938c1300a242c/pydantic_core-2.50.2-cp314-cp314-win_amd64.whl", hash = "sha256:b62c89545d21d930c333208fd548e7b4f262228ba3a322fd75c987a75ab11f31", size = 2253407, upload-time = "2026-10-29T16:33:18.47Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4e/fb/0685895f5d199b215011dc4eb8ccea032a64ec23dfa88eeb5acca939c2d2/pydantic_core-2.50.2-cp314-cp314-win_arm64.whl", hash = "sha256:6e731bf5a5e8e25398544d7709e39068ec4230b0177e4db7fa955692fd415ba3", size = 2160456, upload-time = "2026-10-29T16:33:19.782Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/84/2f/4c8f67efe62837a508b74cf910904f73029cb211371351c5ceb36d56e85e/pydantic_core-2.50.2-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:33c6800ab9563adaa0d7893e9cd8f5b972ef1e6a23df70498e05c24f3fcec5e1", size = 2217558, upload-time = "2026-10-29T16:33:21.323Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ce/73/e0ef88cfbcca5409f57751289bc20be63a58af596a36e94b8cd795e59747/pydantic_core-2.50.2-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:f81df206b937d0dca5efb38c25fc99037d82dbcd3740e34c3f81997d2322ac1c", size = 2074335, upload-time = "2026-10-29T16:33:22.658Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7b/cc/47844a3179ebce27064e13619594b3fc1a9b4509d8dec1e3960c5f87f5bb/pydantic_core-2.50.2-cp314-cp314t-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:21ea3b00f1e87c66f3f9e92f9f6fec20495ac0e60d7d2e68ba1fc49739d7cf40", size = 2264201, upload-time = "2026-10-29T16:33:24.953Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/bc/d1/30e9d3c86d81884ee3199560ddfa2c1a66a8dc0736441748eae43064abbc/pydantic_core-2.50.2-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:9eff570402175c7d5fff8497d5a9c05580664a79bb66c07b8f205d17f69e580b", size = 2094353, upload-time = "2026-10-29T16:33:26.739Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d4/8f/392a5999480d0bcab4539db0dafa93265152396fd63e87be4d24e13d6d82/pydantic_core-2.50.2-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:240fec32a74af0979f7253532859b3fd209ad5eea822416bb010929dba445c3d", size = 2203119, upload-time = "2026-10-29T16:33:28.154Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/cb/80/6e4e276a3fde5500224a39150e06a4f134f136165908be69402720718a36/pydantic_core-2.50.2-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:92acf02c770b9d5c4e9a3e8d64e9d95ae26456a86ebb7b7cf64a97f899e5871b", size = 2392881, upload-time = "2026-10-29T16:33:29.305Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/70/d5/5eb56c6317ab4abf33ef9519a50bfac0c96f7f408bad1bc36da6f27d43e4/pydantic_core-2.50.2-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:1ac5b99bc7b0a68ec64f5f75a6828a7bab5535c8df0cdc07901deb50e0815910", size = 2457290, upload-time = "2026-10-29T16:33:30.587Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7b/9e/f1fe9384bb37e4e728c51c79151808deacf7b2502e245f50b57c85eeb199/pydantic_core-2.50.2-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:713d7c33c0e231e3786eb0ec95885814dd65d5f3a09754399b6acbf5e9365f11", size = 2241568, upload-time = "2026-10-29T16:33:32.04Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9d/f1/cffc4f8456c35690bcb65a8f2304afbf2f519766345a28aba553d5a55cc8/pydantic_core-2.50.2-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:61e13100b30d8d25fc0d1f0297014b32941bf0975a3584bd08f3adebb68d1ead", size = 2257185, upload-time = "2026-10-29T16:33:33.36Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/84/34/ccd4df1cc39cb1e42fb7ec86a0dc0a23e8479de04d3012ca6b0bf2279a03/pydantic_core-2.50.2-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:523fe6574aea50f456cbc301c1cdddcbf237939f7657f9af99b4f0f71942b59c", size = 2299384, upload-time = "2026-10-29T16:33:34.799Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/83/60/404b4b0c416a61867ee642cdc1450bca4d8a9a10e5f5f21e1ecaad05fdc8/pydantic_core-2.50.2-cp314-cp314t-musllinux_1_1_armv7l.whl", hash = "sha256:6c25b8826be85714b27dafe908d3461e1b09e3e31c0279a7029040c832c781ef", size = 2479384, upload-time = "2026-10-29T16:33:36.106Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ca/0d/57c81418a2fdfde0578c71396df773965adebd4421d9985a0f8dcbe9ec4d/pydantic_core-2.50.2-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:a59db03b80a156a6fbeae41096866d1cb89cdf31031ba44c768a804538880636", size = 2504616, upload-time = "2026-10-29T16:33:37.423Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/08/66/dec78e28a604f3f4985f5a795d4da3e5fef78b0921aeb7f614ed7c780a32/pydantic_core-2.50.2-cp314-cp314t-win32.whl", hash = "sha256:0d090ae76d5b09c003600c7779b3adcf3d1b49268f616c5c51d844e54c8e318d", size = 2093179, upload-time = "2026-10-29T16:33:38.705Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d2/ea/79d9ee60648463804145d44b08f1e7e2474427d9704e3331d814483908b3/pydantic_core-2.50.2-cp314-cp314t-win_amd64.whl", hash = "sha256:9b01a092955c1c7530196ad526755cff4f2d11f37ca9a6fc9ebe37ca49a48977", size = 2220575, upload-time = "2026-10-29T16:33:39.929Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/eb/01/aa6a7bd017c3228a41942da4fd788b86fb4aad9677212a4737a0c157fe74/pydantic_core-2.50.2-cp314-cp314t-win_arm64.whl", hash = "sha256:4ea01f30e119f1ec7a2034e85c40f491d469896aef02cd6436fd9292fe1be3fb", size = 2160866, upload-time = "2026-10-29T16:33:41.237Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -3384,7 +3384,7 @@ wheels = [
|
||||
|
||||
[[package]]
|
||||
name = "pytest"
|
||||
version = "9.1.1"
|
||||
version = "9.2.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "colorama", marker = "sys_platform == 'win32'" },
|
||||
@@ -3393,9 +3393,9 @@ dependencies = [
|
||||
{ name = "pluggy" },
|
||||
{ name = "pygments" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/e4/47/b9efed96c114afcfa3c9d3fe98a76a1d14c74a9e266d397cf6eb64be5e01/pytest-9.1.1.tar.gz", hash = "sha256:1088fbde8f2b49d95a549a195707afa7a76a3ce9bcadc26b6d71f0ffda5fe313", size = 1636369, upload-time = "2026-06-19T10:58:32.857Z" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/79/42/bb4641652e58dedeac2ec51abc1f8cae4fee4ec63899a0999016229a0f2a/pytest-9.2.0.tar.gz", hash = "sha256:97c4f3b1f3c7414aa36465e09b8220f1d03627993bd51b1282e193753c80557b", size = 1797555, upload-time = "2026-10-27T21:30:20.728Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/24/25/1de2678b631f5a49215c6c96fff41ba892b0a34df68d6d80292b1b48aa7f/pytest-9.1.1-py3-none-any.whl", hash = "sha256:37a86b45efb9a47a61a36449063e8e18d0cab3161329fc099eb21783169c4f0c", size = 386536, upload-time = "2026-06-19T10:58:31.347Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/51/39/1f5d8c8877a0fa327db959c19341d4be61660de1ab6b7391f9eb805bcd67/pytest-9.2.0-py3-none-any.whl", hash = "sha256:07acdcf88ec174f907dc01af70bf52d49b014bbab03faeeade31c96b18c2e588", size = 411776, upload-time = "2026-10-27T21:30:19.131Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
* @file Bundler utilities.
|
||||
*/
|
||||
|
||||
import { createRequire } from "node:module";
|
||||
import { dirname, join } from "node:path";
|
||||
|
||||
import { NodeEnvironment, serializeEnvironmentVars } from "@goauthentik/core/environment/node";
|
||||
import {
|
||||
AuthentikVersion,
|
||||
@@ -34,3 +37,21 @@ export function createBundleDefinitions() {
|
||||
"process.env.NODE_ENV": SerializedNodeEnvironment,
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a mapping of import paths to the files a package ships without exporting them.
|
||||
*/
|
||||
export function createBundleAliases(): Record<string, string> {
|
||||
const require = createRequire(import.meta.url);
|
||||
|
||||
return {
|
||||
// Monaco's `exports` map covers only its modules. The editor renders in a shadow root,
|
||||
// so it needs the stylesheet that its modules would otherwise inject into the document.
|
||||
// `require` resolves the package to `min/vs/index.js`, next to that stylesheet.
|
||||
"monaco-editor/min/vs/editor/editor.main.css": join(
|
||||
dirname(require.resolve("monaco-editor")),
|
||||
"editor",
|
||||
"editor.main.css",
|
||||
),
|
||||
};
|
||||
}
|
||||
+2
-11
@@ -157,13 +157,6 @@
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"@codemirror/lang-css": "^6.3.1",
|
||||
"@codemirror/lang-html": "^6.4.11",
|
||||
"@codemirror/lang-javascript": "^6.2.5",
|
||||
"@codemirror/lang-python": "^6.2.1",
|
||||
"@codemirror/lang-xml": "^6.1.0",
|
||||
"@codemirror/legacy-modes": "^6.5.3",
|
||||
"@codemirror/theme-one-dark": "^6.1.3",
|
||||
"@formatjs/intl-listformat": "^8.3.13",
|
||||
"@fortawesome/fontawesome-free": "^7.3.1",
|
||||
"@goauthentik/api": "link:packages/client-ts",
|
||||
@@ -192,7 +185,6 @@
|
||||
"@storybook/addon-links": "^10.6.1",
|
||||
"@storybook/web-components": "^10.6.1",
|
||||
"@storybook/web-components-vite": "^10.6.1",
|
||||
"@types/codemirror": "^5.60.17",
|
||||
"@types/grecaptcha": "^3.0.9",
|
||||
"@types/guacamole-common-js": "^1.5.5",
|
||||
"@types/node": "catalog:",
|
||||
@@ -206,7 +198,6 @@
|
||||
"change-case": "^5.4.4",
|
||||
"chart.js": "^4.5.1",
|
||||
"chartjs-adapter-date-fns": "^3.0.0",
|
||||
"codemirror": "^6.0.2",
|
||||
"cookie": "^2.0.1",
|
||||
"core-js": "^3.49.0",
|
||||
"country-flag-icons": "^1.6.20",
|
||||
@@ -232,7 +223,8 @@
|
||||
"lit-html": "^3.3.3",
|
||||
"maplibre-gl": "^5.24.0",
|
||||
"md-front-matter": "^1.0.4",
|
||||
"mermaid": "^11.16.1",
|
||||
"mermaid": "^11.17.2",
|
||||
"monaco-editor": "^0.57.0",
|
||||
"node-domexception": "workspace:*",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"oxfmt": "catalog:",
|
||||
@@ -251,7 +243,6 @@
|
||||
"remark-gfm": "^4.0.1",
|
||||
"remark-rehype": "^11.1.2",
|
||||
"storybook": "^10.6.2",
|
||||
"style-mod": "^4.1.3",
|
||||
"stylelint": "^17.14.1",
|
||||
"trusted-types": "^2.0.0",
|
||||
"ts-pattern": "^5.9.0",
|
||||
|
||||
Generated
+59
-316
@@ -210,27 +210,6 @@ importers:
|
||||
|
||||
.:
|
||||
dependencies:
|
||||
'@codemirror/lang-css':
|
||||
specifier: ^6.3.1
|
||||
version: 6.3.1
|
||||
'@codemirror/lang-html':
|
||||
specifier: ^6.4.11
|
||||
version: 6.4.11
|
||||
'@codemirror/lang-javascript':
|
||||
specifier: ^6.2.5
|
||||
version: 6.2.5
|
||||
'@codemirror/lang-python':
|
||||
specifier: ^6.2.1
|
||||
version: 6.2.1
|
||||
'@codemirror/lang-xml':
|
||||
specifier: ^6.1.0
|
||||
version: 6.1.0
|
||||
'@codemirror/legacy-modes':
|
||||
specifier: ^6.5.3
|
||||
version: 6.5.3
|
||||
'@codemirror/theme-one-dark':
|
||||
specifier: ^6.1.3
|
||||
version: 6.1.3
|
||||
'@formatjs/intl-listformat':
|
||||
specifier: ^8.3.13
|
||||
version: 8.3.13
|
||||
@@ -278,7 +257,7 @@ importers:
|
||||
version: 1.0.3
|
||||
'@mermaid-js/layout-elk':
|
||||
specifier: ^0.2.2
|
||||
version: 0.2.2([email protected]6.1)
|
||||
version: 0.2.2([email protected]7.2)
|
||||
'@mrmarble/djangoql-completion':
|
||||
specifier: ^0.8.3
|
||||
version: 0.8.3
|
||||
@@ -315,9 +294,6 @@ importers:
|
||||
'@storybook/web-components-vite':
|
||||
specifier: ^10.6.1
|
||||
version: 10.6.1([email protected])([email protected](@types/[email protected])([email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected]))
|
||||
'@types/codemirror':
|
||||
specifier: ^5.60.17
|
||||
version: 5.60.17
|
||||
'@types/grecaptcha':
|
||||
specifier: ^3.0.9
|
||||
version: 3.0.9
|
||||
@@ -357,9 +333,6 @@ importers:
|
||||
chartjs-adapter-date-fns:
|
||||
specifier: ^3.0.0
|
||||
version: 3.0.0([email protected])([email protected])
|
||||
codemirror:
|
||||
specifier: ^6.0.2
|
||||
version: 6.0.2
|
||||
cookie:
|
||||
specifier: ^2.0.1
|
||||
version: 2.0.1
|
||||
@@ -436,8 +409,11 @@ importers:
|
||||
specifier: ^1.0.4
|
||||
version: 1.0.4
|
||||
mermaid:
|
||||
specifier: ^11.16.1
|
||||
version: 11.16.1
|
||||
specifier: ^11.17.2
|
||||
version: 11.17.2
|
||||
monaco-editor:
|
||||
specifier: ^0.57.0
|
||||
version: 0.57.0
|
||||
node-domexception:
|
||||
specifier: workspace:*
|
||||
version: link:packages/node-domexception
|
||||
@@ -492,9 +468,6 @@ importers:
|
||||
storybook:
|
||||
specifier: ^10.6.2
|
||||
version: 10.6.2(@types/[email protected])([email protected])([email protected])
|
||||
style-mod:
|
||||
specifier: ^4.1.3
|
||||
version: 4.1.3
|
||||
stylelint:
|
||||
specifier: ^17.14.1
|
||||
version: 17.14.1([email protected])([email protected])
|
||||
@@ -711,48 +684,6 @@ packages:
|
||||
'@chevrotain/[email protected]':
|
||||
resolution: {integrity: sha512-U+HFai5+zmJCkK86QsaJtoITlboZHBqrVketcO2ROv865xfCMSFpELQoz1GkX5GzME8pTa+3kbKrZHQtI0gdbw==}
|
||||
|
||||
'@codemirror/[email protected]':
|
||||
resolution: {integrity: sha512-tlosUqb+3BbxCxZdu4tKeRghPFC+QM7q4X5YhKV2eCmPG+1r2F3f4AaSz5sCrFqUtX4Jh20VFTKecl16MgiV9g==}
|
||||
|
||||
'@codemirror/[email protected]':
|
||||
resolution: {integrity: sha512-Ryk9y9T0FFVF0cUGhAknveAyUOl/A1qReTFi+qPKtOh2Z9F4AUBz3XOrYD4ZEgZirdugVzHvd/2/Wcwy5OliTg==}
|
||||
|
||||
'@codemirror/[email protected]':
|
||||
resolution: {integrity: sha512-kr5fwBGiGtmz6l0LSJIbno9QrifNMUusivHbnA1H6Dmqy4HZFte3UAICix1VuKo0lMPKQr2rqB+0BkKi/S3Ejg==}
|
||||
|
||||
'@codemirror/[email protected]':
|
||||
resolution: {integrity: sha512-9NsXp7Nwp891pQchI7gPdTwBuSuT3K65NGTHWHNJ55HjYcHLllr0rbIZNdOzas9ztc1EUVBlHou85FFZS4BNnw==}
|
||||
|
||||
'@codemirror/[email protected]':
|
||||
resolution: {integrity: sha512-zD4e5mS+50htS7F+TYjBPsiIFGanfVqg4HyUz6WNFikgOPf2BgKlx+TQedI1w6n/IqRBVBbBWmGFdLB/7uxO4A==}
|
||||
|
||||
'@codemirror/[email protected]':
|
||||
resolution: {integrity: sha512-IRjC8RUBhn9mGR9ywecNhB51yePWCGgvHfY1lWN/Mrp3cKuHr0isDKia+9HnvhiWNnMpbGhWrkhuWOc09exRyw==}
|
||||
|
||||
'@codemirror/[email protected]':
|
||||
resolution: {integrity: sha512-3z0blhicHLfwi2UgkZYRPioSgVTo9PV5GP5ducFH6FaHy0IAJRg+ixj5gTR1gnT/glAIC8xv4w2VL1LoZfs+Jg==}
|
||||
|
||||
'@codemirror/[email protected]':
|
||||
resolution: {integrity: sha512-1q4PaT+o6PbgpkJt4Q8Fv5XJxTy4FUZ4MWETtyiDw3J0Pyr9E2vqcKL+k9wcvjNTIsauxvE7OfmWj3FRPHQ76A==}
|
||||
|
||||
'@codemirror/[email protected]':
|
||||
resolution: {integrity: sha512-xCsmIzH78MyWkib9jlPaaun57XNkfbMIhagfaZVd0iLTqlpw3jXaIcbZm72MTmmn64eTZpBVNjbyYh+QXnxRsg==}
|
||||
|
||||
'@codemirror/[email protected]':
|
||||
resolution: {integrity: sha512-28/+iWLYxKxsvGYhSYL7zaCZqLz5+FFFDq9tVsvGv9kv8RY4fFAchJ5WX9M3YrrRlTIsECjsXPqeNgnSmNP2dg==}
|
||||
|
||||
'@codemirror/[email protected]':
|
||||
resolution: {integrity: sha512-uMe5UO6PamJtSHrXhhHOzSX3ReWtiJrva6GnPMwSOrZtiExb5X5eExhr2OUZQVvdxPsKpY3Ro2mFbQadpPWmHA==}
|
||||
|
||||
'@codemirror/[email protected]':
|
||||
resolution: {integrity: sha512-Zbl9NyscLMZkfXPQnNAIIAFftidrA1UbcJEIMp24C0Bukc2I5T8wJS0wsXYsnDOqCFJUeJ1BITGNs5CqPDSmSg==}
|
||||
|
||||
'@codemirror/[email protected]':
|
||||
resolution: {integrity: sha512-NzBdIvEJmx6fjeremiGp3t/okrLPYT0d9orIc7AFun8oZcRk58aejkqhv6spnz4MLAevrKNPMQYXEWMg4s+sKA==}
|
||||
|
||||
'@codemirror/[email protected]':
|
||||
resolution: {integrity: sha512-YImu23iyKfncJzT7sRy+rEqEhSc8RhOHqDxwy4WzXRKJwYm6iwf/9OJk5ctCAdZ6yi2ZqaGEvmf55fSVqMDrgg==}
|
||||
|
||||
'@csstools/[email protected]':
|
||||
resolution: {integrity: sha512-DtdHlgXh5ZkA43cwBcAm+huzgJiwx3ZTWVjBs94kwz2xKqSimDA3lBgCjphYgwgVUMWatSM0pDd8TILB1yrVVg==}
|
||||
engines: {node: '>=20.19.0'}
|
||||
@@ -1099,30 +1030,6 @@ packages:
|
||||
'@kurkle/[email protected]':
|
||||
resolution: {integrity: sha512-M5UknZPHRu3DEDWoipU6sE8PdkZ6Z/S+v4dD+Ke8IaNlpdSQah50lz1KtcFBa2vsdOnwbbnxJwVM4wty6udA5w==}
|
||||
|
||||
'@lezer/[email protected]':
|
||||
resolution: {integrity: sha512-sxQE460fPZyU3sdc8lafxiPwJHBzZRy/udNFynGQky1SePYBdhkBl1kOagA9uT3pxR8K09bOrmTUqA9wb/PjSQ==}
|
||||
|
||||
'@lezer/[email protected]':
|
||||
resolution: {integrity: sha512-N+tn9tej2hPvyKgHEApMOQfHczDJCwxrRFS3SPn9QjYN+uwHvEDnCgKRrb3mxDYxRS8sKMM8fhC3+lc04Abz5Q==}
|
||||
|
||||
'@lezer/[email protected]':
|
||||
resolution: {integrity: sha512-qXdH7UqTvGfdVBINrgKhDsVTJTxactNNxLk7+UMwZhU13lMHaOBlJe9Vqp907ya56Y3+ed2tlqzys7jDkTmW0g==}
|
||||
|
||||
'@lezer/[email protected]':
|
||||
resolution: {integrity: sha512-oI7n6NJml729m7pjm9lvLvmXbdoMoi2f+1pwSDJkl9d68zGr7a9Btz8NdHTGQZtW2DA25ybeuv/SyDb9D5tseg==}
|
||||
|
||||
'@lezer/[email protected]':
|
||||
resolution: {integrity: sha512-vvYx3MhWqeZtGPwDStM2dwgljd5smolYD2lR2UyFcHfxbBQebqx8yjmFmxtJ/E6nN6u1D9srOiVWm3Rb4tmcUA==}
|
||||
|
||||
'@lezer/[email protected]':
|
||||
resolution: {integrity: sha512-rnCpTIBafOx4mRp43xOxDJbFipJm/c0cia/V5TiGlhmMa+wsSdoGmUN3w5Bqrks/09Q/D4tNAmWaT8p6NRi77A==}
|
||||
|
||||
'@lezer/[email protected]':
|
||||
resolution: {integrity: sha512-MhQIURHRytsNzP/YXnqpYKW6la6voAH3kyplTOOiCdjyFY6cWWGFVmYVdHIPrElqSDf4iCDktQCockB9FxuhzQ==}
|
||||
|
||||
'@lezer/[email protected]':
|
||||
resolution: {integrity: sha512-CdDwirL0OEaStFue/66ZmFSeppuL6Dwjlk8qk153mSQwiSH/Dlri4GNymrNWnUmPl2Um7QfV1FO9KFUyX3Twww==}
|
||||
|
||||
'@lit-labs/[email protected]':
|
||||
resolution: {integrity: sha512-VHb0ALPMTlgKjM6yIxxoQNnpKyUKLD04VzeQdsiXkMqkvYlAHxq9glGLmgbb889/1GsohSOAjvQYoiBppXFqrQ==}
|
||||
|
||||
@@ -1178,9 +1085,6 @@ packages:
|
||||
'@maplibre/[email protected]':
|
||||
resolution: {integrity: sha512-j6p0AdjvAR19Z3XaCysle7A4ZSo08tYOzxD0Y9NQylwPAkwJJeYub5b2eVucdeDh7erhv69DahoLOevDRERRUw==}
|
||||
|
||||
'@marijn/[email protected]':
|
||||
resolution: {integrity: sha512-FY+MKLBoTsLNJF/eLWaOsXGdz6uh3Iu1axjPf6TUq92IYumcTcXWHoS747JARLkcdlJ/Waiaxc5wQfFO8jC6NA==}
|
||||
|
||||
'@mdx-js/[email protected]':
|
||||
resolution: {integrity: sha512-f++rKLQgUVYDAtECQ6fn/is15GkEH9+nZPM3MS0RcxVqoTfawHvDlSCH7JbMhAM6uJ32v3eXLvLmLvjGu7PTQw==}
|
||||
peerDependencies:
|
||||
@@ -1192,8 +1096,8 @@ packages:
|
||||
peerDependencies:
|
||||
mermaid: ^11.0.2
|
||||
|
||||
'@mermaid-js/[email protected].0':
|
||||
resolution: {integrity: sha512-oYPyv8A4As1yH5Bx+04iQEQxXuIQDe0GKCNSRgao6z8AM9jixXIfP0vsppRLvGf+nKIOb9/LdpWA4YuJiVvESA==}
|
||||
'@mermaid-js/[email protected].1':
|
||||
resolution: {integrity: sha512-n12NohV3mrUyUL2o93IgG/ifeW9FTyeJn3zDxkhwa8MJ9Fxg3HQMlA3RiGmD/3UnJvheztkjjQAjA2T4LmUcpw==}
|
||||
|
||||
'@mrmarble/[email protected]':
|
||||
resolution: {integrity: sha512-wYctvF0gQs48wL9jLQ+H2g2B0yJj7CrUSNi4ec5gcSuICIRqD/QSt6G+3zDdeW1LlI/4uj/FByJvg8k4TAAnVg==}
|
||||
@@ -2738,9 +2642,6 @@ packages:
|
||||
'@types/[email protected]':
|
||||
resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==}
|
||||
|
||||
'@types/[email protected]':
|
||||
resolution: {integrity: sha512-AZq2FIsUHVMlp7VSe2hTfl5w4pcUkoFkM3zVsRKsn1ca8CXRDYvnin04+HP2REkwsxemuHqvDofdlhUWNpbwfw==}
|
||||
|
||||
'@types/[email protected]':
|
||||
resolution: {integrity: sha512-hOLWVbm7uRza0BYXpIIW5pxfrKe0W+D5lrFiAEYR+pb6w3N2SwSMaJbXdUfSEv+dT4MfHBLtn5js0LAWaO6otw==}
|
||||
|
||||
@@ -2893,9 +2794,6 @@ packages:
|
||||
'@types/[email protected]':
|
||||
resolution: {integrity: sha512-FmgJfu+MOcQ370SD0ev7EI8TlCAfKYU+B4m5T3yXc1CiRN94g/SZPtsCkk506aUDtlMnFZvasDwHHUcZUEaYuA==}
|
||||
|
||||
'@types/[email protected]':
|
||||
resolution: {integrity: sha512-ypzHFE/wBzh+BlH6rrBgS5I/Z7RD21pGhZ2rltb/+ZrVM1awdZwjx7hE5XfuYgHWk9uvV5HLZN3SloevCAp3Bw==}
|
||||
|
||||
'@types/[email protected]':
|
||||
resolution: {integrity: sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==}
|
||||
|
||||
@@ -3066,10 +2964,9 @@ packages:
|
||||
resolution: {integrity: sha512-y5ArHvQ7BVule/+L9yE2nYMhceiJhgsqo58lOfnisQ7bg+Kjfmkgr7JBuVFiTkl+ErdShpp829QstZQyLugl8g==}
|
||||
engines: {node: '>=20'}
|
||||
|
||||
'@xmldom/[email protected]3':
|
||||
resolution: {integrity: sha512-KRYzxepc14G/CEpEGc3Yn+JKaAeT63smlDr+vjB8jRfgTBBI9wRj/nkQEO+ucV8p8I9bfKLWp37uHgFrbntPvw==}
|
||||
'@xmldom/[email protected]5':
|
||||
resolution: {integrity: sha512-/5NV/vDALVFDXgLmfsy9TRCBlKwO2LNBFzpzvb9iIj+jR+eSc6DLYYvVOdivT/jm7MtU6TebYuRmzEOI7w40UA==}
|
||||
engines: {node: '>=10.0.0'}
|
||||
deprecated: this version has critical issues, please update to the latest version
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==}
|
||||
@@ -3325,9 +3222,6 @@ packages:
|
||||
resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==}
|
||||
engines: {node: '>=12'}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-VhydHotNW5w1UGK0Qj96BwSk/Zqbp9WbnyK2W/eVMv4QyF41INRGpjUhFJY7/uDNuudSc33a/PKr4iDqRduvHw==}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==}
|
||||
|
||||
@@ -3415,9 +3309,6 @@ packages:
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-py8JiEKzjhYw6HPJ0L7SxLgCYim36UPRTZX43/kqGueUCZLSvnrqAiwW8HtQibur7mdkFQUkjOgdK+o/9FBtaw==}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-aK6BbWfhf4U/wCcLHKPJl/xa6VkVstRaPywWtMKGwuOLc/wZTyQYuoxgvZnNsBvv7Kg3YTBQYYBCggcviQczuA==}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-yyID2G7xhMPgVy+Kd6VPJC9s1czj5z1J8AaVsBmt5K5q9Ck9eEkWezMtm4Oe/D01Jg2K43edfhPIjk0qYEjZqA==}
|
||||
hasBin: true
|
||||
@@ -3713,6 +3604,9 @@ packages:
|
||||
resolution: {integrity: sha512-gYzvtM72ZtxQO0T048kd6HWSbbGCNOUwcnfQ01cqIJ4X2IYKFFHZ5mKvrQETcFXxsRObZulDaKmy//R7TPtsBg==}
|
||||
engines: {node: '>=20.19.0'}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-EUBjM+B+lkDE41iE82DDSCfkoPGfXx8IxFxPMjNzm/Uk4xDet77rTN9wqlxlVg71kK7XGuUMv6wUxJUwwv+Xyw==}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-B/pSlYVHQ58kqISD/yDjuJ1yfzI34m1gF4lAod2bwSRhiN4K5Cl3H8Af7hqB2PmTL911tdEudnnXn5FnhRoz0w==}
|
||||
|
||||
@@ -3924,6 +3818,9 @@ packages:
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-LB+xjSTEbjHE1cWsxu+tN2Xqr1kpi+V9aADI7sVM5ZMaXyYGPHULQMzpJMYqOTULK/73pUkWVzzObFRBkPr+hg==}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==}
|
||||
engines: {node: '>= 4.9.1'}
|
||||
@@ -4711,6 +4608,11 @@ packages:
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-wiYz4+JrLyb/DqW2hkFJxP7Vd7JuTDm77fvbM8VfEQdmSMqcImWeeRbHwZjBjIFki/VaMK2BhFi7oUUZeM5bqw==}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-uIj4+faQ+MgHgwUW1l2PsPglZLOLOT1uErt06dAPtx2kjteLAkbsd/0FiYg/MGS+i7ZKLb7w2WClxHkzOOuryQ==}
|
||||
engines: {node: '>= 18'}
|
||||
hasBin: true
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-TI3V8YYWvkVf3KJe1dRkpnjs68JUPyEa5vjKrp1XEEJUAOaQc+Qj+L1qWbPd0SJuAdQkFU0h73sXXqwDYxsiDA==}
|
||||
engines: {node: '>= 20'}
|
||||
@@ -4791,8 +4693,8 @@ packages:
|
||||
resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==}
|
||||
engines: {node: '>= 8'}
|
||||
|
||||
[email protected]6.1:
|
||||
resolution: {integrity: sha512-TQsq6u22fAn3rek5VOubrhKPo1g5hwC3FXUN9hiyupTckcYiGuuKGkNQrKYwGJkXUxZdojwRG46gsSCFZMDp4g==}
|
||||
[email protected]7.2:
|
||||
resolution: {integrity: sha512-V6K3C8EBdEsPFZXSKMJe6ppQOENxuHARr9GvHX4hh47lAbhMRD9qf4oEK7LoaRQxULMa80/qt5gHO73aCleBBg==}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-RDBrHEMSxVFLg6xvnXmb1Ayr2WzLAWjeSATAoxwKYJV94TeNavgoIdA0a9ytzDSVzBy2YKFK+emCPOEibLeCrg==}
|
||||
@@ -4930,6 +4832,9 @@ packages:
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-5BkI9KGoqrNvBGUe15/QlZq3OooZ8WLg1AxTpaqHRCP3HNpzPPZKE2EDz8M7c+VRmCeUw1Brp4cx/PWm3kI/5A==}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ==}
|
||||
engines: {node: '>=10'}
|
||||
@@ -4940,13 +4845,8 @@ packages:
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-TvmkNhkv8yct0SVBSy+o8wYzXjE4Zz3PCesbfs8HiCXXdcTuocApFv11UWlNFWKYsP2okqrhb7JNlSm9InBhIw==}
|
||||
|
||||
[email protected].15:
|
||||
resolution: {integrity: sha512-y7Wygv/7mEOvxTuEQDB8StXdMRBWf1kR/tlhAzBRUFkB2jfcLOAxO/SHmOO2zgz1pVgK29/kyupn059/bCHdjA==}
|
||||
engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
|
||||
hasBin: true
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-bzlKTyNJ7+LdGIIwy8ijFpIqEQIvafahV7eYykJ8Cvh42EdJeODoJ6gUJXpQJvej1BddH8OqTXZNE/KfbWAu8Q==}
|
||||
[email protected].20:
|
||||
resolution: {integrity: sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==}
|
||||
engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
|
||||
hasBin: true
|
||||
|
||||
@@ -5705,6 +5605,9 @@ packages:
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-1Yowhzjf0ivGMrTIkY9hav5TxobO9qIVqUE41fiCGMGgc3CLlf4MY+9AHmZqBWgDTue0fY9zWjYFVyf6Diuobw==}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-cEmp9QeXXRmjj/rVp9oyiqcvyocWab/HaoN4+bwFeZ7QzykJD6L3yD4v12K1x0tHpqRqVpJevN3gW7kyM39Bqg==}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==}
|
||||
engines: {node: '>=8'}
|
||||
@@ -5767,9 +5670,6 @@ packages:
|
||||
resolution: {integrity: sha512-ki4hZQfh5rX0QDLLkOCj+h+CVNkqmp/CMf8v8kZpkNVK6jGQooMytqzLZYUVYIZcFZ6yDB70EfD8POcFXiF5oA==}
|
||||
engines: {node: '>=18'}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-i/n8VsZydrugj3Iuzll8+x/00GH2vnYsk1eomD8QiRrSAeW6ItbCQDtfXCeJHd0iwiNagqjQkvpvREEPtW3IoQ==}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-xVQwyiuxALUBNB2fBe0tmNemg9KqLtdj3T64mioFDar79B2cU8LIyz+3KL6LdiHs9NkeNfwxpKSaIVOY8f112g==}
|
||||
engines: {node: '>=20.19.0'}
|
||||
@@ -6160,9 +6060,6 @@ packages:
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-8TEXQxlldWAuIODdukIb+TR5s+9Ds40eSJrw+1iDDA9IFORPjMELarNQE3myz5XIkWWpdprmJjm1/SxMlWOC8A==}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ==}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-3hu+tD8YzSLGuFYtPRb48vdhKMi0KQV5sn+uWr8+7dMEq/2G/dtLrdDinkLjqq5TIbIBjYJ4Ax/n3YiaW7QM8A==}
|
||||
engines: {node: 20 || >=22}
|
||||
@@ -6344,110 +6241,6 @@ snapshots:
|
||||
|
||||
'@chevrotain/[email protected]': {}
|
||||
|
||||
'@codemirror/[email protected]':
|
||||
dependencies:
|
||||
'@codemirror/language': 6.12.4
|
||||
'@codemirror/state': 6.7.0
|
||||
'@codemirror/view': 6.43.4
|
||||
'@lezer/common': 1.5.2
|
||||
|
||||
'@codemirror/[email protected]':
|
||||
dependencies:
|
||||
'@codemirror/language': 6.12.4
|
||||
'@codemirror/state': 6.7.0
|
||||
'@codemirror/view': 6.43.4
|
||||
'@lezer/common': 1.5.2
|
||||
|
||||
'@codemirror/[email protected]':
|
||||
dependencies:
|
||||
'@codemirror/autocomplete': 6.20.3
|
||||
'@codemirror/language': 6.12.4
|
||||
'@codemirror/state': 6.7.0
|
||||
'@lezer/common': 1.5.2
|
||||
'@lezer/css': 1.3.4
|
||||
|
||||
'@codemirror/[email protected]':
|
||||
dependencies:
|
||||
'@codemirror/autocomplete': 6.20.3
|
||||
'@codemirror/lang-css': 6.3.1
|
||||
'@codemirror/lang-javascript': 6.2.5
|
||||
'@codemirror/language': 6.12.4
|
||||
'@codemirror/state': 6.7.0
|
||||
'@codemirror/view': 6.43.4
|
||||
'@lezer/common': 1.5.2
|
||||
'@lezer/css': 1.3.4
|
||||
'@lezer/html': 1.3.13
|
||||
|
||||
'@codemirror/[email protected]':
|
||||
dependencies:
|
||||
'@codemirror/autocomplete': 6.20.3
|
||||
'@codemirror/language': 6.12.4
|
||||
'@codemirror/lint': 6.9.7
|
||||
'@codemirror/state': 6.7.0
|
||||
'@codemirror/view': 6.43.4
|
||||
'@lezer/common': 1.5.2
|
||||
'@lezer/javascript': 1.5.4
|
||||
|
||||
'@codemirror/[email protected]':
|
||||
dependencies:
|
||||
'@codemirror/autocomplete': 6.20.3
|
||||
'@codemirror/language': 6.12.4
|
||||
'@codemirror/state': 6.7.0
|
||||
'@lezer/common': 1.5.2
|
||||
'@lezer/python': 1.1.19
|
||||
|
||||
'@codemirror/[email protected]':
|
||||
dependencies:
|
||||
'@codemirror/autocomplete': 6.20.3
|
||||
'@codemirror/language': 6.12.4
|
||||
'@codemirror/state': 6.7.0
|
||||
'@codemirror/view': 6.43.4
|
||||
'@lezer/common': 1.5.2
|
||||
'@lezer/xml': 1.0.6
|
||||
|
||||
'@codemirror/[email protected]':
|
||||
dependencies:
|
||||
'@codemirror/state': 6.7.0
|
||||
'@codemirror/view': 6.43.4
|
||||
'@lezer/common': 1.5.2
|
||||
'@lezer/highlight': 1.2.3
|
||||
'@lezer/lr': 1.4.10
|
||||
style-mod: 4.1.3
|
||||
|
||||
'@codemirror/[email protected]':
|
||||
dependencies:
|
||||
'@codemirror/language': 6.12.4
|
||||
|
||||
'@codemirror/[email protected]':
|
||||
dependencies:
|
||||
'@codemirror/state': 6.7.0
|
||||
'@codemirror/view': 6.43.4
|
||||
crelt: 1.0.7
|
||||
|
||||
'@codemirror/[email protected]':
|
||||
dependencies:
|
||||
'@codemirror/state': 6.7.0
|
||||
'@codemirror/view': 6.43.4
|
||||
crelt: 1.0.7
|
||||
|
||||
'@codemirror/[email protected]':
|
||||
dependencies:
|
||||
'@marijn/find-cluster-break': 1.0.3
|
||||
|
||||
'@codemirror/[email protected]':
|
||||
dependencies:
|
||||
'@codemirror/language': 6.12.4
|
||||
'@codemirror/state': 6.7.0
|
||||
'@codemirror/view': 6.43.4
|
||||
'@lezer/highlight': 1.2.3
|
||||
|
||||
'@codemirror/[email protected]':
|
||||
dependencies:
|
||||
'@codemirror/state': 6.7.0
|
||||
crelt: 1.0.7
|
||||
style-mod: 4.1.3
|
||||
w3c-keyname: 2.2.8
|
||||
|
||||
'@csstools/[email protected](@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])':
|
||||
dependencies:
|
||||
'@csstools/css-parser-algorithms': 4.0.0(@csstools/[email protected])
|
||||
@@ -6717,46 +6510,6 @@ snapshots:
|
||||
|
||||
'@kurkle/[email protected]': {}
|
||||
|
||||
'@lezer/[email protected]': {}
|
||||
|
||||
'@lezer/[email protected]':
|
||||
dependencies:
|
||||
'@lezer/common': 1.5.2
|
||||
'@lezer/highlight': 1.2.3
|
||||
'@lezer/lr': 1.4.10
|
||||
|
||||
'@lezer/[email protected]':
|
||||
dependencies:
|
||||
'@lezer/common': 1.5.2
|
||||
|
||||
'@lezer/[email protected]':
|
||||
dependencies:
|
||||
'@lezer/common': 1.5.2
|
||||
'@lezer/highlight': 1.2.3
|
||||
'@lezer/lr': 1.4.10
|
||||
|
||||
'@lezer/[email protected]':
|
||||
dependencies:
|
||||
'@lezer/common': 1.5.2
|
||||
'@lezer/highlight': 1.2.3
|
||||
'@lezer/lr': 1.4.10
|
||||
|
||||
'@lezer/[email protected]':
|
||||
dependencies:
|
||||
'@lezer/common': 1.5.2
|
||||
|
||||
'@lezer/[email protected]':
|
||||
dependencies:
|
||||
'@lezer/common': 1.5.2
|
||||
'@lezer/highlight': 1.2.3
|
||||
'@lezer/lr': 1.4.10
|
||||
|
||||
'@lezer/[email protected]':
|
||||
dependencies:
|
||||
'@lezer/common': 1.5.2
|
||||
'@lezer/highlight': 1.2.3
|
||||
'@lezer/lr': 1.4.10
|
||||
|
||||
'@lit-labs/[email protected]': {}
|
||||
|
||||
'@lit/[email protected]':
|
||||
@@ -6767,7 +6520,7 @@ snapshots:
|
||||
dependencies:
|
||||
'@lit/localize': 0.12.2
|
||||
'@parse5/tools': 0.3.0
|
||||
'@xmldom/xmldom': 0.8.13
|
||||
'@xmldom/xmldom': 0.8.15
|
||||
fast-glob: 3.3.3
|
||||
fs-extra: 10.1.0
|
||||
jsonschema: 1.5.0
|
||||
@@ -6830,21 +6583,19 @@ snapshots:
|
||||
'@types/geojson': 7946.0.16
|
||||
pbf: 5.1.2
|
||||
|
||||
'@marijn/[email protected]': {}
|
||||
|
||||
'@mdx-js/[email protected](@types/[email protected])([email protected])':
|
||||
dependencies:
|
||||
'@types/mdx': 2.0.14
|
||||
'@types/react': 19.3.0
|
||||
react: 19.3.0
|
||||
|
||||
'@mermaid-js/[email protected]([email protected]6.1)':
|
||||
'@mermaid-js/[email protected]([email protected]7.2)':
|
||||
dependencies:
|
||||
d3: 7.9.0
|
||||
elkjs: 0.9.3
|
||||
mermaid: 11.16.1
|
||||
mermaid: 11.17.2
|
||||
|
||||
'@mermaid-js/[email protected].0':
|
||||
'@mermaid-js/[email protected].1':
|
||||
dependencies:
|
||||
'@chevrotain/types': 11.1.2
|
||||
|
||||
@@ -8217,10 +7968,6 @@ snapshots:
|
||||
'@types/deep-eql': 4.0.2
|
||||
assertion-error: 2.0.1
|
||||
|
||||
'@types/[email protected]':
|
||||
dependencies:
|
||||
'@types/tern': 0.23.9
|
||||
|
||||
'@types/[email protected]': {}
|
||||
|
||||
'@types/[email protected]':
|
||||
@@ -8390,10 +8137,6 @@ snapshots:
|
||||
|
||||
'@types/[email protected]': {}
|
||||
|
||||
'@types/[email protected]':
|
||||
dependencies:
|
||||
'@types/estree': 1.0.9
|
||||
|
||||
'@types/[email protected]': {}
|
||||
|
||||
'@types/[email protected]': {}
|
||||
@@ -8642,7 +8385,7 @@ snapshots:
|
||||
dependencies:
|
||||
system-architecture: 1.0.0
|
||||
|
||||
'@xmldom/[email protected]3': {}
|
||||
'@xmldom/[email protected]5': {}
|
||||
|
||||
[email protected]([email protected]):
|
||||
dependencies:
|
||||
@@ -8904,16 +8647,6 @@ snapshots:
|
||||
strip-ansi: 6.0.1
|
||||
wrap-ansi: 7.0.0
|
||||
|
||||
[email protected]:
|
||||
dependencies:
|
||||
'@codemirror/autocomplete': 6.20.3
|
||||
'@codemirror/commands': 6.10.4
|
||||
'@codemirror/language': 6.12.4
|
||||
'@codemirror/lint': 6.9.7
|
||||
'@codemirror/search': 6.7.1
|
||||
'@codemirror/state': 6.7.0
|
||||
'@codemirror/view': 6.43.4
|
||||
|
||||
[email protected]:
|
||||
dependencies:
|
||||
color-name: 1.1.3
|
||||
@@ -8979,8 +8712,6 @@ snapshots:
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]:
|
||||
@@ -9291,6 +9022,10 @@ snapshots:
|
||||
dependencies:
|
||||
domelementtype: 3.0.0
|
||||
|
||||
[email protected]:
|
||||
optionalDependencies:
|
||||
'@types/trusted-types': 2.0.7
|
||||
|
||||
[email protected]:
|
||||
optionalDependencies:
|
||||
'@types/trusted-types': 2.0.7
|
||||
@@ -9608,6 +9343,10 @@ snapshots:
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]:
|
||||
dependencies:
|
||||
strictdom: 1.0.1
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]:
|
||||
@@ -10404,6 +10143,8 @@ snapshots:
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]: {}
|
||||
@@ -10565,11 +10306,11 @@ snapshots:
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]6.1:
|
||||
[email protected]7.2:
|
||||
dependencies:
|
||||
'@braintree/sanitize-url': 7.1.2
|
||||
'@iconify/utils': 3.1.4
|
||||
'@mermaid-js/parser': 1.2.0
|
||||
'@mermaid-js/parser': 1.2.1
|
||||
'@types/d3': 7.4.3
|
||||
'@upsetjs/venn.js': 2.0.0
|
||||
cytoscape: 3.34.0
|
||||
@@ -10581,6 +10322,7 @@ snapshots:
|
||||
dayjs: 1.11.21
|
||||
dompurify: 3.4.17
|
||||
es-toolkit: 1.50.0
|
||||
fastdom: 1.0.12
|
||||
katex: 0.16.47
|
||||
khroma: 2.1.0
|
||||
marked: 16.4.2
|
||||
@@ -10834,15 +10576,18 @@ snapshots:
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]:
|
||||
dependencies:
|
||||
dompurify: 3.4.15
|
||||
marked: 14.0.0
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected].15: {}
|
||||
|
||||
[email protected]: {}
|
||||
[email protected].20: {}
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
@@ -11264,13 +11009,13 @@ snapshots:
|
||||
|
||||
[email protected]:
|
||||
dependencies:
|
||||
nanoid: 3.3.15
|
||||
nanoid: 3.3.20
|
||||
picocolors: 1.1.1
|
||||
source-map-js: 1.2.2
|
||||
|
||||
[email protected]:
|
||||
dependencies:
|
||||
nanoid: 3.3.16
|
||||
nanoid: 3.3.20
|
||||
picocolors: 1.1.1
|
||||
source-map-js: 1.2.2
|
||||
|
||||
@@ -11807,6 +11552,8 @@ snapshots:
|
||||
- bare-abort-controller
|
||||
- react-native-b4a
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]:
|
||||
dependencies:
|
||||
emoji-regex: 8.0.0
|
||||
@@ -11883,8 +11630,6 @@ snapshots:
|
||||
dependencies:
|
||||
'@tokenizer/token': 0.3.0
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]([email protected])([email protected]):
|
||||
dependencies:
|
||||
'@csstools/css-calc': 3.2.1(@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])
|
||||
@@ -12305,8 +12050,6 @@ snapshots:
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
@@ -11,7 +11,7 @@ import { copyAssets } from "./build-assets.ts";
|
||||
import { localeManifestPlugin } from "#bundler/locale-manifest-plugin/node";
|
||||
import { mdxPlugin } from "#bundler/mdx-plugin/node";
|
||||
import { styleLoaderPlugin } from "#bundler/style-loader-plugin/node";
|
||||
import { createBundleDefinitions } from "#bundler/utils/node";
|
||||
import { createBundleAliases, createBundleDefinitions } from "#bundler/utils/node";
|
||||
import { ConsoleLogger } from "#logger/node";
|
||||
import { DistDirectory, EntryPoint, PackageRoot } from "#paths/node";
|
||||
|
||||
@@ -126,6 +126,7 @@ const BASE_ESBUILD_OPTIONS: BuildOptions = {
|
||||
...(NodeEnvironment === "production" ? ["production"] : ["development", "production"]),
|
||||
],
|
||||
plugins: BASE_ESBUILD_PLUGINS,
|
||||
alias: createBundleAliases(),
|
||||
define: bundleDefinitions,
|
||||
format: "esm",
|
||||
};
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import "#admin/admin-settings/AdminSettingsForm";
|
||||
import "#admin/events/ObjectChangelog";
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/EmptyState";
|
||||
import "#elements/Tabs";
|
||||
import "#elements/buttons/ModalButton";
|
||||
|
||||
@@ -29,11 +29,9 @@ import { Application, CoreApi, PoliciesApi } from "@goauthentik/api";
|
||||
import MDApplication from "~docs/add-secure-apps/applications/index.mdx";
|
||||
|
||||
import { msg, str } from "@lit/localize";
|
||||
import { css, CSSResult, html, nothing, PropertyValues, TemplateResult } from "lit";
|
||||
import { CSSResult, html, nothing, PropertyValues, TemplateResult } from "lit";
|
||||
import { customElement, property } from "lit/decorators.js";
|
||||
|
||||
export const applicationListStyle = css``;
|
||||
|
||||
@customElement("ak-application-list")
|
||||
export class ApplicationListPage extends WithBrandConfig(TablePage<Application>) {
|
||||
public static styles: CSSResult[] = [
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
import "#components/ak-text-input";
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/ak-dual-select/ak-dual-select-dynamic-selected-provider";
|
||||
import { ApplicationWizardProviderForm } from "#admin/applications/wizard/steps/providers/ApplicationWizardProviderForm";
|
||||
import { AKAuthorizationFlowField } from "#admin/providers/components/flow-fields";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import "#components/ak-text-input";
|
||||
import "#elements/ToggleGroup";
|
||||
import "#components/ak-switch-input";
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/forms/FormGroup";
|
||||
import "#elements/forms/HorizontalFormElement";
|
||||
import PFContent from "@patternfly/patternfly/components/Content/content.css";
|
||||
@@ -179,11 +179,11 @@ export class BlueprintForm extends ModelForm<BlueprintInstance, string> {
|
||||
label=${msg("Blueprint")}
|
||||
name="content"
|
||||
>
|
||||
<ak-codemirror
|
||||
<ak-code-editor
|
||||
mode="yaml"
|
||||
raw
|
||||
value="${ifDefined(this.instance?.content)}"
|
||||
></ak-codemirror>
|
||||
></ak-code-editor>
|
||||
</ak-form-element-horizontal>`
|
||||
: nothing
|
||||
}
|
||||
@@ -193,11 +193,11 @@ export class BlueprintForm extends ModelForm<BlueprintInstance, string> {
|
||||
<ak-form-group label="${msg("Additional settings")}">
|
||||
<div class="pf-c-form">
|
||||
<ak-form-element-horizontal label=${msg("Context")} name="context">
|
||||
<ak-codemirror
|
||||
<ak-code-editor
|
||||
mode="yaml"
|
||||
value="${YAML.stringify(this.instance?.context ?? {})}"
|
||||
>
|
||||
</ak-codemirror>
|
||||
</ak-code-editor>
|
||||
<p class="pf-c-form__helper-text">
|
||||
${msg("Configure the blueprint context, used for templating.")}
|
||||
</p>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/Alert";
|
||||
import "#elements/ak-dual-select/ak-dual-select-dynamic-selected-provider";
|
||||
import "#elements/ak-dual-select/ak-dual-select-provider";
|
||||
@@ -210,12 +210,12 @@ export class BrandForm extends ModelForm<Brand, string> {
|
||||
msg("Custom CSS"),
|
||||
)}
|
||||
|
||||
<ak-codemirror
|
||||
<ak-code-editor
|
||||
id="branding-custom-css"
|
||||
mode="css"
|
||||
value=${brandingCustomCss}
|
||||
>
|
||||
</ak-codemirror>
|
||||
</ak-code-editor>
|
||||
<p class="pf-c-form__helper-text">
|
||||
${msg("Custom CSS to apply to pages when this brand is active.")}
|
||||
</p>
|
||||
@@ -382,14 +382,14 @@ export class BrandForm extends ModelForm<Brand, string> {
|
||||
},
|
||||
msg("Attributes"),
|
||||
)}
|
||||
<ak-codemirror
|
||||
<ak-code-editor
|
||||
id="attributes"
|
||||
name="attributes"
|
||||
mode="yaml"
|
||||
value="${YAML.stringify(this.instance?.attributes ?? {})}"
|
||||
aria-describedby="attributes-help"
|
||||
>
|
||||
</ak-codemirror>
|
||||
</ak-code-editor>
|
||||
<p class="pf-c-form__helper-text" id="attributes-help">
|
||||
${msg(
|
||||
"Set custom attributes using YAML or JSON. Any attributes set here will be inherited by users, if the request is handled by this brand.",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import "#components/ak-secret-textarea-input";
|
||||
import "#components/ak-text-input";
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/forms/HorizontalFormElement";
|
||||
import { aki } from "#common/api/client";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/buttons/ActionButton/index";
|
||||
import "#elements/Expand";
|
||||
import { aki } from "#common/api/client";
|
||||
@@ -80,11 +80,11 @@ export class ConfigModal extends ModalButton {
|
||||
text-closed=${msg("Show MDM configuration")}
|
||||
text-open=${msg("Hide MDM configuration")}
|
||||
>
|
||||
<ak-codemirror
|
||||
<ak-code-editor
|
||||
mode="xml"
|
||||
readonly
|
||||
value="${ifDefined(this.config?.config)}"
|
||||
></ak-codemirror>
|
||||
></ak-code-editor>
|
||||
</ak-expand>
|
||||
</div>
|
||||
<fieldset class="ak-c-fieldset pf-c-modal-box__footer">
|
||||
|
||||
@@ -2,7 +2,7 @@ import "#components/ak-secret-text-input";
|
||||
import "#components/ak-switch-input";
|
||||
import "#components/ak-text-input";
|
||||
import "#elements/forms/FormGroup";
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import { aki } from "#common/api/client";
|
||||
|
||||
import { ModelForm } from "#elements/forms/ModelForm";
|
||||
@@ -61,10 +61,10 @@ export class GoogleChromeConnectorForm extends ModelForm<GoogleChromeConnector,
|
||||
required
|
||||
name="credentials"
|
||||
>
|
||||
<ak-codemirror
|
||||
<ak-code-editor
|
||||
mode="javascript"
|
||||
.value="${this.instance?.credentials ?? {}}"
|
||||
></ak-codemirror>
|
||||
></ak-code-editor>
|
||||
<p class="pf-c-form__helper-text">
|
||||
${msg("Google Cloud credentials file.")}
|
||||
</p>
|
||||
|
||||
@@ -3,7 +3,7 @@ import "#components/ak-radio-input";
|
||||
import "#elements/forms/HorizontalFormElement";
|
||||
import "#elements/forms/FormGroup";
|
||||
import "#elements/utils/TimeDeltaHelp";
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import { aki } from "#common/api/client";
|
||||
|
||||
import { ModelForm } from "#elements/forms/ModelForm";
|
||||
@@ -99,11 +99,11 @@ export class EndpointDeviceForm extends ModelForm<EndpointDevice, string> {
|
||||
})}
|
||||
</ak-form-element-horizontal>
|
||||
<ak-form-element-horizontal label=${msg("Attributes")} name="attributes">
|
||||
<ak-codemirror
|
||||
<ak-code-editor
|
||||
mode="yaml"
|
||||
value="${YAML.stringify(this.instance?.attributes ?? {})}"
|
||||
>
|
||||
</ak-codemirror>
|
||||
</ak-code-editor>
|
||||
<p class="pf-c-form__helper-text">
|
||||
${msg("Set custom attributes using YAML or JSON.")}
|
||||
</p>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import "#components/ak-secret-textarea-input";
|
||||
import "#components/ak-text-input";
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/forms/HorizontalFormElement";
|
||||
import { aki } from "#common/api/client";
|
||||
import { EVENT_REFRESH_ENTERPRISE } from "#common/constants";
|
||||
|
||||
@@ -5,7 +5,7 @@ import "#components/ak-object-attributes-card";
|
||||
import "#admin/lifecycle/ObjectLifecyclePage";
|
||||
import "#components/ak-status-label";
|
||||
import "#admin/events/ObjectChangelog";
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/Tabs";
|
||||
import "#elements/buttons/ActionButton/index";
|
||||
import "#elements/buttons/SpinnerButton/index";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import "#admin/groups/ak-group-member-table";
|
||||
import "#components/ak-switch-input";
|
||||
import "#components/ak-text-input";
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/ak-dual-select/ak-dual-select-provider";
|
||||
import "#elements/chips/Chip";
|
||||
import "#elements/chips/ChipGroup";
|
||||
|
||||
@@ -2,7 +2,7 @@ import "#components/ak-text-input";
|
||||
import "#components/ak-switch-input";
|
||||
import "#components/ak-number-input";
|
||||
import "#elements/forms/FormGroup";
|
||||
import "#elements/CodeMirror/ak-codemirror";
|
||||
import "#elements/CodeEditor/ak-code-editor";
|
||||
import { aki } from "#common/api/client";
|
||||
import { groupBy } from "#common/utils";
|
||||
|
||||
@@ -153,8 +153,8 @@ export abstract class ObjectAttributeModelForm<
|
||||
: html`<ak-form-group label=${msg("Advanced settings")}>
|
||||
<div class="pf-c-form">
|
||||
<ak-form-element-horizontal label=${msg("Attributes")} name="attributes">
|
||||
<ak-codemirror mode="yaml" value="${YAML.stringify(values)}">
|
||||
</ak-codemirror>
|
||||
<ak-code-editor mode="yaml" value="${YAML.stringify(values)}">
|
||||
</ak-code-editor>
|
||||
<p class="pf-c-form__helper-text">
|
||||
${msg("Set custom attributes using YAML or JSON.")}
|
||||
</p>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/ak-dual-select/ak-dual-select-provider";
|
||||
import "#elements/forms/FormGroup";
|
||||
import "#elements/forms/HorizontalFormElement";
|
||||
@@ -259,7 +259,7 @@ export class OutpostForm extends ModelForm<Outpost, string> {
|
||||
msg("Configuration"),
|
||||
)}
|
||||
|
||||
<ak-codemirror
|
||||
<ak-code-editor
|
||||
id="configuration"
|
||||
name="config"
|
||||
mode="yaml"
|
||||
@@ -267,7 +267,7 @@ export class OutpostForm extends ModelForm<Outpost, string> {
|
||||
this.instance ? this.instance.config : this.defaultConfig?.config,
|
||||
)}"
|
||||
aria-describedby="config-help"
|
||||
></ak-codemirror>
|
||||
></ak-code-editor>
|
||||
<div id="config-help">
|
||||
<p class="pf-c-form__helper-text">
|
||||
${msg("Set custom attributes using YAML or JSON.")}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/forms/HorizontalFormElement";
|
||||
import "#components/ak-switch-input";
|
||||
import { aki } from "#common/api/client";
|
||||
@@ -58,11 +58,11 @@ export class ServiceConnectionKubernetesForm extends ModelForm<
|
||||
>
|
||||
</ak-switch-input>
|
||||
<ak-form-element-horizontal label=${msg("Kubeconfig")} name="kubeconfig">
|
||||
<ak-codemirror
|
||||
<ak-code-editor
|
||||
mode="yaml"
|
||||
value="${YAML.stringify(this.instance?.kubeconfig ?? {})}"
|
||||
>
|
||||
</ak-codemirror>
|
||||
</ak-code-editor>
|
||||
<p class="pf-c-form__helper-text">
|
||||
${msg("Set custom attributes using YAML or JSON.")}
|
||||
</p>
|
||||
|
||||
@@ -23,7 +23,7 @@ import { Group, PoliciesApi, PolicyBinding, User } from "@goauthentik/api";
|
||||
import { match, P } from "ts-pattern";
|
||||
|
||||
import { msg } from "@lit/localize";
|
||||
import { CSSResult, html, nothing, TemplateResult } from "lit";
|
||||
import { css, CSSResult, html, nothing, TemplateResult } from "lit";
|
||||
import { customElement, property, state } from "lit/decorators.js";
|
||||
|
||||
export type PolicyBindingNotice = { type: PolicyBindingCheckTarget; notice: string };
|
||||
@@ -60,12 +60,20 @@ export function cleanBindingForSend(
|
||||
return data;
|
||||
}
|
||||
|
||||
const Styles = css`
|
||||
.ak-c-form--centered-control {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
`;
|
||||
|
||||
@customElement("ak-policy-binding-form")
|
||||
export class PolicyBindingForm<T extends PolicyBinding = PolicyBinding> extends ModelForm<
|
||||
T,
|
||||
string
|
||||
> {
|
||||
public static styles: CSSResult[] = [...super.styles, PFContent];
|
||||
public static styles: CSSResult[] = [...super.styles, PFContent, Styles];
|
||||
public static verboseName = msg("Policy Binding");
|
||||
public static verboseNamePlural = msg("Policy Bindings");
|
||||
|
||||
@@ -158,22 +166,24 @@ export class PolicyBindingForm<T extends PolicyBinding = PolicyBinding> extends
|
||||
}
|
||||
|
||||
renderModeSelector(): TemplateResult {
|
||||
return html` <ak-toggle-group
|
||||
value=${this.policyGroupUser}
|
||||
@ak-toggle=${(ev: ToggleGroupEvent<PolicyBindingCheckTarget>) => {
|
||||
this.policyGroupUser = ev.value;
|
||||
}}
|
||||
>
|
||||
${Object.values(PolicyBindingCheckTarget).map((ct) => {
|
||||
if (this.allowedTypes.includes(ct)) {
|
||||
return html`<option value=${ct}>
|
||||
${PolicyBindingCheckTargetToLabel(ct)}
|
||||
</option>`;
|
||||
}
|
||||
return html`<div class="ak-c-form--centered-control">
|
||||
<ak-toggle-group
|
||||
value=${this.policyGroupUser}
|
||||
@ak-toggle=${(ev: ToggleGroupEvent<PolicyBindingCheckTarget>) => {
|
||||
this.policyGroupUser = ev.value;
|
||||
}}
|
||||
>
|
||||
${Object.values(PolicyBindingCheckTarget).map((ct) => {
|
||||
if (this.allowedTypes.includes(ct)) {
|
||||
return html`<option value=${ct}>
|
||||
${PolicyBindingCheckTargetToLabel(ct)}
|
||||
</option>`;
|
||||
}
|
||||
|
||||
return nothing;
|
||||
})}
|
||||
</ak-toggle-group>`;
|
||||
return nothing;
|
||||
})}
|
||||
</ak-toggle-group>
|
||||
</div>`;
|
||||
}
|
||||
|
||||
protected renderTarget() {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import "#components/ak-status-label";
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/events/LogViewer";
|
||||
import "#elements/forms/HorizontalFormElement";
|
||||
import PFDescriptionList from "@patternfly/patternfly/components/DescriptionList/description-list.css";
|
||||
@@ -142,12 +142,12 @@ export class PolicyTestForm extends Form<PolicyTestRequest> {
|
||||
},
|
||||
msg("Context"),
|
||||
)}
|
||||
<ak-codemirror
|
||||
<ak-code-editor
|
||||
id="context"
|
||||
mode="yaml"
|
||||
value=${YAML.stringify(this.request?.context ?? {})}
|
||||
>
|
||||
</ak-codemirror>
|
||||
</ak-code-editor>
|
||||
<p class="pf-c-form__helper-text">
|
||||
${msg("Set custom attributes using YAML or JSON.")}
|
||||
</p>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import "#components/ak-switch-input";
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/forms/FormGroup";
|
||||
import "#elements/forms/HorizontalFormElement";
|
||||
import { aki } from "#common/api/client";
|
||||
@@ -62,11 +62,11 @@ export class ExpressionPolicyForm extends BasePolicyForm<ExpressionPolicy> {
|
||||
required
|
||||
name="expression"
|
||||
>
|
||||
<ak-codemirror
|
||||
<ak-code-editor
|
||||
mode="python"
|
||||
value="${ifDefined(this.instance?.expression)}"
|
||||
>
|
||||
</ak-codemirror>
|
||||
</ak-code-editor>
|
||||
<p class="pf-c-form__helper-text">
|
||||
${msg("Expression using Python.")}
|
||||
<a
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import "#elements/CodeMirror/ak-codemirror";
|
||||
import "#elements/CodeEditor/ak-code-editor";
|
||||
import "#components/ak-text-input";
|
||||
import { docLink } from "#common/global";
|
||||
|
||||
@@ -45,8 +45,8 @@ export abstract class BasePropertyMappingForm<T extends PropertyMapping> extends
|
||||
</ak-text-input>
|
||||
${this.renderExtraFields()}
|
||||
<ak-form-element-horizontal label=${msg("Expression")} required name="expression">
|
||||
<ak-codemirror mode="python" value="${ifDefined(this.instance?.expression)}">
|
||||
</ak-codemirror>
|
||||
<ak-code-editor mode="python" value="${ifDefined(this.instance?.expression)}">
|
||||
</ak-code-editor>
|
||||
<p class="pf-c-form__helper-text">
|
||||
${msg("Expression using Python.")}
|
||||
<a target="_blank" rel="noopener noreferrer" href=${docLink(this.docLink)}>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/forms/HorizontalFormElement";
|
||||
import { aki } from "#common/api/client";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/forms/HorizontalFormElement";
|
||||
import { aki } from "#common/api/client";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/forms/HorizontalFormElement";
|
||||
import { aki } from "#common/api/client";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/forms/FormGroup";
|
||||
import "#elements/forms/HorizontalFormElement";
|
||||
import "#elements/forms/Radio";
|
||||
@@ -130,11 +130,11 @@ export class PropertyMappingProviderRACForm extends BasePropertyMappingForm<RACP
|
||||
<ak-form-group label="${msg("Advanced settings")}">
|
||||
<div class="pf-c-form">
|
||||
<ak-form-element-horizontal label=${msg("Expression")} name="expression">
|
||||
<ak-codemirror
|
||||
<ak-code-editor
|
||||
mode="python"
|
||||
value="${ifDefined(this.instance?.expression)}"
|
||||
>
|
||||
</ak-codemirror>
|
||||
</ak-code-editor>
|
||||
<p class="pf-c-form__helper-text">
|
||||
${msg("Expression using Python.")}
|
||||
<a
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/forms/HorizontalFormElement";
|
||||
import { aki } from "#common/api/client";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/forms/HorizontalFormElement";
|
||||
import { aki } from "#common/api/client";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/forms/HorizontalFormElement";
|
||||
import { aki } from "#common/api/client";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/forms/HorizontalFormElement";
|
||||
import { aki } from "#common/api/client";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/forms/HorizontalFormElement";
|
||||
import { aki } from "#common/api/client";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/forms/HorizontalFormElement";
|
||||
import { aki } from "#common/api/client";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/forms/HorizontalFormElement";
|
||||
import { aki } from "#common/api/client";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/forms/HorizontalFormElement";
|
||||
import { aki } from "#common/api/client";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/forms/HorizontalFormElement";
|
||||
import { aki } from "#common/api/client";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/forms/HorizontalFormElement";
|
||||
import { aki } from "#common/api/client";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/forms/HorizontalFormElement";
|
||||
import { aki } from "#common/api/client";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/forms/HorizontalFormElement";
|
||||
import { aki } from "#common/api/client";
|
||||
import { PFSize } from "#common/enums";
|
||||
@@ -89,13 +89,13 @@ export class PropertyMappingTestForm extends Form<PropertyMappingTestRequest> {
|
||||
msg("Result"),
|
||||
)}
|
||||
|
||||
<ak-codemirror
|
||||
<ak-code-editor
|
||||
id="result"
|
||||
mode="javascript"
|
||||
readonly
|
||||
value="${ifDefined(this.result?.result)}"
|
||||
>
|
||||
</ak-codemirror>`
|
||||
</ak-code-editor>`
|
||||
: html`<div class="pf-c-form__group-label">
|
||||
<div class="c-form__horizontal-group">
|
||||
<span class="pf-c-form__label-text">
|
||||
@@ -205,12 +205,12 @@ export class PropertyMappingTestForm extends Form<PropertyMappingTestRequest> {
|
||||
},
|
||||
msg("Context"),
|
||||
)}
|
||||
<ak-codemirror
|
||||
<ak-code-editor
|
||||
id="context"
|
||||
mode="yaml"
|
||||
value=${YAML.stringify(this.request?.context ?? {})}
|
||||
>
|
||||
</ak-codemirror>
|
||||
</ak-code-editor>
|
||||
</ak-form-element-horizontal>
|
||||
${this.result ? this.renderResult() : null}`;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import "#components/ak-radio-input";
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#components/ak-number-input";
|
||||
import "#components/ak-switch-input";
|
||||
import "#elements/utils/TimeDeltaHelp";
|
||||
@@ -58,10 +58,10 @@ export class GoogleWorkspaceProviderFormPage extends BaseProviderForm<GoogleWork
|
||||
required
|
||||
name="credentials"
|
||||
>
|
||||
<ak-codemirror
|
||||
<ak-code-editor
|
||||
mode="javascript"
|
||||
.value="${this.instance?.credentials ?? {}}"
|
||||
></ak-codemirror>
|
||||
></ak-code-editor>
|
||||
<p class="pf-c-form__helper-text">
|
||||
${msg("Google Cloud credentials file.")}
|
||||
</p>
|
||||
|
||||
@@ -2,7 +2,7 @@ import "#admin/providers/RelatedApplicationButton";
|
||||
import "#admin/providers/ldap/LDAPProviderForm";
|
||||
import "#admin/rbac/ak-rbac-object-permission-page";
|
||||
import "#admin/events/ObjectChangelog";
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/Tabs";
|
||||
import "#elements/buttons/ModalButton";
|
||||
import "#elements/buttons/SpinnerButton/index";
|
||||
|
||||
@@ -6,7 +6,7 @@ import "#admin/providers/RelatedApplicationButton";
|
||||
import "#admin/events/ObjectChangelog";
|
||||
import "#admin/rbac/ak-rbac-object-permission-page";
|
||||
import "#admin/rbac/ObjectPermissionModal";
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/EmptyState";
|
||||
import "#elements/Tabs";
|
||||
import "#elements/ak-mdx/index";
|
||||
|
||||
@@ -3,7 +3,7 @@ import "#admin/providers/proxy/ProxyProviderForm";
|
||||
import "#admin/rbac/ak-rbac-object-permission-page";
|
||||
import "#components/ak-status-label";
|
||||
import "#admin/events/ObjectChangelog";
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/Tabs";
|
||||
import "#elements/ak-mdx/index";
|
||||
import "#elements/buttons/ModalButton";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import "#components/ak-text-input";
|
||||
import "#components/ak-switch-input";
|
||||
import "#components/ak-number-input";
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/ak-dual-select/ak-dual-select-dynamic-selected-provider";
|
||||
import "#elements/forms/FormGroup";
|
||||
import "#elements/forms/HorizontalFormElement";
|
||||
@@ -127,11 +127,11 @@ export class RACProviderFormPage extends ModelForm<RACProvider, number> {
|
||||
></ak-dual-select-dynamic-selected>
|
||||
</ak-form-element-horizontal>
|
||||
<ak-form-element-horizontal label=${msg("Settings")} name="settings">
|
||||
<ak-codemirror
|
||||
<ak-code-editor
|
||||
mode="yaml"
|
||||
value="${YAML.stringify(this.instance?.settings ?? {})}"
|
||||
>
|
||||
</ak-codemirror>
|
||||
</ak-code-editor>
|
||||
<p class="pf-c-form__helper-text">${msg("Connection settings.")}</p>
|
||||
</ak-form-element-horizontal>
|
||||
</div>
|
||||
|
||||
@@ -4,7 +4,7 @@ import "#admin/providers/rac/RACProviderForm";
|
||||
import "#admin/rbac/ak-rbac-object-permission-page";
|
||||
import "#components/ak-status-label";
|
||||
import "#admin/events/ObjectChangelog";
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/Tabs";
|
||||
import "#elements/buttons/ModalButton";
|
||||
import "#elements/buttons/SpinnerButton/index";
|
||||
|
||||
@@ -2,7 +2,7 @@ import "#admin/providers/RelatedApplicationButton";
|
||||
import "#admin/providers/radius/RadiusProviderForm";
|
||||
import "#admin/rbac/ak-rbac-object-permission-page";
|
||||
import "#admin/events/ObjectChangelog";
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/Tabs";
|
||||
import "#elements/buttons/ModalButton";
|
||||
import "#elements/buttons/SpinnerButton/index";
|
||||
|
||||
@@ -404,6 +404,15 @@ export function renderForm({
|
||||
>
|
||||
${msg("Transient")}
|
||||
</option>
|
||||
<option
|
||||
value=${SAMLNameIDPolicyEnum.UrnOasisNamesTcSaml11NameidFormatUnspecified}
|
||||
?selected=${
|
||||
provider?.defaultNameIdPolicy ===
|
||||
SAMLNameIDPolicyEnum.UrnOasisNamesTcSaml11NameidFormatUnspecified
|
||||
}
|
||||
>
|
||||
${msg("Unspecified")}
|
||||
</option>
|
||||
</select>
|
||||
<p class="pf-c-form__helper-text">
|
||||
${msg(
|
||||
|
||||
@@ -2,7 +2,7 @@ import "#admin/providers/RelatedApplicationButton";
|
||||
import "#admin/providers/saml/SAMLProviderForm";
|
||||
import "#admin/rbac/ak-rbac-object-permission-page";
|
||||
import "#admin/events/ObjectChangelog";
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/EmptyState";
|
||||
import "#elements/Tabs";
|
||||
import "#elements/buttons/ActionButton/index";
|
||||
@@ -505,11 +505,11 @@ export class SAMLProviderViewPage extends AKElement {
|
||||
</ak-action-button>
|
||||
</div>
|
||||
<div class="pf-c-card__footer">
|
||||
<ak-codemirror
|
||||
<ak-code-editor
|
||||
mode="xml"
|
||||
readonly
|
||||
value="${ifDefined(this.metadata?.metadata)}"
|
||||
></ak-codemirror>
|
||||
></ak-code-editor>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -5,7 +5,7 @@ import "#elements/ak-dual-select/ak-dual-select-dynamic-selected-provider";
|
||||
import "#elements/forms/FormGroup";
|
||||
import "#elements/forms/HorizontalFormElement";
|
||||
import "#elements/forms/Radio";
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/LicenseNotice";
|
||||
import "#components/ak-number-input";
|
||||
import "#elements/utils/TimeDeltaHelp";
|
||||
@@ -85,8 +85,8 @@ export function renderAuthOAuth(provider?: Partial<SCIMProvider>, _errors: Valid
|
||||
</p>
|
||||
</ak-form-element-horizontal>
|
||||
<ak-form-element-horizontal label=${msg("OAuth Parameters")} name="authOauthParams">
|
||||
<ak-codemirror mode="yaml" value="${YAML.stringify(provider?.authOauthParams ?? {})}">
|
||||
</ak-codemirror>
|
||||
<ak-code-editor mode="yaml" value="${YAML.stringify(provider?.authOauthParams ?? {})}">
|
||||
</ak-code-editor>
|
||||
<p class="pf-c-form__helper-text">
|
||||
${msg("Additional OAuth parameters, such as grant_type.")}
|
||||
</p>
|
||||
|
||||
@@ -6,7 +6,7 @@ import "#admin/providers/RelatedApplicationButton";
|
||||
import "#admin/providers/ssf/StreamTable";
|
||||
import "#admin/events/ObjectChangelog";
|
||||
import "#admin/rbac/ObjectPermissionModal";
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/EmptyState";
|
||||
import "#elements/Tabs";
|
||||
import "#elements/buttons/ModalButton";
|
||||
|
||||
@@ -63,6 +63,7 @@ const samlNameIDPolicyAndLabel = [
|
||||
],
|
||||
[SAMLNameIDPolicyEnum.UrnOasisNamesTcSaml11NameidFormatX509SubjectName, msg("X509 Subject")],
|
||||
[SAMLNameIDPolicyEnum.UrnOasisNamesTcSaml20NameidFormatTransient, msg("Transient")],
|
||||
[SAMLNameIDPolicyEnum.UrnOasisNamesTcSaml11NameidFormatUnspecified, msg("Unspecified")],
|
||||
];
|
||||
|
||||
export interface WSFederationProviderFormProps {
|
||||
|
||||
@@ -2,7 +2,7 @@ import "#admin/providers/RelatedApplicationButton";
|
||||
import "#admin/providers/wsfed/WSFederationProviderForm";
|
||||
import "#admin/rbac/ak-rbac-object-permission-page";
|
||||
import "#admin/events/ObjectChangelog";
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/EmptyState";
|
||||
import "#elements/Tabs";
|
||||
import "#elements/buttons/ActionButton/index";
|
||||
@@ -421,11 +421,11 @@ export class WSFederationProviderViewPage extends AKElement {
|
||||
</ak-action-button>
|
||||
</div>
|
||||
<div class="pf-c-card__footer">
|
||||
<ak-codemirror
|
||||
<ak-code-editor
|
||||
mode="xml"
|
||||
readonly
|
||||
value="${ifDefined(this.metadata?.metadata)}"
|
||||
></ak-codemirror>
|
||||
></ak-code-editor>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import "#components/ak-text-input";
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/ak-dual-select/ak-dual-select-provider";
|
||||
import "#elements/forms/HorizontalFormElement";
|
||||
import "#elements/Label";
|
||||
@@ -106,8 +106,8 @@ export class PermissionCheckForm extends ModelForm<PermissionCheck, string> {
|
||||
</p>
|
||||
</ak-form-element-horizontal>
|
||||
<ak-form-element-horizontal label=${msg("Expression")} required name="expression">
|
||||
<ak-codemirror mode="python" value="${ifDefined(this.instance?.expression)}">
|
||||
</ak-codemirror>
|
||||
<ak-code-editor mode="python" value="${ifDefined(this.instance?.expression)}">
|
||||
</ak-code-editor>
|
||||
<p class="pf-c-form__helper-text">
|
||||
${msg("Python code defining permission checks.")}
|
||||
<a
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import "#components/ak-text-input";
|
||||
import "#elements/CodeMirror/ak-codemirror";
|
||||
import "#elements/CodeEditor/ak-code-editor";
|
||||
import "#components/ak-radio-input";
|
||||
import { aki } from "#common/api/client";
|
||||
|
||||
@@ -70,7 +70,7 @@ export class AccessRequestFulfillForm extends WithSession(Form<PatchedGrantReque
|
||||
<pre>${JSON.stringify(this.request?.requesterData, null, 4)}</pre>
|
||||
</ak-form-element-horizontal>
|
||||
<ak-form-element-horizontal label=${msg("Data")} name="data">
|
||||
<ak-codemirror mode="yaml" value="${YAML.stringify({})}"> </ak-codemirror>
|
||||
<ak-code-editor mode="yaml" value="${YAML.stringify({})}"> </ak-code-editor>
|
||||
</ak-form-element-horizontal>
|
||||
`;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,138 @@
|
||||
import "#elements/ak-checkbox-group/ak-checkbox-group";
|
||||
import "#elements/EmptyState";
|
||||
import PFFormControl from "@patternfly/patternfly/components/FormControl/form-control.css";
|
||||
|
||||
import { aki } from "#common/api/client";
|
||||
import { parseAPIResponseError } from "#common/errors/network";
|
||||
|
||||
import { showAPIErrorMessage } from "#elements/messages/MessageContainer";
|
||||
import { SlottedTemplateResult } from "#elements/types";
|
||||
import { WizardPage } from "#elements/wizard/WizardPage";
|
||||
|
||||
import { FlowDesignationEnum, IdentificationStage, Source, StagesApi } from "@goauthentik/api";
|
||||
|
||||
import { msg, str } from "@lit/localize";
|
||||
import { html } from "lit";
|
||||
import { customElement, state } from "lit/decorators.js";
|
||||
|
||||
/**
|
||||
* Offered after a source is created, since a source only shows up on the login page once an
|
||||
* identification stage selects it.
|
||||
*/
|
||||
@customElement("ak-source-wizard-page-login-stages")
|
||||
export class SourceLoginStagesWizardPage extends WizardPage {
|
||||
static styles = [PFFormControl];
|
||||
|
||||
@state()
|
||||
protected stages: IdentificationStage[] | null = null;
|
||||
|
||||
protected selected: string[] = [];
|
||||
|
||||
protected get source(): Source | undefined {
|
||||
// The source form step is the one right after the type selection.
|
||||
return this.host.state[this.host.steps[1]] as Source | undefined;
|
||||
}
|
||||
|
||||
public override activeCallback = async () => {
|
||||
// The source already exists at this point, so there is nothing left to cancel.
|
||||
this.host.cancelable = false;
|
||||
this.host.valid = true;
|
||||
|
||||
// ponytail: first 100 identification stages only, page through if anyone has more.
|
||||
const { results } = await aki(StagesApi).stagesIdentificationList({ pageSize: 100 });
|
||||
|
||||
this.selected = results
|
||||
.filter((stage) =>
|
||||
stage.flowSet.some(
|
||||
(flow) => flow.designation === FlowDesignationEnum.Authentication,
|
||||
),
|
||||
)
|
||||
.map((stage) => stage.pk);
|
||||
|
||||
this.stages = results;
|
||||
};
|
||||
|
||||
public override nextCallback = async () => {
|
||||
const { source, stages } = this;
|
||||
|
||||
if (!source || !stages) return true;
|
||||
|
||||
const api = aki(StagesApi);
|
||||
|
||||
try {
|
||||
await Promise.all(
|
||||
stages
|
||||
.filter((stage) => this.selected.includes(stage.pk))
|
||||
.filter((stage) => !stage.sources?.includes(source.pk))
|
||||
.map((stage) =>
|
||||
api.stagesIdentificationPartialUpdate({
|
||||
stageUuid: stage.pk,
|
||||
patchedIdentificationStageRequest: {
|
||||
sources: [...(stage.sources ?? []), source.pk],
|
||||
},
|
||||
}),
|
||||
),
|
||||
);
|
||||
} catch (error) {
|
||||
showAPIErrorMessage(await parseAPIResponseError(error));
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
};
|
||||
|
||||
protected renderStageLabel(stage: IdentificationStage): SlottedTemplateResult {
|
||||
const flows = stage.flowSet.map((flow) => flow.name).join(", ");
|
||||
|
||||
return html`<div>${stage.name}</div>
|
||||
<small class="pf-c-form__helper-text">
|
||||
${
|
||||
flows
|
||||
? msg(str`Used in: ${flows}`, {
|
||||
id: "source.wizard.login-stages.stage.flows.description",
|
||||
})
|
||||
: msg("Not bound to any flow", {
|
||||
id: "source.wizard.login-stages.stage.unbound.description",
|
||||
})
|
||||
}
|
||||
</small>`;
|
||||
}
|
||||
|
||||
protected override render(): SlottedTemplateResult {
|
||||
const { stages } = this;
|
||||
|
||||
if (!stages) {
|
||||
return html`<ak-empty-state loading></ak-empty-state>`;
|
||||
}
|
||||
|
||||
return html`<p>
|
||||
${msg(
|
||||
"Add this source to an Identification stage if you want it displayed on the login page. Otherwise, you can skip this step.",
|
||||
{ id: "source.wizard.login-stages.description" },
|
||||
)}
|
||||
</p>
|
||||
${
|
||||
stages.length
|
||||
? html`<ak-checkbox-group
|
||||
name="stages"
|
||||
.options=${stages.map((stage) => [stage.pk, this.renderStageLabel(stage)])}
|
||||
.value=${this.selected}
|
||||
@change=${(event: CustomEvent<string[]>) => {
|
||||
this.selected = event.detail;
|
||||
}}
|
||||
></ak-checkbox-group>`
|
||||
: html`<p>
|
||||
${msg("No identification stages exist yet.", {
|
||||
id: "source.wizard.login-stages.empty",
|
||||
})}
|
||||
</p>`
|
||||
}`;
|
||||
}
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface HTMLElementTagNameMap {
|
||||
"ak-source-wizard-page-login-stages": SourceLoginStagesWizardPage;
|
||||
}
|
||||
}
|
||||
@@ -5,11 +5,12 @@ import "#admin/sources/plex/PlexSourceForm";
|
||||
import "#admin/sources/saml/SAMLSourceForm";
|
||||
import "#admin/sources/scim/SCIMSourceForm";
|
||||
import "#admin/sources/telegram/TelegramSourceForm";
|
||||
import "#admin/sources/SourceLoginStagesWizardPage";
|
||||
import "#elements/wizard/FormWizardPage";
|
||||
import "#elements/wizard/Wizard";
|
||||
import { aki } from "#common/api/client";
|
||||
|
||||
import { LitPropertyRecord } from "#elements/types";
|
||||
import { LitPropertyRecord, SlottedTemplateResult } from "#elements/types";
|
||||
import { CreateWizard } from "#elements/wizard/CreateWizard";
|
||||
import { TypeCreateWizardPageLayouts } from "#elements/wizard/TypeCreateWizardPage";
|
||||
|
||||
@@ -19,6 +20,16 @@ import { SourcesApi, TypeCreate } from "@goauthentik/api";
|
||||
|
||||
import { msg } from "@lit/localize";
|
||||
import { customElement } from "@lit/reactive-element/decorators/custom-element.js";
|
||||
import { html } from "lit";
|
||||
|
||||
// Source types that render a button on the login page.
|
||||
const loginButtonSourceModels = [
|
||||
"oauthsource",
|
||||
"samlsource",
|
||||
"plexsource",
|
||||
"telegramsource",
|
||||
"kerberossource",
|
||||
];
|
||||
|
||||
@customElement("ak-source-wizard")
|
||||
export class AKSourceWizard extends CreateWizard {
|
||||
@@ -40,6 +51,28 @@ export class AKSourceWizard extends CreateWizard {
|
||||
|
||||
return props;
|
||||
}
|
||||
|
||||
protected override selectSteps(type: TypeCreate, currentSteps: string[]): string[] {
|
||||
const steps = super.selectSteps(type, currentSteps);
|
||||
|
||||
if (!loginButtonSourceModels.some((model) => type.modelName.includes(model))) {
|
||||
return steps;
|
||||
}
|
||||
|
||||
return [...steps, "login-stages"];
|
||||
}
|
||||
|
||||
protected override renderForms(): SlottedTemplateResult {
|
||||
return [
|
||||
super.renderForms(),
|
||||
html`<ak-source-wizard-page-login-stages
|
||||
slot="login-stages"
|
||||
headline=${msg("Show on login page", {
|
||||
id: "source.wizard.login-stages.label",
|
||||
})}
|
||||
></ak-source-wizard-page-login-stages>`,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
declare global {
|
||||
|
||||
@@ -6,7 +6,7 @@ import "#admin/rbac/ak-rbac-object-permission-page";
|
||||
import "#admin/sources/kerberos/KerberosSourceConnectivity";
|
||||
import "#admin/sources/kerberos/KerberosSourceForm";
|
||||
import "#admin/events/ObjectChangelog";
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/Tabs";
|
||||
import "#elements/ak-mdx/index";
|
||||
import "#elements/buttons/ActionButton/index";
|
||||
|
||||
@@ -9,7 +9,7 @@ import "#admin/sources/ldap/LDAPSourceUserList";
|
||||
import "#admin/sources/ldap/LDAPSourceGroupList";
|
||||
import "#admin/events/ObjectChangelog";
|
||||
import "#components/sync/SyncStatusCard";
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/Tabs";
|
||||
import "#elements/buttons/ActionButton/index";
|
||||
import "#elements/buttons/SpinnerButton/index";
|
||||
|
||||
@@ -4,7 +4,7 @@ import "#components/ak-secret-textarea-input";
|
||||
import "#components/ak-slug-input";
|
||||
import "#components/ak-text-input";
|
||||
import "#components/ak-switch-input";
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/ak-dual-select/ak-dual-select-dynamic-selected-provider";
|
||||
import "#elements/forms/FormGroup";
|
||||
import "#elements/forms/HorizontalFormElement";
|
||||
@@ -250,11 +250,11 @@ export class OAuthSourceForm extends BaseSourceForm<OAuthSource> {
|
||||
</p>
|
||||
</ak-form-element-horizontal>
|
||||
<ak-form-element-horizontal label=${msg("OIDC JWKS")} name="oidcJwks">
|
||||
<ak-codemirror
|
||||
<ak-code-editor
|
||||
mode="javascript"
|
||||
value="${JSON.stringify(this.instance?.oidcJwks ?? {})}"
|
||||
>
|
||||
</ak-codemirror>
|
||||
</ak-code-editor>
|
||||
<p class="pf-c-form__helper-text">${msg("Raw JWKS data.")}</p>
|
||||
</ak-form-element-horizontal>`
|
||||
: nothing
|
||||
|
||||
@@ -2,7 +2,7 @@ import "#admin/policies/BoundPoliciesList";
|
||||
import "#admin/rbac/ak-rbac-object-permission-page";
|
||||
import "#admin/sources/oauth/OAuthSourceDiagram";
|
||||
import "#admin/events/ObjectChangelog";
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/Tabs";
|
||||
import "#elements/buttons/SpinnerButton/index";
|
||||
import PFButton from "@patternfly/patternfly/components/Button/button.css";
|
||||
|
||||
@@ -2,7 +2,7 @@ import "#admin/policies/BoundPoliciesList";
|
||||
import "#admin/rbac/ak-rbac-object-permission-page";
|
||||
import "#admin/sources/plex/PlexSourceForm";
|
||||
import "#admin/events/ObjectChangelog";
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/Tabs";
|
||||
import "#elements/buttons/SpinnerButton/index";
|
||||
import "#elements/forms/ModalForm";
|
||||
|
||||
@@ -358,6 +358,15 @@ export class SAMLSourceForm extends BaseSourceForm<SAMLSource> {
|
||||
>
|
||||
${msg("Transient")}
|
||||
</option>
|
||||
<option
|
||||
value=${SAMLNameIDPolicyEnum.UrnOasisNamesTcSaml11NameidFormatUnspecified}
|
||||
?selected=${
|
||||
this.instance?.nameIdPolicy ===
|
||||
SAMLNameIDPolicyEnum.UrnOasisNamesTcSaml11NameidFormatUnspecified
|
||||
}
|
||||
>
|
||||
${msg("Unspecified")}
|
||||
</option>
|
||||
</select>
|
||||
</ak-form-element-horizontal>
|
||||
<ak-form-element-horizontal label=${msg("User path")} name="userPathTemplate">
|
||||
|
||||
@@ -2,7 +2,7 @@ import "#admin/policies/BoundPoliciesList";
|
||||
import "#admin/rbac/ak-rbac-object-permission-page";
|
||||
import "#admin/sources/saml/SAMLSourceForm";
|
||||
import "#admin/events/ObjectChangelog";
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/Tabs";
|
||||
import "#elements/buttons/SpinnerButton/index";
|
||||
import "#elements/forms/ModalForm";
|
||||
@@ -181,11 +181,11 @@ export class SAMLSourceViewPage extends AKElement {
|
||||
<div class="pf-l-grid pf-m-gutter">
|
||||
<div class="pf-c-card pf-l-grid__item pf-m-12-col">
|
||||
<div class="pf-c-card__body">
|
||||
<ak-codemirror
|
||||
<ak-code-editor
|
||||
mode="xml"
|
||||
readonly
|
||||
value="${ifDefined(this.metadata?.metadata)}"
|
||||
></ak-codemirror>
|
||||
></ak-code-editor>
|
||||
</div>
|
||||
<div class="pf-c-card__footer">
|
||||
<a
|
||||
|
||||
@@ -7,6 +7,7 @@ import { aki } from "#common/api/client";
|
||||
|
||||
import { IconEditButtonByTagName, modalInvoker, ModalInvokerButton } from "#elements/dialogs";
|
||||
import { IconPermissionButton } from "#elements/dialogs/components/IconPermissionButton";
|
||||
import { PFColor } from "#elements/Label";
|
||||
import { toAdminInterface } from "#elements/router/core/interfaces";
|
||||
import { PaginatedResponse, TableColumn } from "#elements/table/Table";
|
||||
import { TablePage } from "#elements/table/TablePage";
|
||||
@@ -88,15 +89,21 @@ export class StageListPage extends TablePage<Stage> {
|
||||
return [
|
||||
html`<div>${item.name}</div>
|
||||
<small>${item.verboseName}</small>`,
|
||||
html`<ul class="pf-c-list">
|
||||
${item.flowSet?.map((flow) => {
|
||||
return html`<li>
|
||||
<a href=${toAdminInterface(`flow/flows/${flow.slug}`)}>
|
||||
<code>${flow.slug}</code>
|
||||
</a>
|
||||
</li>`;
|
||||
})}
|
||||
</ul>`,
|
||||
item.flowSet?.length
|
||||
? html`<ul class="pf-c-list">
|
||||
${item.flowSet.map((flow) => {
|
||||
return html`<li>
|
||||
<a href=${toAdminInterface(`flow/flows/${flow.slug}`)}>
|
||||
<code>${flow.slug}</code>
|
||||
</a>
|
||||
</li>`;
|
||||
})}
|
||||
</ul>`
|
||||
: // Not necessarily wrong: some stages are only referenced by other stages,
|
||||
// e.g. a password stage set on an identification stage.
|
||||
html`<ak-label color=${PFColor.Orange} compact>
|
||||
${msg("Not bound to any flow", { id: "stage.list.unbound.label" })}
|
||||
</ak-label>`,
|
||||
html`<div class="ak-c-table__actions">
|
||||
${IconEditButtonByTagName(item.component, item.pk)}
|
||||
${IconPermissionButton(item.name, {
|
||||
|
||||
+3
-3
@@ -1,5 +1,5 @@
|
||||
import "#components/ak-text-input";
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/forms/FormGroup";
|
||||
import "#elements/forms/HorizontalFormElement";
|
||||
import PFBanner from "@patternfly/patternfly/components/Banner/banner.css";
|
||||
@@ -64,10 +64,10 @@ export class AuthenticatorEndpointGDTCStageForm extends BaseStageForm<Authentica
|
||||
required
|
||||
name="credentials"
|
||||
>
|
||||
<ak-codemirror
|
||||
<ak-code-editor
|
||||
mode="javascript"
|
||||
.value="${this.instance?.credentials ?? {}}"
|
||||
></ak-codemirror>
|
||||
></ak-code-editor>
|
||||
<p class="pf-c-form__helper-text">
|
||||
${msg("Google Cloud credentials file.")}
|
||||
</p>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import "#admin/stages/invitation/InvitationListLink";
|
||||
import "#components/ak-switch-input";
|
||||
import "#components/ak-slug-input";
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/forms/HorizontalFormElement";
|
||||
import { aki } from "#common/api/client";
|
||||
import { PFSize } from "#common/enums";
|
||||
@@ -179,11 +179,11 @@ export class InvitationForm extends ModelForm<Invitation, string> {
|
||||
help=${msg("When enabled, the invitation will be deleted after usage.")}
|
||||
></ak-switch-input>
|
||||
<ak-form-element-horizontal label=${msg("Custom attributes")} name="fixedData">
|
||||
<ak-codemirror
|
||||
<ak-code-editor
|
||||
mode="yaml"
|
||||
value="${YAML.stringify(this.instance?.fixedData ?? {})}"
|
||||
>
|
||||
</ak-codemirror>
|
||||
</ak-code-editor>
|
||||
<p class="pf-c-form__helper-text">
|
||||
${msg(
|
||||
"Optional data which is loaded into the flow's 'prompt_data' context variable. YAML or JSON.",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/forms/HorizontalFormElement";
|
||||
import "#flow/stages/prompt/PromptStage";
|
||||
import "#components/ak-switch-input";
|
||||
@@ -298,14 +298,14 @@ export class PromptForm extends ModelForm<Prompt, string> {
|
||||
If the evaluation fails, the placeholder itself is returned.`)}
|
||||
></ak-switch-input>
|
||||
<ak-form-element-horizontal label=${msg("Placeholder")} name="placeholder">
|
||||
<ak-codemirror
|
||||
<ak-code-editor
|
||||
mode="python"
|
||||
value="${ifDefined(this.instance?.placeholder)}"
|
||||
@change=${() => {
|
||||
this._shouldRefresh = true;
|
||||
}}
|
||||
>
|
||||
</ak-codemirror>
|
||||
</ak-code-editor>
|
||||
<p class="pf-c-form__helper-text">
|
||||
${msg(
|
||||
`Optionally provide a short hint that describes the expected input value.
|
||||
@@ -325,8 +325,8 @@ export class PromptForm extends ModelForm<Prompt, string> {
|
||||
If the evaluation fails, the initial value itself is returned.`)}
|
||||
></ak-switch-input>
|
||||
<ak-form-element-horizontal label=${msg("Initial value")} name="initialValue">
|
||||
<ak-codemirror mode="python" value="${ifDefined(this.instance?.initialValue)}">
|
||||
</ak-codemirror>
|
||||
<ak-code-editor mode="python" value="${ifDefined(this.instance?.initialValue)}">
|
||||
</ak-code-editor>
|
||||
<p class="pf-c-form__helper-text">
|
||||
${msg(
|
||||
`Optionally pre-fill the input with an initial value.
|
||||
@@ -336,14 +336,14 @@ export class PromptForm extends ModelForm<Prompt, string> {
|
||||
</p>
|
||||
</ak-form-element-horizontal>
|
||||
<ak-form-element-horizontal label=${msg("Help text")} name="subText">
|
||||
<ak-codemirror
|
||||
<ak-code-editor
|
||||
mode="html"
|
||||
value="${ifDefined(this.instance?.subText)}"
|
||||
@change=${() => {
|
||||
this._shouldRefresh = true;
|
||||
}}
|
||||
>
|
||||
</ak-codemirror>
|
||||
</ak-code-editor>
|
||||
<p class="pf-c-form__helper-text">${msg("Any HTML can be used.")}</p>
|
||||
</ak-form-element-horizontal>
|
||||
<ak-form-element-horizontal label=${msg("Order")} required name="order">
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
import { aki } from "#common/api/client";
|
||||
|
||||
import { toAdminInterface } from "#elements/router/core/interfaces";
|
||||
import { PaginatedResponse, Table, TableColumn } from "#elements/table/Table";
|
||||
import { SlottedTemplateResult } from "#elements/types";
|
||||
|
||||
import { ApplicationEntitlement, CoreApi, User } from "@goauthentik/api";
|
||||
|
||||
import { msg } from "@lit/localize";
|
||||
import { html } from "lit";
|
||||
import { customElement, property } from "lit/decorators.js";
|
||||
|
||||
@customElement("ak-user-application-entitlement-table")
|
||||
export class UserApplicationEntitlementTable extends Table<ApplicationEntitlement> {
|
||||
@property({ attribute: false })
|
||||
user?: User;
|
||||
|
||||
protected override searchEnabled = true;
|
||||
|
||||
public override order = "app__name";
|
||||
|
||||
async apiEndpoint(): Promise<PaginatedResponse<ApplicationEntitlement>> {
|
||||
return aki(CoreApi).coreApplicationEntitlementsList({
|
||||
...(await this.defaultEndpointConfig()),
|
||||
forUser: this.user?.pk,
|
||||
});
|
||||
}
|
||||
|
||||
protected columns: TableColumn[] = [
|
||||
[msg("Application"), "app__name"],
|
||||
[msg("Name"), "name"],
|
||||
];
|
||||
|
||||
row(item: ApplicationEntitlement): SlottedTemplateResult[] {
|
||||
return [
|
||||
html`<a href=${toAdminInterface(`core/applications/${item.appSlug}/app-entitlements`)}>
|
||||
${item.appName}
|
||||
</a>`,
|
||||
html`${item.name}`,
|
||||
];
|
||||
}
|
||||
|
||||
protected override renderEmpty(): SlottedTemplateResult {
|
||||
return super.renderEmpty(
|
||||
html`<ak-empty-state icon="pf-icon-module">
|
||||
<span>
|
||||
${msg("No application entitlements.", {
|
||||
id: "user.entitlements.empty.label",
|
||||
})}
|
||||
</span>
|
||||
<div slot="body">
|
||||
${msg("This user has not been granted any application entitlements.", {
|
||||
id: "user.entitlements.empty.description",
|
||||
})}
|
||||
</div>
|
||||
</ak-empty-state>`,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface HTMLElementTagNameMap {
|
||||
"ak-user-application-entitlement-table": UserApplicationEntitlementTable;
|
||||
}
|
||||
}
|
||||
@@ -7,7 +7,7 @@ import { PaginatedResponse, Table, TableColumn } from "#elements/table/Table";
|
||||
import { SlottedTemplateResult } from "#elements/types";
|
||||
import { ifPresent } from "#elements/utils/attributes";
|
||||
|
||||
import { applicationListStyle } from "#admin/applications/ApplicationListPage";
|
||||
import Styles from "#admin/applications/ApplicationListPage.css";
|
||||
|
||||
import { Application, CoreApi, User } from "@goauthentik/api";
|
||||
|
||||
@@ -20,7 +20,7 @@ export class UserApplicationTable extends Table<Application> {
|
||||
@property({ attribute: false })
|
||||
user?: User;
|
||||
|
||||
static styles: CSSResult[] = [...super.styles, applicationListStyle];
|
||||
static styles: CSSResult[] = [...super.styles, Styles];
|
||||
|
||||
async apiEndpoint(): Promise<PaginatedResponse<Application>> {
|
||||
return aki(CoreApi).coreApplicationsAccessibleList({
|
||||
|
||||
@@ -1,28 +1,68 @@
|
||||
import "#admin/users/UserApplicationEntitlementTable";
|
||||
import "#admin/users/UserApplicationTable";
|
||||
import "#elements/Tabs";
|
||||
import PFCard from "@patternfly/patternfly/components/Card/card.css";
|
||||
import PFPage from "@patternfly/patternfly/components/Page/page.css";
|
||||
|
||||
import { AKElement } from "#elements/Base";
|
||||
import { WithLazyTabs } from "#elements/mixins/lazy-tabs";
|
||||
|
||||
import { User } from "@goauthentik/api";
|
||||
|
||||
import { msg } from "@lit/localize";
|
||||
import { html, nothing } from "lit";
|
||||
import { customElement, property } from "lit/decorators.js";
|
||||
|
||||
@customElement("ak-user-applications-tab")
|
||||
export class UserApplicationsTab extends AKElement {
|
||||
export class UserApplicationsTab extends WithLazyTabs(AKElement) {
|
||||
@property({ attribute: false })
|
||||
public user?: User;
|
||||
|
||||
static styles = [PFCard];
|
||||
public override activatedTabs = new Set<string>(["page-applications"]);
|
||||
|
||||
static styles = [PFPage, PFCard];
|
||||
|
||||
protected override render() {
|
||||
if (!this.user) {
|
||||
return nothing;
|
||||
}
|
||||
|
||||
return html`<div class="pf-c-card">
|
||||
<ak-user-application-table .user=${this.user}></ak-user-application-table>
|
||||
</div>`;
|
||||
return html`<ak-tabs pageIdentifier="userApplications" vertical>
|
||||
<div
|
||||
role="tabpanel"
|
||||
tabindex="0"
|
||||
slot="page-applications"
|
||||
id="page-applications"
|
||||
aria-label=${msg("Applications")}
|
||||
class="pf-c-page__main-section pf-m-no-padding-mobile"
|
||||
@activate=${() => this.activateTab("page-applications")}
|
||||
>
|
||||
${this.renderWhenActive(
|
||||
"page-applications",
|
||||
html`<div class="pf-c-card">
|
||||
<ak-user-application-table .user=${this.user}></ak-user-application-table>
|
||||
</div>`,
|
||||
)}
|
||||
</div>
|
||||
<div
|
||||
role="tabpanel"
|
||||
tabindex="0"
|
||||
slot="page-entitlements"
|
||||
id="page-entitlements"
|
||||
aria-label=${msg("Application entitlements")}
|
||||
class="pf-c-page__main-section pf-m-no-padding-mobile"
|
||||
@activate=${() => this.activateTab("page-entitlements")}
|
||||
>
|
||||
${this.renderWhenActive(
|
||||
"page-entitlements",
|
||||
html`<div class="pf-c-card">
|
||||
<ak-user-application-entitlement-table
|
||||
.user=${this.user}
|
||||
></ak-user-application-entitlement-table>
|
||||
</div>`,
|
||||
)}
|
||||
</div>
|
||||
</ak-tabs>`;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import "#admin/users/ak-user-group-table";
|
||||
import "#elements/CodeMirror";
|
||||
import "#elements/CodeEditor";
|
||||
import "#elements/forms/HorizontalFormElement";
|
||||
import "#elements/forms/Radio";
|
||||
import "#components/ak-text-input";
|
||||
|
||||
@@ -175,7 +175,6 @@ export class UserViewPage extends WithLazyTabs(
|
||||
slot="page-applications"
|
||||
id="page-applications"
|
||||
aria-label=${msg("Applications")}
|
||||
class="pf-c-page__main-section pf-m-no-padding-mobile"
|
||||
@activate=${() => this.activateTab("page-applications")}
|
||||
>
|
||||
${this.renderWhenActive(
|
||||
|
||||
Loaded 100 of 122 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user