forked from RedHatInsights/insights-rbac
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RHCLOUD-30838 | refactor: move the token validation to the middleware (…
…RedHatInsights#1021) * refactor: move the token validation to the middleware Instead of validating the token that comes in the requests made by the service accounts in every view, it makes more sense to validate it when we are building our internal user object, and to leave it there for easy access for the rest of the code. RHCLOUD-30838 * refactor: apply review suggestions RHCLOUD-30838 * refactor: exception handling closer to the function that raises it RHCLOUD-30838
- Loading branch information
1 parent
961b85e
commit 34781a6
Showing
8 changed files
with
300 additions
and
169 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
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
Oops, something went wrong.