mirror of
https://github.com/grafana/grafana.git
synced 2025-02-10 07:35:45 -06:00
* Identity: Remove GetNamespacedUID and use GetUID instead * Authn: Set uid for users and service accounts
28 lines
846 B
Go
28 lines
846 B
Go
package authn
|
|
|
|
import (
|
|
"github.com/grafana/grafana/pkg/services/auth/identity"
|
|
)
|
|
|
|
const (
|
|
NamespaceUser = identity.NamespaceUser
|
|
NamespaceAPIKey = identity.NamespaceAPIKey
|
|
NamespaceServiceAccount = identity.NamespaceServiceAccount
|
|
NamespaceAnonymous = identity.NamespaceAnonymous
|
|
NamespaceRenderService = identity.NamespaceRenderService
|
|
NamespaceAccessPolicy = identity.NamespaceAccessPolicy
|
|
)
|
|
|
|
var AnonymousNamespaceID = NewNamespaceID(NamespaceAnonymous, 0)
|
|
|
|
type Namespace = identity.Namespace
|
|
type NamespaceID = identity.NamespaceID
|
|
|
|
var (
|
|
ParseNamespaceID = identity.ParseNamespaceID
|
|
MustParseNamespaceID = identity.MustParseNamespaceID
|
|
NewNamespaceID = identity.NewNamespaceID
|
|
NewNamespaceIDString = identity.NewNamespaceIDString
|
|
ErrInvalidNamespaceID = identity.ErrInvalidNamespaceID
|
|
)
|