grafana/pkg/services/authn/authnimpl/sync
Misi 5efc3386d3
AuthZ: Extend /api/search to work with self-contained permissions (#70749)
* Search sql filter draft, unfinished

* Search works for empty roles

* Add current AuthModule to SignedInUser

* clean up, changes to the search

* Use constant prefixes

* Change AuthModule to AuthenticatedBy

* Add tests for using the permissions from the SignedInUser

* Refactor and simplify code

* Fix sql generation for pg and mysql

* Fixes, clean up

* Add test for empty permission list

* Fix

* Fix any vs all in case of edit permission

* Update pkg/services/authn/authn.go

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>

* Update pkg/services/sqlstore/permissions/dashboard_test.go

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>

* Fixes, changes based on the review

---------

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
2023-07-12 12:31:36 +02:00
..
oauth_token_sync_test.go AuthN: Add in-memory cache for oauth token refresh hook (#63569) 2023-02-23 09:36:21 +01:00
oauth_token_sync.go AuthN: cleanup logs (#63652) 2023-02-24 11:26:55 +01:00
org_sync_test.go AuthN: add flag for org roles sync (#63507) 2023-02-22 10:27:48 +01:00
org_sync.go AuthN: cleanup logs (#63652) 2023-02-24 11:26:55 +01:00
permission_sync_test.go RBAC: remove simple RBAC disabled checks (#71137) 2023-07-10 15:14:21 +03:00
permission_sync.go RBAC: remove simple RBAC disabled checks (#71137) 2023-07-10 15:14:21 +03:00
user_sync_test.go AuthZ: Extend /api/search to work with self-contained permissions (#70749) 2023-07-12 12:31:36 +02:00
user_sync.go AuthZ: Extend /api/search to work with self-contained permissions (#70749) 2023-07-12 12:31:36 +02:00