grafana/pkg/middleware
Eric Leijonmarck 3cd952b8ba
Auth: Fix orgrole picker disabled if isSynced user (#64033)
* fix: disable orgrolepicker if externaluser is synced

* add disable to role picker

* just took me 2 hours to center the icon

* wip

* fix: check externallySyncedUser for API call

* remove check from store

* add: tests

* refactor authproxy and made tests run

* add: feature toggle

* set feature toggle for tests

* add: IsProviderEnabled

* refactor: featuretoggle name

* IsProviderEnabled tests

* add specific tests for isProviderEnabled

* fix: org_user tests

* add: owner to featuretoggle

* add missing authlabels

* remove fmt

* feature toggle

* change config

* add test for a different authmodule

* test refactor

* gen feature toggle again

* fix basic auth user able to change the org role

* test for basic auth role

* make err.base to error

* lowered lvl of log and input mesg
2023-03-22 17:41:59 +00:00
..
cookies Chore: Move ReqContext to contexthandler service (#62102) 2023-01-27 08:50:36 +01:00
csrf CSRF: Fix additional headers option (#50629) 2022-07-13 19:28:59 +01:00
auth_test.go Chore: Move ReqContext to contexthandler service (#62102) 2023-01-27 08:50:36 +01:00
auth.go Cfg: Move ViewersCanEdit into cfg (#64876) 2023-03-16 10:54:01 +01:00
csp.go Middleware: Add CSP Report Only support (#58074) 2022-11-16 17:11:26 +00:00
dashboard_redirect_test.go Chore: Remove endpoints that contain the slug field (#35104) 2021-06-03 16:20:13 +03:00
dashboard_redirect.go Chore: Move ReqContext to contexthandler service (#62102) 2023-01-27 08:50:36 +01:00
gziper.go Chore: replace macaron with web package (#40136) 2021-10-11 14:30:59 +02:00
logger_test.go Chore: Fix goimports grouping in other backend platform packages (#62422) 2023-01-30 08:26:42 +00:00
logger.go Chore: Move ReqContext to contexthandler service (#62102) 2023-01-27 08:50:36 +01:00
middleware_basic_auth_test.go LDAP: Move LDAP globals to Config (#63255) 2023-02-10 19:01:55 +01:00
middleware_jwt_auth_test.go ContextHandler: add all configured auth header to context (#62775) 2023-02-02 16:25:46 +01:00
middleware_test.go Auth: Fix orgrole picker disabled if isSynced user (#64033) 2023-03-22 17:41:59 +00:00
middleware.go Plugins: Fix Cache-Control header response for public/plugins/* assets API (#64051) 2023-03-06 12:42:18 -05:00
org_redirect_test.go Auth: Refactor auth package (#58920) 2022-11-18 09:56:06 +01:00
org_redirect.go UserService: use the UserService instead of calling sqlstore directly (#55745) 2022-09-27 07:58:49 -04:00
quota_test.go Auth: Refactor auth package (#58920) 2022-11-18 09:56:06 +01:00
quota.go Chore: Move ReqContext to contexthandler service (#62102) 2023-01-27 08:50:36 +01:00
recovery_test.go Chore: Move ReqContext to contexthandler service (#62102) 2023-01-27 08:50:36 +01:00
recovery.go Handle ioutil deprecations (#53526) 2022-08-10 15:37:51 +02:00
request_metrics.go Chore: Fix goimports grouping in other backend platform packages (#62422) 2023-01-30 08:26:42 +00:00
request_test.go metrics: add operation name used in metrics/tracing for middlewares (#53949) 2022-08-25 10:11:27 +02:00
request_tracing.go Instrumentation: Add api/health to the unnamed handlers (#55478) 2022-09-22 13:03:20 +03:00
testing.go API: Permit Cache-Control (browser caching) for datasource resources (#62033) 2023-02-02 20:34:55 +00:00
validate_host.go Chore: Move ReqContext to contexthandler service (#62102) 2023-01-27 08:50:36 +01:00