AuthN: Add password and login form stats (#64868)

* add password and login form stats

* fix method handler

* fix viewers can edit test
This commit is contained in:
Jo
2023-03-16 16:34:43 +01:00
committed by GitHub
parent 40014f1454
commit 7784782512
3 changed files with 51 additions and 0 deletions
@@ -16,6 +16,8 @@ func (s *Service) getUsageStats(ctx context.Context) (map[string]interface{}, er
authTypes["auth_proxy"] = s.cfg.AuthProxyEnabled
authTypes["anonymous"] = s.cfg.AnonymousEnabled
authTypes["jwt"] = s.cfg.JWTAuthEnabled
authTypes["grafana_password"] = !s.cfg.DisableLogin
authTypes["login_form"] = !s.cfg.DisableLoginForm
for authType, enabled := range authTypes {
enabledValue := 0