Skip to content

Commit

Permalink
Provider: security.token.scheme fix
Browse files Browse the repository at this point in the history
  • Loading branch information
magodo committed Aug 12, 2024
1 parent 83a751b commit 620c2fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/client/build_option.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ type HTTPTokenOption struct {
}

func (opt HTTPTokenOption) configureClient(_ context.Context, client *resty.Client) error {
client.SetAuthToken(opt.Token).SetScheme(opt.Scheme)
client.SetAuthToken(opt.Token)
if opt.Scheme != "" {
client.SetAuthScheme(opt.Scheme)
}
return nil
}

Expand Down

0 comments on commit 620c2fe

Please sign in to comment.