Auth: Move apikey service from userSignedIn to identity.Requester interface (#74323)

change from userSignedIn to identity.Requester interface
This commit is contained in:
Eric Leijonmarck 2023-09-07 16:54:38 +01:00 committed by GitHub
parent d14851c877
commit 61e96f8412
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,6 +12,7 @@ import (
"github.com/grafana/grafana/pkg/infra/db"
"github.com/grafana/grafana/pkg/services/accesscontrol"
"github.com/grafana/grafana/pkg/services/apikey"
"github.com/grafana/grafana/pkg/services/auth/identity"
"github.com/grafana/grafana/pkg/services/user"
"github.com/grafana/grafana/pkg/setting"
)
@ -20,7 +21,7 @@ type getStore func(db.DB, *setting.Cfg) store
type getApiKeysTestCase struct {
desc string
user *user.SignedInUser
user identity.Requester
expectedNumKeys int
expectedAllNumKeys int
}