CleanArchitecture
CleanArchitecture copied to clipboard
Changed PipelineBehavior ordering
Any request validator should only be called after authorization.
Validators can impose load to the database and should be protected.
To me it looks like you moved Authorization after Validation.
AuthorizationBehaviour should be before validation, because there is no point in validating if the user is not authorized.