Skip to content

prep azure_identity 0.3.0 #753

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sdk/device_update/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ serde = { version = "1.0", features = ["derive"] }
getset = "0.1"
azure_core = { path = "../core", version = "0.2" }
log = "0.4"
azure_identity = { path = "../identity", version = "0.2" }
azure_identity = { path = "../identity" }

[dev-dependencies]
tokio = { version = "1.0", features = ["full"] }
Expand Down
9 changes: 0 additions & 9 deletions sdk/device_update/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
# Azure SDK for Rust - Azure Device Update crate

Azure Device Update crate for the unofficial Microsoft Azure SDK for Rust. This crate is part of a collection of crates: for more information please refer to [https://github.com/azure/azure-sdk-for-rust]().

## Usage

To set this crate as a dependency, add this to your Cargo.toml

```toml
[dependencies]
azure_device_update = { version = "0.1.0", git = "https://github.com/Azure/azure-sdk-for-rust" }
```
12 changes: 12 additions & 0 deletions sdk/identity/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# 0.3.0 (2022-05)

- [#751](https://github.com/Azure/azure-sdk-for-rust/pull/751) datetime from azure cli token is in the local timezone
- [#748](https://github.com/Azure/azure-sdk-for-rust/pull/748) adding option to specify client_id for MSI

# 0.2.0 (2022-05)

- update to azure_core 0.2.1

# 0.1.1 (2022-01)

- initial publish to [crates.io](https://crates.io/crates/azure_identity)
2 changes: 1 addition & 1 deletion sdk/identity/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "azure_identity"
version = "0.2.0"
version = "0.3.0"
description = "Rust wrappers around Microsoft Azure REST APIs - Azure identity helper crate"
readme = "README.md"
authors = ["Microsoft Corp."]
Expand Down
21 changes: 11 additions & 10 deletions sdk/identity/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,17 @@
Azure Identity crate for the unofficial Microsoft Azure SDK for Rust. This crate is part of a collection of crates: for more information please refer to [https://github.com/azure/azure-sdk-for-rust](https://github.com/azure/azure-sdk-for-rust).
This crate provides mechanisms for several ways to authenticate against Azure

For example, to authenticate using the client credential flow, you can do the following:
Several implementations of `azure_core::auth::TokenCredential` trait are available:

- DefaultAzureCredential
- EnvironmentCredential
- ImdsManagedIdentityCredential
- AzureCliCredential
- AutoRefreshingTokenCredential

There are several [examples](https://github.com/Azure/azure-sdk-for-rust/tree/main/sdk/identity/examples) available. The [service examples](https://github.com/Azure/azure-sdk-for-rust/tree/main/services#examples) mostly use `AzureCliCredential`.

To authenticate using the client credential flow, you can do the following:

```rust
use azure_identity::client_credentials_flow;
Expand Down Expand Up @@ -44,12 +54,3 @@ The supported authentication flows are:
* [Device code flow](https://docs.microsoft.com/azure/active-directory/develop/v2-oauth2-device-code).

This crate also includes utilities for handling refresh tokens and accessing token credentials from many different sources.

## Usage

To set this crate as a dependency, add this to your Cargo.toml

```toml
[dependencies]
azure_identity = "0.1"
```
9 changes: 0 additions & 9 deletions sdk/iot_hub/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
# Azure SDK for Rust - Azure IoT Hub crate

Azure IoT Hub crate for the unofficial Microsoft Azure SDK for Rust. This crate is part of a collection of crates: for more information please refer to [https://github.com/azure/azure-sdk-for-rust](https://github.com/azure/azure-sdk-for-rust).

## Usage

To set this crate as a dependency, add this to your Cargo.toml

```toml
[dependencies]
azure_iot_hub = "0.1"
```
2 changes: 1 addition & 1 deletion sdk/security_keyvault/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ azure_core = { path = "../core", version = "0.2" }

[dev-dependencies]
oauth2 = "4.0.0"
azure_identity = { path = "../identity", version = "0.2" }
azure_identity = { path = "../identity" }
mockito = "0.31"
async-trait = "0.1"
tokio = { version = "1.0", features = ["full"] }
2 changes: 1 addition & 1 deletion sdk/storage/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ sha2 = "0.10"
[dev-dependencies]
tokio = { version = "1.0", features = ["macros"] }
env_logger = "0.9"
azure_identity = { path = "../identity", version = "0.2" }
azure_identity = { path = "../identity" }
reqwest = "0.11"

[features]
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage_blobs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ thiserror = "1.0"
[dev-dependencies]
tokio = { version = "1.0", features = ["full"] }
env_logger = "0.9"
azure_identity = { path = "../identity", version = "0.2" }
azure_identity = { path = "../identity" }
reqwest = "0.11"
oauth2 = { version = "4.0.0", default-features = false }

Expand Down
2 changes: 1 addition & 1 deletion sdk/storage_datalake/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ url = "2.2"

[dev-dependencies]
tokio = { version = "1.0", features = ["full"] }
azure_identity = { path = "../identity", version = "0.2" }
azure_identity = { path = "../identity" }

[features]
default = ["enable_reqwest"]
Expand Down