Accesscontrol: list tokens for service account (#43809)

* Add list tokens endpoint

* Update api.go

Co-authored-by: J Guerreiro <joao.guerreiro@grafana.com>
This commit is contained in:
Jeremy Price
2022-01-19 09:55:38 +01:00
committed by GitHub
co-authored by J Guerreiro
parent 449c608ef1
commit 6ae7b0c3b2
5 changed files with 58 additions and 3 deletions
+3 -2
View File
@@ -8,14 +8,15 @@ import (
"encoding/json"
"errors"
"fmt"
"testing"
"time"
"github.com/grafana/grafana/pkg/components/simplejson"
"github.com/grafana/grafana/pkg/models"
"github.com/grafana/grafana/pkg/services/search"
"github.com/grafana/grafana/pkg/services/sqlstore/searchstore"
"github.com/grafana/grafana/pkg/setting"
"github.com/grafana/grafana/pkg/util"
"testing"
"time"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"