mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 18:30:41 -06:00
2324597d8d
* 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
14 lines
291 B
Go
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")
|
|
)
|