-
-
Notifications
You must be signed in to change notification settings - Fork 511
Open
Labels
discussionThe viability / implementation of the issue is up for debateThe viability / implementation of the issue is up for debatefeatureCode based project improvementCode based project improvement
Description
I'm currently using Crow extensively for a project. After doing some research in the Crow repository and reviewing code and related issues, particularly Issue #717, I noticed a limitation: it seems that local middlewares cannot be applied using route_dynamic, especially when working with WebSocket protocols or standard web usage patterns.
For example:
app.route_dynamic(url)
.middlewares<crow::App<middleware::websocket::JWTAuth>, middleware::websocket::JWTAuth>()
.websocket(&app);Based on my testing, the middleware isn’t properly applied within route_dynamic. This issue affects both WebSocket connections and regular web routes, making it difficult to implement route-specific logic like authentication or authorization using local middleware.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
discussionThe viability / implementation of the issue is up for debateThe viability / implementation of the issue is up for debatefeatureCode based project improvementCode based project improvement