This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
authentik/authentik/root/websocket.py

12 lines
382 B
Python
Raw Normal View History

"""root Websocket URLS"""
from channels.auth import AuthMiddlewareStack
from django.urls import path
2020-12-05 21:08:42 +00:00
from authentik.outposts.channels import OutpostConsumer
from authentik.root.messages.consumer import MessageConsumer
websocket_urlpatterns = [
path("ws/outpost/<uuid:pk>/", OutpostConsumer.as_asgi()),
path("ws/client/", AuthMiddlewareStack(MessageConsumer.as_asgi())),
]