-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(model-server): deduplicate authorization logic
The logic determining the verifier was a duplicate of the logic used in the additional validation. The logic from the validation (aka `ModelixAuthorizationConfig,nullIfInvalid`) is also used elsewhere. For example, it is used in the workspaces through the modelix-authorization lib. So it was reused in a custom verifier. Calling `ModelixAuthorizationConfig.nullIfInvalid` again in `validate` is redundant. It is now only used to create a custom principal object.
- Loading branch information
Showing
1 changed file
with
24 additions
and
16 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