Auth: Remove auth broker flag and clean up login handlers (#73109)

* Auth: Remove auth broker flag and clean up login handlers
This commit is contained in:
Karl Persson
2023-08-10 09:56:04 +02:00
committed by GitHub
parent eb6e19c7af
commit 2c57bca176
7 changed files with 31 additions and 474 deletions

View File

@@ -384,7 +384,6 @@ type GrafanaOpts struct {
EnableLog bool
GRPCServerAddress string
QueryRetries int64
AuthBrokerEnabled bool
}
func CreateUser(t *testing.T, store *sqlstore.SQLStore, cmd user.CreateUserCommand) *user.User {

View File

@@ -119,9 +119,7 @@ func TestIntegrationIndexViewAnalytics(t *testing.T) {
for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
grafDir, cfgPath := testinfra.CreateGrafDir(t, testinfra.GrafanaOpts{
AuthBrokerEnabled: true,
})
grafDir, cfgPath := testinfra.CreateGrafDir(t, testinfra.GrafanaOpts{})
addr, store := testinfra.StartGrafana(t, grafDir, cfgPath)
createdUser := testinfra.CreateUser(t, store, user.CreateUserCommand{
Login: "admin",