![gcp-cherry-pick-bot[bot]](/assets/img/avatar_default.png)
core: improve error handling on ASGI level (#10547) Signed-off-by: Jens Langhammer <jens@goauthentik.io> Co-authored-by: Jens L. <jens@goauthentik.io>
28 lines
929 B
Python
28 lines
929 B
Python
"""Outpost Websocket URLS"""
|
|
|
|
from django.urls import path
|
|
|
|
from authentik.outposts.api.outposts import OutpostViewSet
|
|
from authentik.outposts.api.service_connections import (
|
|
DockerServiceConnectionViewSet,
|
|
KubernetesServiceConnectionViewSet,
|
|
ServiceConnectionViewSet,
|
|
)
|
|
from authentik.outposts.channels import TokenOutpostMiddleware
|
|
from authentik.outposts.consumer import OutpostConsumer
|
|
from authentik.root.middleware import ChannelsLoggingMiddleware
|
|
|
|
websocket_urlpatterns = [
|
|
path(
|
|
"ws/outpost/<uuid:pk>/",
|
|
ChannelsLoggingMiddleware(TokenOutpostMiddleware(OutpostConsumer.as_asgi())),
|
|
),
|
|
]
|
|
|
|
api_urlpatterns = [
|
|
("outposts/instances", OutpostViewSet),
|
|
("outposts/service_connections/all", ServiceConnectionViewSet),
|
|
("outposts/service_connections/docker", DockerServiceConnectionViewSet),
|
|
("outposts/service_connections/kubernetes", KubernetesServiceConnectionViewSet),
|
|
]
|