Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 62ff275

Browse files
authoredFeb 15, 2025··
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 <bigcat88@icloud.com>
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

Lines changed: 1 addition & 1 deletion
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)
Please sign in to comment.