Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing priority functionality in app-wide middlware #2596

Closed
1 task done
Bluenix2 opened this issue Nov 5, 2022 · 0 comments · Fixed by #2636
Closed
1 task done

Missing priority functionality in app-wide middlware #2596

Bluenix2 opened this issue Nov 5, 2022 · 0 comments · Fixed by #2636
Labels

Comments

@Bluenix2
Copy link
Contributor

Bluenix2 commented Nov 5, 2022

Description

In v22.9 the priority feature was added, but unfortunately it appears it was overlooked and there is priority parameter to register_middleware() for Sanic.

I am looking to use this feature because I have a Blueprint-specific middleware which appears to run before the application-wide middleware. In my case the application-wide middleware does authorization and updates request.ctx which is then used in the Blueprint-specific middleware.

Is there an existing issue for this?

  • I have searched the existing issues

Environment

Sanic (22.9.1; Routing 22.8.0) is ran on Windows using ASGI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant