klein icon indicating copy to clipboard operation
klein copied to clipboard

support for middleware?

Open anekix opened this issue 7 years ago • 3 comments

Hi i need to have a middleware that performs some authentication for anyendpoint call. something like explained here https://afropolymath.svbtle.com/intercept-route-requests-using-decorators-in-flask .how can i achieve same in twisted klein?

anekix avatar May 10 '17 18:05 anekix

Here's a comment that should give you some insight into how "middleware" solutions can be created. Seems like this should be referenced in a feature request for authentication middleware (of some sort).

notoriousno avatar May 11 '17 20:05 notoriousno

@notoriousno it a nice coincidence i came up with an exact solution using decorators :)

anekix avatar May 13 '17 11:05 anekix

So far nothing has happened???

whg517 avatar Sep 24 '20 08:09 whg517