GC Digital Talent is the new recruitment platform for digital and tech jobs in the Government of Canada. // Talents numériques du GC est la nouvelle plateforme de recrutement pour les emplois numériques et technologiques au gouvernement du Canada.
Right now we have a custom checker in Laratrust that will fail a permission check if the incoming request requires an elevated permission but is not using the protected endpoint. Is there some way we can mark the error response so that the frontend knows that the permission failure was because of the VPN checker and provide a more specific error message?
🙋♀️ Proposed Implementation
(optional) Do you have a proposed implementation?
✅ Acceptance Criteria
[ ] The error message from a failed VPN check can be distinguished from a regular permission check failure
✨ Feature
Right now we have a custom checker in Laratrust that will fail a permission check if the incoming request requires an elevated permission but is not using the protected endpoint. Is there some way we can mark the error response so that the frontend knows that the permission failure was because of the VPN checker and provide a more specific error message?
🙋♀️ Proposed Implementation
(optional) Do you have a proposed implementation?
✅ Acceptance Criteria