diff --git a/pkg/server/wire.go b/pkg/server/wire.go index c475202953c..9668f60cd50 100644 --- a/pkg/server/wire.go +++ b/pkg/server/wire.go @@ -39,7 +39,6 @@ import ( "github.com/grafana/grafana/pkg/services/annotations/annotationsimpl" "github.com/grafana/grafana/pkg/services/apikey/apikeyimpl" "github.com/grafana/grafana/pkg/services/auth/jwt" - "github.com/grafana/grafana/pkg/services/authn" "github.com/grafana/grafana/pkg/services/authn/authnimpl" "github.com/grafana/grafana/pkg/services/cleanup" "github.com/grafana/grafana/pkg/services/contexthandler" @@ -358,7 +357,6 @@ var wireBasicSet = wire.NewSet( tagimpl.ProvideService, wire.Bind(new(tag.Service), new(*tagimpl.Service)), authnimpl.ProvideService, - wire.Bind(new(authn.Service), new(*authnimpl.Service)), supportbundlesimpl.ProvideService, modules.WireSet, ) diff --git a/pkg/services/authn/authnimpl/service.go b/pkg/services/authn/authnimpl/service.go index 6761db3887a..dce5e78251e 100644 --- a/pkg/services/authn/authnimpl/service.go +++ b/pkg/services/authn/authnimpl/service.go @@ -62,7 +62,7 @@ func ProvideService( features *featuremgmt.FeatureManager, oauthTokenService oauthtoken.OAuthTokenService, socialService social.Service, cache *remotecache.RemoteCache, ldapService service.LDAP, registerer prometheus.Registerer, -) *Service { +) authn.Service { s := &Service{ log: log.New("authn.service"), cfg: cfg,