mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
LDAP: Move LDAP globals to Config (#63255)
* structure dtos and private methods * add basic LDAP service * use LDAP service in ldap debug API * lower non fatal error * remove unused globals * wip * remove final globals * fix tests to use cfg enabled * restructure errors * remove logger from globals * use ldap service in authn * use ldap service in context handler * fix failed tests * fix ldap middleware provides * fix provides in auth_test.go
This commit is contained in:
@@ -69,6 +69,7 @@ import (
|
||||
"github.com/grafana/grafana/pkg/services/guardian"
|
||||
"github.com/grafana/grafana/pkg/services/hooks"
|
||||
ldapapi "github.com/grafana/grafana/pkg/services/ldap/api"
|
||||
ldapservice "github.com/grafana/grafana/pkg/services/ldap/service"
|
||||
"github.com/grafana/grafana/pkg/services/libraryelements"
|
||||
"github.com/grafana/grafana/pkg/services/librarypanels"
|
||||
"github.com/grafana/grafana/pkg/services/live"
|
||||
@@ -234,6 +235,8 @@ var wireBasicSet = wire.NewSet(
|
||||
live.ProvideService,
|
||||
pushhttp.ProvideService,
|
||||
contexthandler.ProvideService,
|
||||
ldapservice.ProvideService,
|
||||
wire.Bind(new(ldapservice.LDAP), new(*ldapservice.LDAPImpl)),
|
||||
jwt.ProvideService,
|
||||
wire.Bind(new(jwt.JWTService), new(*jwt.AuthService)),
|
||||
ngstore.ProvideDBStore,
|
||||
|
||||
Reference in New Issue
Block a user