wif_workaround 0.1.1 copy "wif_workaround: ^0.1.1" to clipboard
wif_workaround: ^0.1.1 copied to clipboard

A workaround to use Workload Identity Federation with googleapis_auth, calls gcloud CLI to get the access token.

example/main.dart

import 'package:gcloud/pubsub.dart';
import 'package:wif_workaround/wif_workaround.dart' as w;

Future<void> main() async {
  final pubsub = PubSub(
    // Add 'w.' before your normal call.
    await w.clientViaApplicationDefaultCredentials(scopes: PubSub.SCOPES),
    'my-project-id',
  );

  // ...
}
1
likes
160
pub points
0%
popularity

Publisher

verified publisherainkin.com

A workaround to use Workload Identity Federation with googleapis_auth, calls gcloud CLI to get the access token.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT-0 (license)

Dependencies

googleapis_auth, http

More

Packages that depend on wif_workaround