grafana/pkg/services/authn/clients/constants.go
Karl Persson 2324597d8d
AuthN: Perform login with authn.Service (#61466)
* AuthN: Create password client wrapper and use that on in basic auth
client

* AuthN: fix basic auth client test

* AuthN: Add tests for form authentication

* API: Inject authn service

* Login: If authnService feature flag is enabled use authn login

* Login: Handle token creation errors
2023-01-17 09:11:45 +01:00

14 lines
291 B
Go

package clients
import "github.com/grafana/grafana/pkg/util/errutil"
const (
basicPrefix = "Basic "
bearerPrefix = "Bearer "
authorizationHeaderName = "Authorization"
)
var (
errIdentityNotFound = errutil.NewBase(errutil.StatusNotFound, "identity.not-found")
)