Skip to content

Commit e1cb526

Browse files
committed
tweaks
1 parent 2a6a887 commit e1cb526

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

googleapis_auth/lib/src/adc_utils.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Future<AutoRefreshingAuthClient> _clientViaApplicationCredentials(
8181
'source_credentials': final Map<String, dynamic> source,
8282
}) {
8383
final sourceClient = await _clientViaApplicationCredentials(source, [
84-
'https://www.googleapis.com/auth/cloud-platform',
84+
'https://www.googleapis.com/auth/iam',
8585
], baseClient);
8686

8787
final match = _impersonationUrlRegExp.firstMatch(url);
@@ -106,7 +106,6 @@ Future<AutoRefreshingAuthClient> _clientViaApplicationCredentials(
106106
ServiceAccountCredentials.fromJson(credentials),
107107
scopes,
108108
baseClient: baseClient,
109-
quotaProject: credentials['quota_project_id'] as String?,
110109
);
111110
}
112111

0 commit comments

Comments
 (0)