add config flag for experimental introspection

This commit is contained in:
Tim Möhlmann
2023-11-13 19:43:06 +02:00
parent 9c0f38ef94
commit 3797f18e5e
4 changed files with 14 additions and 0 deletions

View File

@@ -45,6 +45,7 @@ type Config struct {
DeviceAuth *DeviceAuthorizationConfig
DefaultLoginURLV2 string
DefaultLogoutURLV2 string
Features Features
}
type EndpointConfig struct {
@@ -63,6 +64,10 @@ type Endpoint struct {
URL string
}
type Features struct {
ExperimentalIntrospection bool
}
type OPStorage struct {
repo repository.Repository
command *command.Commands
@@ -120,6 +125,7 @@ func NewServer(
server := &Server{
LegacyServer: op.NewLegacyServer(provider, endpoints(config.CustomEndpoints)),
features: config.Features,
repo: repo,
query: query,
command: command,