mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 18:30:41 -06:00
040b7d2571
Add helpers for the errutil package in favor of errutil.NewBase.
12 lines
499 B
Go
12 lines
499 B
Go
package authn
|
|
|
|
import "github.com/grafana/grafana/pkg/util/errutil"
|
|
|
|
var (
|
|
ErrTokenNeedsRotation = errutil.Unauthorized("session.token.rotate")
|
|
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"))
|
|
)
|