Skip to content

Commit 62ff275

Browse files
authored
enabled AppAPIAuthMiddleware for websockets(Nextcloud 32+) (#338)
ExApps starting with Nextсloud 32 are planned to have **websockets** support - we enable authentication in advance, so that there is time to rebuild ExApps. Signed-off-by: bigcat88 <[email protected]>
1 parent 86af0a5 commit 62ff275

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nc_py_api/ex_app/integration_fastapi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def __init__(
241241

242242
async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None:
243243
"""Method that will be called by Starlette for each event."""
244-
if scope["type"] != "http":
244+
if scope["type"] not in ("http", "websocket"):
245245
await self.app(scope, receive, send)
246246
return
247247

0 commit comments

Comments
 (0)