-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: add authorization in JWTAuth with UserFromToken and remove …
…unused api types in user_role api_models
- Loading branch information
1 parent
25d20c2
commit 835a362
Showing
5 changed files
with
7 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
use common_utils::events::{ApiEventMetric, ApiEventsType}; | ||
|
||
use crate::user_role::{ | ||
AuthorizationInfoResponse, GetRoleRequest, GetUsersResponse, ListRolesResponse, | ||
RoleInfoResponse, UpdateUserRoleRequest, | ||
AuthorizationInfoResponse, GetRoleRequest, ListRolesResponse, RoleInfoResponse, | ||
UpdateUserRoleRequest, | ||
}; | ||
|
||
common_utils::impl_misc_api_event_type!( | ||
ListRolesResponse, | ||
RoleInfoResponse, | ||
GetRoleRequest, | ||
AuthorizationInfoResponse, | ||
GetUsersResponse, | ||
UpdateUserRoleRequest | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters