From d6ce539417b9827acd940f0584dc0613df6af3fb Mon Sep 17 00:00:00 2001 From: Rory Malcolm Date: Fri, 13 Sep 2024 14:31:17 +0100 Subject: [PATCH] Config fixes --- integrations/access/incidentio/config.go | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/integrations/access/incidentio/config.go b/integrations/access/incidentio/config.go index acc9d616d946c..8767b0c3ea461 100644 --- a/integrations/access/incidentio/config.go +++ b/integrations/access/incidentio/config.go @@ -27,7 +27,6 @@ import ( "github.com/gravitational/teleport/api/types" "github.com/gravitational/teleport/integrations/access/common" - "github.com/gravitational/teleport/integrations/access/common/auth" "github.com/gravitational/teleport/integrations/access/common/teleport" ) @@ -38,9 +37,6 @@ type Config struct { Incident common.GenericAPIConfig // ClientConfig contains the config for the incident.io client. ClientConfig ClientConfig `toml:"client_config"` - // AccessTokenProvider provides a method to get the bearer token - // for use when authorizing to a 3rd-party provider API. - AccessTokenProvider auth.AccessTokenProvider // Teleport is a handle to the client to use when communicating with // the Teleport auth server. The ServiceNow app will create a gRPC-based @@ -79,17 +75,6 @@ func (c *Config) CheckAndSetDefaults() error { return trace.Wrap(err) } - if c.AccessTokenProvider == nil { - if c.Incident.Token == "" { - return trace.BadParameter("missing required value incidentio.token") - } - c.AccessTokenProvider = auth.NewStaticAccessTokenProvider(c.Incident.Token) - } else { - if c.Incident.Token != "" { - return trace.BadParameter("exactly one of incidentio.token and AccessTokenProvider must be set") - } - } - if c.Log.Output == "" { c.Log.Output = "stderr" }