Add quota check in the direct_access endpoint

What does this MR do and why?

Adds quota check in the direct_access endpoint

Quota checks are currently done in Duo Workflow Service (DWS). With this commit, we can make the check before even calling DWS already within rails.

References

Relates to #585865 (closed)

Screenshots or screen recordings

How to set up and validate locally

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Halil Coban

Merge request reports

Loading