2022-12-02 08:10:03 -06:00
|
|
|
package authn
|
|
|
|
|
2024-06-12 23:11:35 -05:00
|
|
|
import "github.com/grafana/grafana/pkg/apimachinery/errutil"
|
2022-12-02 08:10:03 -06:00
|
|
|
|
2023-01-10 07:55:27 -06:00
|
|
|
var (
|
2023-10-10 09:30:20 -05:00
|
|
|
ErrTokenNeedsRotation = errutil.Unauthorized("session.token.rotate", errutil.WithLogLevel(errutil.LevelDebug))
|
2023-08-22 05:52:24 -05:00
|
|
|
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"))
|
2023-01-10 07:55:27 -06:00
|
|
|
)
|