canonical / identity-platform-admin-ui

Admin UI for the Canonical identity broker and identity provider solution
Other
5 stars 4 forks source link

feat: add validation for `/groups` endpoints #234

Closed babakks closed 3 months ago

babakks commented 4 months ago

This PR adds validation for /groups endpoints to the ReBAC Admin UI library. This functionality is implemented as a decorated handler that wraps/decorates the actual handler and applies validation logic.

For now, this is only done for /groups endpoints. After this has landed, follow up PRs would be submitted for the rest of endpoints.

Note that the bulk of methods in rebac-admin-backend/v1/validation.go are there to implement the interface. I could've embedded the Unimplemented struct for this, but since these were already there, I didn't change it.

Fixes CSS-7621