Authlib: Use types package rather than claims (#99243)
This commit is contained in:
@@ -13,7 +13,7 @@ import (
|
||||
"gocloud.dev/blob/memblob"
|
||||
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
|
||||
|
||||
"github.com/grafana/authlib/claims"
|
||||
claims "github.com/grafana/authlib/types"
|
||||
"github.com/grafana/grafana/pkg/apimachinery/identity"
|
||||
"github.com/grafana/grafana/pkg/apimachinery/utils"
|
||||
)
|
||||
@@ -27,7 +27,7 @@ func TestSimpleServer(t *testing.T) {
|
||||
OrgRole: identity.RoleAdmin,
|
||||
IsGrafanaAdmin: true, // can do anything
|
||||
}
|
||||
ctx := claims.WithClaims(context.Background(), testUserA)
|
||||
ctx := claims.WithAuthInfo(context.Background(), testUserA)
|
||||
|
||||
bucket := memblob.OpenBucket(nil)
|
||||
if false {
|
||||
|
||||
Reference in New Issue
Block a user