Skip to content

Commit 7895a19

Browse files
authored
fix token scopes for azure_storage and azure_iot_hub (#1541)
1 parent e3e0d22 commit 7895a19

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sdk/iot_hub/src/authorization_policy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use azure_core::{
66
};
77
use std::sync::Arc;
88

9-
const IOTHUB_TOKEN_SCOPE: &[&str] = &["https://iothubs.azure.net"];
9+
const IOTHUB_TOKEN_SCOPE: &[&str] = &["https://iothubs.azure.net/.default"];
1010

1111
#[derive(Debug, Clone)]
1212
pub struct AuthorizationPolicy {

sdk/storage/src/authorization/authorization_policy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use azure_core::{
88
};
99
use std::{borrow::Cow, ops::Deref, sync::Arc};
1010

11-
const STORAGE_TOKEN_SCOPE: &str = "https://storage.azure.com/";
11+
const STORAGE_TOKEN_SCOPE: &str = "https://storage.azure.com/.default";
1212

1313
#[derive(Debug, Clone)]
1414
pub struct AuthorizationPolicy {

0 commit comments

Comments
 (0)