File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed
Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,6 @@ import 'utils.dart';
2020/// 3. **Other auth clients** (ADC on GCE/Cloud Run): Uses IAM signBlob with
2121/// the default service account from metadata server
2222///
23- /// This is the Dart equivalent of `GoogleAuth.sign()` from the Node.js
24- /// google-auth-library.
25- ///
2623/// Example usage:
2724/// ```dart
2825/// // Works with service account credentials
@@ -93,14 +90,6 @@ extension AuthClientSigningExtension on AuthClient {
9390 final universeDomain =
9491 serviceAccountCreds? .universeDomain ?? defaultUniverseDomain;
9592 endpoint ?? = 'https://iamcredentials.$universeDomain ' ;
96- return _signViaIAM (data, endpoint);
97- }
98-
99- /// Signs data using the IAM Credentials API.
100- ///
101- /// Returns the signature as a String (base64-encoded).
102- Future <String > _signViaIAM (List <int > data, String endpoint) async {
103- final signer = IAMSigner (this as http.Client , endpoint: endpoint);
104- return signer.sign (data);
93+ return IAMSigner (this , endpoint: endpoint).sign (data);
10594 }
10695}
You can’t perform that action at this time.
0 commit comments