grafana/pkg/services/authn/clients/constants.go
Karl Persson a49892c9ac
AuthN: Refactor basic auth client to support multiple password auth (#61153)
* AuthN: add interface for password clients

* AuthN: Extract grafana password client

* AuthN: Rewrite basic client tests

* AuthN: Add Ldap client and rename method of PasswordClient

* AuthN: Configure multiple password clients

* AuthN: create ldap service and add tests
2023-01-09 16:40:29 +01:00

15 lines
444 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")
errInvalidPassword = errutil.NewBase(errutil.StatusBadRequest, "identity.invalid-password", errutil.WithPublicMessage("Invalid password or username"))
)