grafana/pkg/services/accesscontrol
idafurjes c061b66d5f
Chore: Split delete user method (#52216)
* Remove user from preferences, stars, orguser, team member

* Fix lint

* Add Delete user from org and dashboard acl

* Delete user from user auth

* Add DeleteUser to quota

* Add test files and adjust user auth store

* Rename package in wire for user auth

* Import Quota Service interface in other services

* do the same in tests

* fix lint tests

* Fix tests

* Add some tests

* Rename InsertUser and DeleteUser to InsertOrgUser and DeleteOrgUser

* Rename DeleteUser to DeleteByUser in quota

* changing a method name in few additional places

* Fix in other places

* Fix lint

* Fix tests

* Chore: Split Delete User method

* Add fakes for userauth

* Add mock for access control Delete User permossion, use interface

* Use interface for ream guardian

* Add simple fake for dashboard acl

* Add go routines, clean up, use interfaces

* fix lint

* Update pkg/services/user/userimpl/user_test.go

Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>

* Update pkg/services/user/userimpl/user_test.go

Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>

* Update pkg/services/user/userimpl/user_test.go

Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>

* Add wrapper for not service account error

* fix indentation

* Use fmt for error wrapper

Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>
2022-07-19 16:01:05 +02:00
..
api AccessControl: Add endpoint to get user permissions (#45309) 2022-02-11 17:40:43 +01:00
database Service accounts: Add service account to teams (#51536) 2022-07-06 05:34:36 -04:00
mock Chore: Split delete user method (#52216) 2022-07-19 16:01:05 +02:00
ossaccesscontrol Chore: Split delete user method (#52216) 2022-07-19 16:01:05 +02:00
resourcepermissions Service accounts: Add service account to teams (#51536) 2022-07-06 05:34:36 -04:00
accesscontrol_bench_test.go Chore: Remove last build tag (#50120) 2022-06-02 17:36:34 +00:00
accesscontrol_test.go Access Control: Support other attributes than id for resource permissions (#46727) 2022-03-21 17:58:18 +01:00
accesscontrol.go Chore: Split delete user method (#52216) 2022-07-19 16:01:05 +02:00
errors.go AccessControl: Resolve attribute based scopes to id based scopes (#40742) 2022-01-18 17:34:35 +01:00
evaluator_test.go Remove unused error from evaluator Evaluate (#49305) 2022-05-20 10:26:57 +02:00
evaluator.go Remove unused error from evaluator Evaluate (#49305) 2022-05-20 10:26:57 +02:00
filter_bench_test.go backend/datasources: move datasources models into the datasources service package (#51267) 2022-06-27 12:23:15 -04:00
filter_test.go backend/datasources: move datasources models into the datasources service package (#51267) 2022-06-27 12:23:15 -04:00
filter.go RBAC: Make RBAC action names more consistent (#49730) 2022-06-02 13:14:48 +01:00
middleware_test.go RBAC: Refactor GetUserPermissions to use []accesscontrol.Permission (#50683) 2022-06-14 10:17:48 +02:00
middleware.go Access Control: Move access control middlewares to domain package (#48322) 2022-04-28 10:46:18 +02:00
models.go Service accounts: Add service account to teams (#51536) 2022-07-06 05:34:36 -04:00
resolvers_test.go backend/datasources: move datasources models into the datasources service package (#51267) 2022-06-27 12:23:15 -04:00
resolvers.go fix logging of resolving scopes (#50173) 2022-06-03 10:53:53 -04:00
roles_test.go AccessControl: Remove package lists for roles and grants (#47141) 2022-04-06 09:31:14 +02:00
roles.go Remove version property from fixed roles (#51298) 2022-06-23 12:09:03 +02:00
scope_test.go Access Control: Refactor scope resolvers with support to resolve into several scopes (#48202) 2022-05-02 09:29:30 +02:00
scope.go RBAC: Add scope resolvers for dashboards (#50110) 2022-06-07 11:02:20 +02:00