vertexcover-io / falcon-auth

A falcon middleware + authentication backends that adds authentication layer to you app/api service.
MIT License
103 stars 31 forks source link

Exempt Route for Route with Path Param #11

Closed myang310 closed 5 years ago

myang310 commented 6 years ago

There seems to be no documentation for how to add a route to the exempt_routes parameter where the route has a path param, e.g. /products/{id}. How do I go about doing that?

jcwilson commented 5 years ago

It seems like FalconAuthMiddleware.process_resource() should be using req.uri_template rather than req.path to match exempt_routes. That shouldn't be a difficult change to make.

jcwilson commented 5 years ago

Resolved in #18