google: Address comments for CredentialsParams support

This commit is contained in:
Andy Zhao
2021-04-21 09:20:55 -07:00
parent debdcb489f
commit 3a734b4293
2 changed files with 38 additions and 23 deletions

View File

@@ -140,7 +140,7 @@ func (f *credentialsFile) jwtConfig(scopes []string, subject string) *jwt.Config
return cfg
}
func (f *credentialsFile) tokenSource(ctx context.Context, params TokenSourceParams) (oauth2.TokenSource, error) {
func (f *credentialsFile) tokenSource(ctx context.Context, params CredentialsParams) (oauth2.TokenSource, error) {
switch f.Type {
case serviceAccountKey:
cfg := f.jwtConfig(params.Scopes, params.Subject)