mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 02:40:26 -06:00
Features: Add aplha feature toggle for authn service (#59469)
* Features: Add aplha feature toggle for authn service * AuthN: Add service boilerplate * Set authnz-team as codeowners of authn service
This commit is contained in:
parent
8a0e0584ba
commit
17ec4089dc
1
.github/CODEOWNERS
vendored
1
.github/CODEOWNERS
vendored
@ -224,6 +224,7 @@ lerna.json @grafana/frontend-ops
|
||||
/pkg/services/teamguardian @grafana/grafana-authnz-team
|
||||
/pkg/services/serviceaccounts @grafana/grafana-authnz-team
|
||||
/pkg/services/loginattempt @grafana/grafana-authnz-team
|
||||
/pkg/services/authn @grafana/grafana-authnz-team
|
||||
|
||||
# Grafana Partnerships Team
|
||||
/pkg/infra/httpclient/httpclientprovider/sigv4_middleware.go @grafana/grafana-partnerships-team
|
||||
|
@ -82,4 +82,5 @@ export interface FeatureToggles {
|
||||
nestedFolders?: boolean;
|
||||
accessTokenExpirationCheck?: boolean;
|
||||
elasticsearchBackendMigration?: boolean;
|
||||
authnService?: boolean;
|
||||
}
|
||||
|
4
pkg/services/authn/authn.go
Normal file
4
pkg/services/authn/authn.go
Normal file
@ -0,0 +1,4 @@
|
||||
package authn
|
||||
|
||||
type Service interface {
|
||||
}
|
8
pkg/services/authn/authnimpl/service.go
Normal file
8
pkg/services/authn/authnimpl/service.go
Normal file
@ -0,0 +1,8 @@
|
||||
package authnimpl
|
||||
|
||||
import "github.com/grafana/grafana/pkg/services/authn"
|
||||
|
||||
var _ authn.Service = new(Service)
|
||||
|
||||
type Service struct {
|
||||
}
|
7
pkg/services/authn/authntest/fake.go
Normal file
7
pkg/services/authn/authntest/fake.go
Normal file
@ -0,0 +1,7 @@
|
||||
package authntest
|
||||
|
||||
import "github.com/grafana/grafana/pkg/services/authn"
|
||||
|
||||
type FakeService struct {
|
||||
authn.Service
|
||||
}
|
@ -367,5 +367,10 @@ var (
|
||||
Description: "Use Elasticsearch as backend data source",
|
||||
State: FeatureStateAlpha,
|
||||
},
|
||||
{
|
||||
Name: "authnService",
|
||||
Description: "Use new auth service to perform authentication",
|
||||
State: FeatureStateAlpha,
|
||||
},
|
||||
}
|
||||
)
|
||||
|
@ -270,4 +270,8 @@ const (
|
||||
// FlagElasticsearchBackendMigration
|
||||
// Use Elasticsearch as backend data source
|
||||
FlagElasticsearchBackendMigration = "elasticsearchBackendMigration"
|
||||
|
||||
// FlagAuthnService
|
||||
// Use new auth service to perform authentication
|
||||
FlagAuthnService = "authnService"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user