grafana/pkg/services/authn/clients
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
..
anonymous_test.go Authn: Anon session service (#63052) 2023-02-21 16:21:18 +01:00
anonymous.go AnonymousAuth: Fix concurrent read-write crash (#68637) 2023-05-22 13:27:28 +02:00
api_key_test.go AuthZ: Extend /api/search to work with self-contained permissions (#70749) 2023-07-12 12:31:36 +02:00
api_key.go AuthZ: Extend /api/search to work with self-contained permissions (#70749) 2023-07-12 12:31:36 +02:00
basic_test.go AuthN: Use EqualFold for skipping introspection endpoint (#69126) 2023-05-26 10:22:59 +02:00
basic.go AuthN: Use EqualFold for skipping introspection endpoint (#69126) 2023-05-26 10:22:59 +02:00
constants.go AuthN: Perform login with authn.Service (#61466) 2023-01-17 09:11:45 +01:00
ext_jwt_test.go AuthZ: Extend /api/search to work with self-contained permissions (#70749) 2023-07-12 12:31:36 +02:00
ext_jwt.go AuthZ: Extend /api/search to work with self-contained permissions (#70749) 2023-07-12 12:31:36 +02:00
form_test.go AuthN: Perform login with authn.Service (#61466) 2023-01-17 09:11:45 +01:00
form.go AuthN: Rebuild Authenticate so we only have to call it once in context handler (#61705) 2023-01-26 10:50:44 +01:00
grafana_test.go AuthZ: Extend /api/search to work with self-contained permissions (#70749) 2023-07-12 12:31:36 +02:00
grafana.go AuthZ: Extend /api/search to work with self-contained permissions (#70749) 2023-07-12 12:31:36 +02:00
jwt_test.go AuthZ: Extend /api/search to work with self-contained permissions (#70749) 2023-07-12 12:31:36 +02:00
jwt.go AuthZ: Extend /api/search to work with self-contained permissions (#70749) 2023-07-12 12:31:36 +02:00
ldap_test.go AuthZ: Extend /api/search to work with self-contained permissions (#70749) 2023-07-12 12:31:36 +02:00
ldap.go AuthZ: Extend /api/search to work with self-contained permissions (#70749) 2023-07-12 12:31:36 +02:00
oauth_test.go AuthZ: Extend /api/search to work with self-contained permissions (#70749) 2023-07-12 12:31:36 +02:00
oauth.go AuthZ: Extend /api/search to work with self-contained permissions (#70749) 2023-07-12 12:31:36 +02:00
password_test.go Chore: Fix goimports grouping (#62426) 2023-01-30 09:34:18 +01:00
password.go Chore: Replace go-multierror with errors package (#66432) 2023-06-19 12:29:45 +03:00
proxy_test.go Remotecache: rename setbytearray/getbytearray to set/get and remove codec (#64470) 2023-03-10 13:57:29 +01:00
proxy.go AuthZ: Extend /api/search to work with self-contained permissions (#70749) 2023-07-12 12:31:36 +02:00
render_test.go AuthZ: Extend /api/search to work with self-contained permissions (#70749) 2023-07-12 12:31:36 +02:00
render.go AuthZ: Extend /api/search to work with self-contained permissions (#70749) 2023-07-12 12:31:36 +02:00
session_test.go Auth: Add feature flag to move token rotation to client (#65060) 2023-03-23 14:39:04 +01:00
session.go AuthN: Tune logs in client (#65714) 2023-03-31 16:43:24 +02:00
utils.go AuthN: add flag for org roles sync (#63507) 2023-02-22 10:27:48 +01:00