Comments (3)
Hi @ZimboPro!
Your handler isn't I see there is no any async calls, rightasync
, is it expected?
That's just wasn't supported as part of poem-grants
It's because of this line. unwrap
can be used only during macro-expansion - i.e compile time only. And looks like we can handle this way better. Poem supports non async handlers
from protect-endpoints.
Thanks for the report @ZimboPro!
It was fixed, now non-async handlers are supported as well (poem
only).
New version has been released. Please, let me know if you still experience any issues.
from protect-endpoints.
Thanks for the quick reply and solution, that solves the issue
from protect-endpoints.
Related Issues (20)
- Support for using glob expressions on permissions?
- New release with Actix Web 4 support HOT 2
- Mismatch between compiler message and function arg position in tests HOT 1
- Check user name in route HOT 4
- Validator issue HOT 3
- Using HttpAuthentication wrapper on the same named scope but different handler HOT 7
- Allow some routes to non authenticated users? HOT 2
- use enum in attribute? HOT 2
- Question: Use multiple proc macros at the same time HOT 5
- Reorganize `*-grants` crates into single repo (workspace)
- Any plans for supporting salvo? HOT 4
- Customise token lookup location HOT 4
- Support for allowing 1 permission or the other HOT 3
- how custom fallback type HOT 3
- Why this change HOT 3
- how do in middleware use app_data? HOT 5
- Adding authentication to OpenAPI definition using poem_openapi HOT 9
- Getting a 401 after implementing protect attribute HOT 3
- Override the Access Forbidden Error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from protect-endpoints.