-
-
Notifications
You must be signed in to change notification settings - Fork 539
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[management] Remove redundant get account calls in GetAccountFromToken (
#2615) * refactor access control middleware and user access by JWT groups Signed-off-by: bcmmbaga <[email protected]> * refactor jwt groups extractor Signed-off-by: bcmmbaga <[email protected]> * refactor handlers to get account when necessary Signed-off-by: bcmmbaga <[email protected]> * refactor getAccountFromToken Signed-off-by: bcmmbaga <[email protected]> * refactor getAccountWithAuthorizationClaims Signed-off-by: bcmmbaga <[email protected]> * fix merge Signed-off-by: bcmmbaga <[email protected]> * revert handles change Signed-off-by: bcmmbaga <[email protected]> * remove GetUserByID from account manager Signed-off-by: bcmmbaga <[email protected]> * fix tests Signed-off-by: bcmmbaga <[email protected]> * refactor getAccountWithAuthorizationClaims to return account id Signed-off-by: bcmmbaga <[email protected]> * refactor handlers to use GetAccountIDFromToken Signed-off-by: bcmmbaga <[email protected]> * fix tests Signed-off-by: bcmmbaga <[email protected]> * remove locks Signed-off-by: bcmmbaga <[email protected]> * refactor Signed-off-by: bcmmbaga <[email protected]> * add GetGroupByName from store Signed-off-by: bcmmbaga <[email protected]> * add GetGroupByID from store and refactor Signed-off-by: bcmmbaga <[email protected]> * Refactor retrieval of policy and posture checks Signed-off-by: bcmmbaga <[email protected]> * Refactor user permissions and retrieves PAT Signed-off-by: bcmmbaga <[email protected]> * Refactor route, setupkey, nameserver and dns to get record(s) from store Signed-off-by: bcmmbaga <[email protected]> * Refactor store Signed-off-by: bcmmbaga <[email protected]> * fix lint Signed-off-by: bcmmbaga <[email protected]> * fix tests Signed-off-by: bcmmbaga <[email protected]> * fix add missing policy source posture checks Signed-off-by: bcmmbaga <[email protected]> * add store lock Signed-off-by: bcmmbaga <[email protected]> * fix tests Signed-off-by: bcmmbaga <[email protected]> * add get account Signed-off-by: bcmmbaga <[email protected]> --------- Signed-off-by: bcmmbaga <[email protected]>
- Loading branch information
Showing
44 changed files
with
1,247 additions
and
949 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.