AuthN: Add client to perform basic authentication (#60877)

* AuthN: Add basic auth client boilerplate

* AuthN: Implement test function for basic auth client

* AuthN: Implement the authentication method for basic auth

* AuthN: Add tests for basic auth authentication

* ContextHandler: perform basic auth authentication through authn service
if feature toggle is enabled

* AuthN: Add providers for sync services and pass required dependencies
This commit is contained in:
Karl Persson
2023-01-03 10:23:38 +01:00
committed by GitHub
parent b3540b5f46
commit 9fbb29c588
9 changed files with 302 additions and 28 deletions
@@ -13,6 +13,10 @@ import (
"github.com/grafana/grafana/pkg/services/user"
)
func ProvideUserSync(userService user.Service, authInfoService login.AuthInfoService, quotaService quota.Service) *UserSync {
return &UserSync{userService, authInfoService, quotaService, log.New("user.sync")}
}
type UserSync struct {
userService user.Service
authInfoService login.AuthInfoService