@azure/core-auth 1.9.1-alpha.20250130.1 → 1.9.1-alpha.20250204.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
- The MIT License (MIT)
1
+ Copyright (c) Microsoft Corporation.
2
2
 
3
- Copyright (c) 2020 Microsoft
3
+ MIT License
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -12,7 +12,7 @@ furnished to do so, subject to the following conditions:
12
12
  The above copyright notice and this permission notice shall be included in all
13
13
  copies or substantial portions of the Software.
14
14
 
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
16
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
17
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
package/README.md CHANGED
@@ -26,41 +26,44 @@ The `AzureSASCredential` is a static signature-based credential that supports up
26
26
 
27
27
  ### AzureKeyCredential
28
28
 
29
- ```ts snippet:azure_key_credential
29
+ ```ts snippet:ReadmeSampleAzureKeyCredential
30
30
  import { AzureKeyCredential } from "@azure/core-auth";
31
31
 
32
32
  const credential = new AzureKeyCredential("secret value");
33
- // prints: "secret value"
34
- console.log(credential.key);
33
+
34
+ console.log(credential.key); // prints: "secret value"
35
+
35
36
  credential.update("other secret value");
36
- // prints: "other secret value"
37
- console.log(credential.key);
37
+
38
+ console.log(credential.key); // prints: "other secret value"
38
39
  ```
39
40
 
40
41
  ### AzureNamedKeyCredential
41
42
 
42
- ```ts snippet:azure_named_key_credential
43
+ ```ts snippet:ReadmeSampleAzureNamedCredential
43
44
  import { AzureNamedKeyCredential } from "@azure/core-auth";
44
45
 
45
46
  const credential = new AzureNamedKeyCredential("ManagedPolicy", "secret value");
46
- // prints: "ManagedPolicy, secret value"
47
- console.log(`${credential.name}, ${credential.key}`);
47
+
48
+ console.log(`${credential.name}, ${credential.key}`); // prints: "ManagedPolicy, secret value"
49
+
48
50
  credential.update("OtherManagedPolicy", "other secret value");
49
- // prints: "OtherManagedPolicy, other secret value"
50
- console.log(`${credential.name}, ${credential.key}`);
51
+
52
+ console.log(`${credential.name}, ${credential.key}`); // prints: "OtherManagedPolicy, other secret value"
51
53
  ```
52
54
 
53
55
  ### AzureSASCredential
54
56
 
55
- ```ts snippet:azure_sas_credential
57
+ ```ts snippet:ReadmeSampleSASCredential
56
58
  import { AzureSASCredential } from "@azure/core-auth";
57
59
 
58
60
  const credential = new AzureSASCredential("signature1");
59
- // prints: "signature1"
60
- console.log(credential.signature);
61
+
62
+ console.log(credential.signature); // prints: "signature1"
63
+
61
64
  credential.update("signature2");
62
- // prints: "signature2"
63
- console.log(credential.signature);
65
+
66
+ console.log(credential.signature); // prints: "signature2"
64
67
  ```
65
68
 
66
69
  ## Next steps
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.49.1"
8
+ "packageVersion": "7.49.2"
9
9
  }
10
10
  ]
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure/core-auth",
3
- "version": "1.9.1-alpha.20250130.1",
3
+ "version": "1.9.1-alpha.20250204.1",
4
4
  "description": "Provides low-level interfaces and helper methods for authentication in Azure SDK",
5
5
  "sdk-type": "client",
6
6
  "type": "module",