You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sdk/storage/storage-blob/samples/javascript/azureAdAuth.js
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@
3
3
4
4
/*
5
5
ONLY AVAILABLE IN NODE.JS RUNTIME
6
+
If you are using the browser, you can use the InteractiveBrowserCredential provided via @azure/identity or any other feasible implementation of TokenCredential.
6
7
7
8
Setup :
8
9
- Reference - Authorize access to blobs and queues with Azure Active Directory from a client application
@@ -44,6 +45,7 @@ async function main() {
44
45
}
45
46
46
47
// ONLY AVAILABLE IN NODE.JS RUNTIME
48
+
// If you are using the browser, you can use the InteractiveBrowserCredential provided via @azure/identity or any other feasible implementation of TokenCredential.
47
49
// DefaultAzureCredential will first look for Azure Active Directory (AAD)
48
50
// client secret credentials in the following environment variables:
// If you are using the browser, you can use the InteractiveBrowserCredential provided via @azure/identity or any other feasible implementation of TokenCredential.
23
24
// DefaultAzureCredential will first look for Azure Active Directory (AAD)
24
25
// client secret credentials in the following environment variables:
Copy file name to clipboardExpand all lines: sdk/storage/storage-blob/samples/typescript/src/azureAdAuth.ts
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@
3
3
4
4
/*
5
5
ONLY AVAILABLE IN NODE.JS RUNTIME
6
+
If you are using the browser, you can use the InteractiveBrowserCredential provided via @azure/identity or any other feasible implementation of TokenCredential.
6
7
7
8
Setup :
8
9
- Reference - Authorize access to blobs and queues with Azure Active Directory from a client application
@@ -45,6 +46,7 @@ export async function main() {
45
46
}
46
47
47
48
// ONLY AVAILABLE IN NODE.JS RUNTIME
49
+
// If you are using the browser, you can use the InteractiveBrowserCredential provided via @azure/identity or any other feasible implementation of TokenCredential.
48
50
// DefaultAzureCredential will first look for Azure Active Directory (AAD)
49
51
// client secret credentials in the following environment variables:
// If you are using the browser, you can use the InteractiveBrowserCredential provided via @azure/identity or any other feasible implementation of TokenCredential.
28
29
// DefaultAzureCredential will first look for Azure Active Directory (AAD)
29
30
// client secret credentials in the following environment variables:
Copy file name to clipboardExpand all lines: sdk/storage/storage-blob/src/Clients.ts
+14-23Lines changed: 14 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -5571,9 +5571,9 @@ export class PageBlobClient extends BlobClient {
5571
5571
* Encoded URL string will NOT be escaped twice, only special characters in URL path will be escaped.
5572
5572
* If a blob name includes ? or %, blob name must be encoded in the URL.
5573
5573
*
5574
-
* @param {string} url A Client string pointing to Azure Storage blob service, such as
5575
-
* "https://myaccount.blob.core.windows.net". You can append a SAS
5576
-
* if using AnonymousCredential, such as "https://myaccount.blob.core.windows.net?sasString".
5574
+
* @param {string} url A Client string pointing to Azure Storage page blob, such as
5575
+
* "https://myaccount.blob.core.windows.net/mycontainer/pageblob". You can append a SAS
5576
+
* if using AnonymousCredential, such as "https://myaccount.blob.core.windows.net/mycontainer/pageblob?sasString".
5577
5577
* @param {StorageSharedKeyCredential | AnonymousCredential | TokenCredential} credential Such as AnonymousCredential, StorageSharedKeyCredential or any credential from the @azure/identity package to authenticate requests to the service. You can also provide an object that implements the TokenCredential interface. If not specified, AnonymousCredential is used.
5578
5578
* @param {StoragePipelineOptions} [options] Optional. Options to configure the HTTP pipeline.
5579
5579
* @memberof PageBlobClient
@@ -5586,10 +5586,10 @@ export class PageBlobClient extends BlobClient {
5586
5586
/**
5587
5587
* Creates an instance of PageBlobClient.
5588
5588
*
5589
-
* @param {string} url A URL string pointing to Azure Storage blob, such as
* @param {StorageSharedKeyCredential | AnonymousCredential | TokenCredential} credential Such as AnonymousCredential, StorageSharedKeyCredential or any credential from the @azure/identity package to authenticate requests to the service. You can also provide an object that implements the TokenCredential interface. If not specified, AnonymousCredential is used.
7309
7305
* @param {StoragePipelineOptions} [options] Optional. Options to configure the HTTP pipeline.
7310
7306
* @memberof ContainerClient
@@ -7316,19 +7312,14 @@ export class ContainerClient extends StorageClient {
7316
7312
);
7317
7313
/**
7318
7314
* Creates an instance of ContainerClient.
7319
-
* This method accepts an encoded URL or non-encoded URL pointing to a page blob.
7315
+
* This method accepts an URL pointing to a container.
7320
7316
* Encoded URL string will NOT be escaped twice, only special characters in URL path will be escaped.
7321
7317
* If a blob name includes ? or %, blob name must be encoded in the URL.
7322
7318
*
7323
-
* @param {string} url A URL string pointing to Azure Storage page blob, such as
7324
-
* "https://myaccount.blob.core.windows.net/mycontainer/pageblob". You can
7319
+
* @param {string} url A URL string pointing to Azure Storage container, such as
7320
+
* "https://myaccount.blob.core.windows.net/mycontainer". You can
7325
7321
* append a SAS if using AnonymousCredential, such as
// If you are using the browser, you can use the InteractiveBrowserCredential provided via @azure/identity or any other feasible implementation of TokenCredential.
20
24
// DefaultAzureCredential will first look for Azure Active Directory (AAD)
21
25
// client secret credentials in the following environment variables:
// If you are using the browser, you can use the InteractiveBrowserCredential provided via @azure/identity or any other feasible implementation of TokenCredential.
21
22
// DefaultAzureCredential will first look for Azure Active Directory (AAD)
22
23
// client secret credentials in the following environment variables:
0 commit comments