Skip to content

Commit

Permalink
cmd/config/oauth2: append CLI scopes to configured ones when resolving
Browse files Browse the repository at this point in the history
  • Loading branch information
vs49688 committed Jul 30, 2022
1 parent db2b70f commit deba9a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/config/oauth2.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func (cfg *OAuth2Config) Parameters() []cli.Flag {
func (cfg *OAuth2Config) ResolveConfig() error {
switch cfg.Provider {
case "custom":
cfg.Config.Scopes = cfg.Scopes.Value()
cfg.Config.Scopes = append(cfg.Config.Scopes, cfg.Scopes.Value()...)
default:
return fmt.Errorf("unknown oauth2 provider: %v", cfg.Provider)
}
Expand Down

0 comments on commit deba9a3

Please sign in to comment.