-
Notifications
You must be signed in to change notification settings - Fork 46
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
editoast: implement Authorizer creation middleware #8319
Conversation
5c71392
to
457a29b
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## dev #8319 +/- ##
=========================================
Coverage 36.73% 36.74%
Complexity 2163 2163
=========================================
Files 1282 1282
Lines 119626 119651 +25
Branches 3218 3226 +8
=========================================
+ Hits 43943 43962 +19
+ Misses 73752 73750 -2
- Partials 1931 1939 +8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
0ed793d
to
52a6dde
Compare
Co-Authored-By: Younes Khoudli <[email protected]>
52a6dde
to
f7d3090
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Half of the axum server is in
main.rs
and the rest inviews/mod.rs
. We'll need to homogenize that.We removed the lazy role fetching and caching as this would require internal mutability since the
Authorizer
now lives in anArc
. Instead, we now fetch the roles when theAuthorizer
is initialized.Closes #8276