mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 04:04:00 -06:00
73fecc8d80
* AuthN: Add NamespaceID struct. We should replace the usage of encoded namespaceID with this one * AuthN: Add optional interface that clients can implement to be able to resolve identity for a namespace * Authn: Implement IdentityResolverClient for api keys * AuthN: use idenity resolvers Co-authored-by: Misi <mgyongyosi@users.noreply.github.com>
13 lines
624 B
Go
13 lines
624 B
Go
package authn
|
|
|
|
import "github.com/grafana/grafana/pkg/util/errutil"
|
|
|
|
var (
|
|
ErrTokenNeedsRotation = errutil.Unauthorized("session.token.rotate", errutil.WithLogLevel(errutil.LevelDebug))
|
|
ErrUnsupportedClient = errutil.BadRequest("auth.client.unsupported")
|
|
ErrClientNotConfigured = errutil.BadRequest("auth.client.notConfigured")
|
|
ErrUnsupportedIdentity = errutil.NotImplemented("auth.identity.unsupported")
|
|
ErrExpiredAccessToken = errutil.Unauthorized("oauth.expired-token", errutil.WithPublicMessage("OAuth access token expired"))
|
|
ErrInvalidNamepsaceID = errutil.BadRequest("auth.identity.invalid-namespace-id")
|
|
)
|