2023-03-20 22:39:25 +00:00
|
|
|
"""Outpost Websocket URLS"""
|
|
|
|
from django.urls import path
|
|
|
|
|
2023-05-09 12:46:47 +00:00
|
|
|
from authentik.outposts.api.outposts import OutpostViewSet
|
|
|
|
from authentik.outposts.api.service_connections import (
|
|
|
|
DockerServiceConnectionViewSet,
|
|
|
|
KubernetesServiceConnectionViewSet,
|
|
|
|
ServiceConnectionViewSet,
|
|
|
|
)
|
2023-10-16 15:01:44 +00:00
|
|
|
from authentik.outposts.consumer import OutpostConsumer
|
2023-04-28 17:34:34 +00:00
|
|
|
from authentik.root.middleware import ChannelsLoggingMiddleware
|
2023-03-20 22:39:25 +00:00
|
|
|
|
|
|
|
websocket_urlpatterns = [
|
2023-04-28 17:34:34 +00:00
|
|
|
path("ws/outpost/<uuid:pk>/", ChannelsLoggingMiddleware(OutpostConsumer.as_asgi())),
|
2023-03-20 22:39:25 +00:00
|
|
|
]
|
2023-05-09 12:46:47 +00:00
|
|
|
|
|
|
|
api_urlpatterns = [
|
|
|
|
("outposts/instances", OutpostViewSet),
|
|
|
|
("outposts/service_connections/all", ServiceConnectionViewSet),
|
|
|
|
("outposts/service_connections/docker", DockerServiceConnectionViewSet),
|
|
|
|
("outposts/service_connections/kubernetes", KubernetesServiceConnectionViewSet),
|
|
|
|
]
|