azure_identity 0.0.4 copy "azure_identity: ^0.0.4" to clipboard
azure_identity: ^0.0.4 copied to clipboard

A (partial) Dart implementation of the Azure Identity SDK

example/azure_identity_example.dart

import 'package:azure_identity/azure_identity.dart';

Future<void> main() async {
  // create instance of DefaultAzureCredential using the bridge binary
  final defaultAzureCredential = DefaultAzureCredential(
    logger: print,
  );

  // initialize credential manager
  final credentialManager = CredentialManager(
    credential: defaultAzureCredential,
    options: GetTokenOptions(
      scopes: ['https://myserver.fhir.azurehealthcareapis.com/'],
    ),
  );

  final token = await credentialManager.getAccessToken();

  print(token?.token);
}
2
likes
0
points
33
downloads

Publisher

verified publisherevoleen.com

Weekly Downloads

A (partial) Dart implementation of the Azure Identity SDK

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dio

More

Packages that depend on azure_identity