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

chore: provide `authn.Service` rather than `*authnimpl.Service` (#64792)
This commit is contained in:
Artur Wierzbicki
2023-03-15 14:04:11 +04:00
committed by GitHub
parent 96fc0b814e
commit b6f77bdfdb
2 changed files with 1 additions and 3 deletions

View File

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

View File

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