Chore: provide `authn.Service` rather than `*authnimpl.Service` (#64792)

chore: provide `authn.Service` rather than `*authnimpl.Service` (#64792)
pull/64808/head
Artur Wierzbicki 2 years ago committed by GitHub
parent 96fc0b814e
commit b6f77bdfdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      pkg/server/wire.go
  2. 2
      pkg/services/authn/authnimpl/service.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,
)

@ -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,

Loading…
Cancel
Save