@@ -29,7 +29,7 @@ import (
29
29
30
30
// Config is used for authentication for Git operations.
31
31
type Config struct {
32
- promoauth.InstrumentedeOAuth2Config
32
+ promoauth.InstrumentedOAuth2Config
33
33
// ID is a unique identifier for the authenticator.
34
34
ID string
35
35
// Type is the type of provider.
@@ -188,7 +188,7 @@ func (c *Config) ValidateToken(ctx context.Context, token string) (bool, *coders
188
188
}
189
189
190
190
req .Header .Set ("Authorization" , fmt .Sprintf ("Bearer %s" , token ))
191
- res , err := c .InstrumentedeOAuth2Config .Do (ctx , "ValidateToken" , req )
191
+ res , err := c .InstrumentedOAuth2Config .Do (ctx , "ValidateToken" , req )
192
192
if err != nil {
193
193
return false , nil , err
194
194
}
@@ -238,7 +238,7 @@ func (c *Config) AppInstallations(ctx context.Context, token string) ([]codersdk
238
238
return nil , false , err
239
239
}
240
240
req .Header .Set ("Authorization" , fmt .Sprintf ("Bearer %s" , token ))
241
- res , err := c .InstrumentedeOAuth2Config .Do (ctx , "AppInstallations" , req )
241
+ res , err := c .InstrumentedOAuth2Config .Do (ctx , "AppInstallations" , req )
242
242
if err != nil {
243
243
return nil , false , err
244
244
}
@@ -279,7 +279,7 @@ func (c *Config) AppInstallations(ctx context.Context, token string) ([]codersdk
279
279
280
280
type DeviceAuth struct {
281
281
// Cfg is provided for the http client method.
282
- Cfg promoauth.InstrumentedeOAuth2Config
282
+ Cfg promoauth.InstrumentedOAuth2Config
283
283
ClientID string
284
284
TokenURL string
285
285
Scopes []string
@@ -456,17 +456,17 @@ func ConvertConfig(instrument *promoauth.Factory, entries []codersdk.ExternalAut
456
456
}
457
457
458
458
cfg := & Config {
459
- InstrumentedeOAuth2Config : instrument .New (entry .ID , oauthConfig ),
460
- ID : entry .ID ,
461
- Regex : regex ,
462
- Type : entry .Type ,
463
- NoRefresh : entry .NoRefresh ,
464
- ValidateURL : entry .ValidateURL ,
465
- AppInstallationsURL : entry .AppInstallationsURL ,
466
- AppInstallURL : entry .AppInstallURL ,
467
- DisplayName : entry .DisplayName ,
468
- DisplayIcon : entry .DisplayIcon ,
469
- ExtraTokenKeys : entry .ExtraTokenKeys ,
459
+ InstrumentedOAuth2Config : instrument .New (entry .ID , oauthConfig ),
460
+ ID : entry .ID ,
461
+ Regex : regex ,
462
+ Type : entry .Type ,
463
+ NoRefresh : entry .NoRefresh ,
464
+ ValidateURL : entry .ValidateURL ,
465
+ AppInstallationsURL : entry .AppInstallationsURL ,
466
+ AppInstallURL : entry .AppInstallURL ,
467
+ DisplayName : entry .DisplayName ,
468
+ DisplayIcon : entry .DisplayIcon ,
469
+ ExtraTokenKeys : entry .ExtraTokenKeys ,
470
470
}
471
471
472
472
if entry .DeviceFlow {
0 commit comments