Skip to main content

Crate azure_identity_helpers

Crate azure_identity_helpers 

Source
Expand description

§Azure Identity Helpers

azure-identity-helpers provides unofficial utility components for handling Azure authentication and identity management in Rust applications.

This crate offers helper components for Azure authentication scenarios, including AzureAuth CLI integration, credential chaining, device code authentication, and refresh token handling.

§Modules

  • azureauth_cli_credentials: Implements AzureAuth CLI based authentication.
  • chained_token_credential: Implements credential chaining to try multiple authentication methods.
  • default_azure_credential: Recreates Go DefaultAzureCredential using the currently supported Rust credential types. On non-wasm32 targets, the default order is environment, workload identity, managed identity, Azure CLI, and Azure Developer CLI. On wasm32, the default order is environment, workload identity, and managed identity. AzurePowerShellCredential is not currently implemented in this crate.
  • device_code: Provides device code flow authentication support for Azure services.
  • device_code_credential: Implements a credential that can authenticate using device code flow. Uses the device_code module’s functionality.
  • environment_credential: Recreates an EnvironmentCredential-style helper for service principal authentication from environment variables.
  • oauth_error: Shared OAuth 2.0 error response type (RFC 6749 §5.2) used by the device-code and refresh-token endpoints on failure.
  • refresh_token: Handles refresh token operations for maintaining authentication sessions.

Modules§

azureauth_cli_credentials
AzureAuth CLI based authentication.
chained_token_credential
Credential chaining: try multiple TokenCredential sources in order until one succeeds.
default_azure_credential
DefaultAzureCredential.
device_code
Authorize using the device authorization grant flow
device_code_credential
DeviceCodeCredential: a TokenCredential implementing the device code OAuth flow on top of the lower-level helpers in crate::device_code.
environment_credential
Recreates an EnvironmentCredential-style helper for service principal authentication from environment variables.
oauth_error
Shared OAuth 2.0 error response shape (RFC 6749 §5.2).
refresh_token
Refresh tokens.