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

Exceptions/Ovverrides do not work with falcon 2.x #31

Open Sylphe88 opened 5 years ago

Sylphe88 commented 5 years ago

Hey there,

I'm using falcon-auth to use JWT authentication and it was working great until we decided to move to falcon 2.0.0. Then, I've had trouble with overriding/disabling authentication for specific methods/resource using the auth dictionary inside the resource, for instance: auth = { 'exempt_methods': ['POST'] } My POST method then still requires auth, and returns HTTP 401... Downgrading to falcon 1.4.1 works around the issue, so I guess that falcon changed something in the way it handles auth inside the resources.