grafana/pkg/services/contexthandler
J Guerreiro 94820e1f29
Add/Delete API keys to Service accounts (#44871)
* ServiceAccounts: move token handlers to specific file

* ServiceAccounts: move Add API key to Service account

* APIKeys: api keys can still be used even when service accounts are enabled

* APIKeys: legacy endpoint can't be used to add SA tokens

* ServiceAccount: add tests for creation with nil and non-nil service account ids

* ServiceAccounts: fix unnasigned cfg and AC typo

* Test: test service account token adding

* fix linting error

* ServiceAccounts: Handle Token deletion

* rename token funcs

* rename token funcs and api wrapping

* add token deletion tests

* review

Co-authored-by: eleijonmarck <eric.leijonmarck@gmail.com>

* remove bus

* Update pkg/api/apikey.go

Co-authored-by: eleijonmarck <eric.leijonmarck@gmail.com>
2022-02-07 14:51:54 +01:00
..
authproxy Rename DispatchCtx to Dispatch (#43563) 2021-12-28 17:36:22 +01:00
auth_jwt.go Auth: implement auto_sign_up for auth.jwt (#43502) 2022-01-13 17:15:22 +01:00
auth_proxy_test.go Chore: Implement OpenTelemtry in Grafana (#42674) 2022-01-20 11:10:12 +01:00
contexthandler_test.go Chore: replace macaron with web package (#40136) 2021-10-11 14:30:59 +02:00
contexthandler.go Add/Delete API keys to Service accounts (#44871) 2022-02-07 14:51:54 +01:00