@azure/msal-common 1.6.3 → 2.0.0

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.
Files changed (42) hide show
  1. package/CHANGELOG.json +180 -0
  2. package/changelog.md +60 -6
  3. package/dist/index.es.js +1346 -1034
  4. package/dist/index.js +1050 -737
  5. package/dist/src/account/AccountInfo.d.ts +5 -0
  6. package/dist/src/authority/Authority.d.ts +8 -1
  7. package/dist/src/cache/CacheManager.d.ts +17 -2
  8. package/dist/src/cache/entities/AccountEntity.d.ts +15 -2
  9. package/dist/src/cache/entities/CacheRecord.d.ts +6 -6
  10. package/dist/src/client/AuthorizationCodeClient.d.ts +8 -2
  11. package/dist/src/client/BaseClient.d.ts +9 -4
  12. package/dist/src/client/ClientCredentialClient.d.ts +21 -1
  13. package/dist/src/client/DeviceCodeClient.d.ts +1 -1
  14. package/dist/src/client/OnBehalfOfClient.d.ts +30 -1
  15. package/dist/src/client/RefreshTokenClient.d.ts +2 -2
  16. package/dist/src/client/SilentFlowClient.d.ts +1 -1
  17. package/dist/src/client/UsernamePasswordClient.d.ts +28 -0
  18. package/dist/src/config/ClientConfiguration.d.ts +19 -6
  19. package/dist/src/error/AuthError.d.ts +2 -2
  20. package/dist/src/error/ClientAuthError.d.ts +45 -5
  21. package/dist/src/error/ClientConfigurationError.d.ts +8 -0
  22. package/dist/src/error/InteractionRequiredAuthError.d.ts +2 -2
  23. package/dist/src/error/ServerError.d.ts +1 -2
  24. package/dist/src/index.d.ts +4 -0
  25. package/dist/src/logger/Logger.d.ts +7 -1
  26. package/dist/src/request/AuthorizationCodeRequest.d.ts +2 -2
  27. package/dist/src/request/AuthorizationUrlRequest.d.ts +9 -9
  28. package/dist/src/request/BaseAuthRequest.d.ts +2 -2
  29. package/dist/src/request/ClientCredentialRequest.d.ts +1 -1
  30. package/dist/src/request/EndSessionRequest.d.ts +3 -3
  31. package/dist/src/request/RefreshTokenRequest.d.ts +1 -1
  32. package/dist/src/request/RequestParameterBuilder.d.ts +22 -2
  33. package/dist/src/request/SilentFlowRequest.d.ts +1 -1
  34. package/dist/src/request/UsernamePasswordRequest.d.ts +16 -0
  35. package/dist/src/response/AuthenticationResult.d.ts +5 -2
  36. package/dist/src/response/AuthorizationCodePayload.d.ts +12 -0
  37. package/dist/src/response/ResponseHandler.d.ts +4 -4
  38. package/dist/src/response/ServerAuthorizationCodeResponse.d.ts +4 -0
  39. package/dist/src/url/UrlString.d.ts +1 -0
  40. package/dist/src/utils/Constants.d.ts +9 -0
  41. package/dist/src/utils/StringUtils.d.ts +8 -2
  42. package/package.json +4 -3
package/CHANGELOG.json CHANGED
@@ -1,6 +1,186 @@
1
1
  {
2
2
  "name": "@azure/msal-common",
3
3
  "entries": [
4
+ {
5
+ "date": "Mon, 07 Dec 2020 22:19:03 GMT",
6
+ "tag": "@azure/msal-common_v2.0.0",
7
+ "version": "2.0.0",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "comment": "Fix login loop with empty query string (#2707)",
12
+ "author": "thomas.norling@microsoft.com",
13
+ "commit": "307307edb3d9877caca3874d17f35faf2bae6180",
14
+ "package": "@azure/msal-common"
15
+ },
16
+ {
17
+ "comment": "Expose idTokenClaims on AccountInfo (#2554)",
18
+ "author": "janutter@microsoft.com",
19
+ "commit": "cb2165aad7995d904ec49ade565d907dc314ce16",
20
+ "package": "@azure/msal-common"
21
+ },
22
+ {
23
+ "comment": "Add matchPattern string util for wildcard matching for urls (#2678)",
24
+ "author": "janutter@microsoft.com",
25
+ "commit": "4642741f3def4cdb575cc0a228f88e19f84e3da5",
26
+ "package": "@azure/msal-common"
27
+ },
28
+ {
29
+ "comment": "fix: added missing async (AzureAD/microsoft-authentication-library-for-js#2652)",
30
+ "author": "patrick@ruhkopf.me",
31
+ "commit": "1c0df2fc1468fb094c76da04de91271ffb4461c7",
32
+ "package": "@azure/msal-common"
33
+ },
34
+ {
35
+ "comment": "Log messages contain package name and version (#2589)",
36
+ "author": "thomas.norling@microsoft.com",
37
+ "commit": "4568c16bd425e242cdb799ec59b3508654cc2e45",
38
+ "package": "@azure/msal-common"
39
+ }
40
+ ],
41
+ "minor": [
42
+ {
43
+ "comment": "Add clone to Logger (#2670)",
44
+ "author": "joarroyo@microsoft.com",
45
+ "commit": "9efb3ba5886eaf6f3a3cd36957ab9fcb7399278a",
46
+ "package": "@azure/msal-common"
47
+ },
48
+ {
49
+ "comment": "Enable the instance_aware flow (#1804)",
50
+ "author": "prkanher@microsoft.com",
51
+ "commit": "3e616e162149f4e57257b70e6d481c4596d91ef9",
52
+ "package": "@azure/msal-common"
53
+ },
54
+ {
55
+ "comment": "Support id_token_hint on logout request (#2587)",
56
+ "author": "thomas.norling@microsoft.com",
57
+ "commit": "fa9b7009f094b3c17a6d177fcec9b736320735c0",
58
+ "package": "@azure/msal-common"
59
+ }
60
+ ],
61
+ "major": [
62
+ {
63
+ "comment": "Enable StrictNullChecks (#2602)",
64
+ "author": "thomas.norling@microsoft.com",
65
+ "commit": "ebf18c6daead16f8cfd2afb3b63cbd59fc63046a",
66
+ "package": "@azure/msal-common"
67
+ },
68
+ {
69
+ "comment": "Rename request types and change required fields (#2512)",
70
+ "author": "thomas.norling@microsoft.com",
71
+ "commit": "5b891222d674eb5664af9187f319a61b50341f55",
72
+ "package": "@azure/msal-common"
73
+ }
74
+ ],
75
+ "none": [
76
+ {
77
+ "comment": "Enforce triple equals in eslint",
78
+ "author": "janutter@microsoft.com",
79
+ "commit": "5975eb4077a2b4372683e68af4d748b0808134ab",
80
+ "package": "@azure/msal-common"
81
+ },
82
+ {
83
+ "comment": "Package-lock update",
84
+ "author": "thomas.norling@microsoft.com",
85
+ "commit": "9c029bc074ecd32483a45cfab8721f0771c31e55",
86
+ "package": "@azure/msal-common"
87
+ },
88
+ {
89
+ "comment": "Remove console.log in unit tests (#2629)",
90
+ "author": "thomas.norling@microsoft.com",
91
+ "commit": "b89d8029a3703b2bfa1f9399456e652fe6f26e4f",
92
+ "package": "@azure/msal-common"
93
+ }
94
+ ]
95
+ }
96
+ },
97
+ {
98
+ "date": "Wed, 11 Nov 2020 23:33:20 GMT",
99
+ "tag": "@azure/msal-common_v1.7.2",
100
+ "version": "1.7.2",
101
+ "comments": {
102
+ "none": [
103
+ {
104
+ "comment": "Documentation update for new account retrieval APIs (#2585)",
105
+ "author": "hemoral@microsoft.com",
106
+ "commit": "cb782967cc8f07581488de71c4509fa12a702774",
107
+ "package": "@azure/msal-common"
108
+ }
109
+ ],
110
+ "patch": [
111
+ {
112
+ "comment": "Add getAbsolutePath helper function to UrlString class (#2560)",
113
+ "author": "thomas.norling@microsoft.com",
114
+ "commit": "12ccf0441f8735e9d2875cebac6065447ecc622d",
115
+ "package": "@azure/msal-common"
116
+ }
117
+ ]
118
+ }
119
+ },
120
+ {
121
+ "date": "Tue, 10 Nov 2020 01:48:44 GMT",
122
+ "tag": "@azure/msal-common_v1.7.1",
123
+ "version": "1.7.1",
124
+ "comments": {
125
+ "patch": [
126
+ {
127
+ "comment": "Enhance lookup for IdTokens/AppMetadata (#2530)",
128
+ "author": "sameera.gajjarapu@microsoft.com",
129
+ "commit": "e51446295f8c857f1abc7f6874a4c7fde157699e",
130
+ "package": "@azure/msal-common"
131
+ },
132
+ {
133
+ "comment": "Add LocalAccountId for ADFS usecases (#2573)",
134
+ "author": "sameera.gajjarapu@microsoft.com",
135
+ "commit": "d8247d8e74fc8854ffdb5a6001df00b36fdddd62",
136
+ "package": "@azure/msal-common"
137
+ }
138
+ ]
139
+ }
140
+ },
141
+ {
142
+ "date": "Sat, 07 Nov 2020 01:50:14 GMT",
143
+ "tag": "@azure/msal-common_v1.7.0",
144
+ "version": "1.7.0",
145
+ "comments": {
146
+ "patch": [
147
+ {
148
+ "comment": "Mandate localAccount in AccountInfo",
149
+ "author": "sameera.gajjarapu@microsoft.com",
150
+ "commit": "ee770fc1f4ed1ef9e53b28a18487e9b7686ffa64",
151
+ "package": "@azure/msal-common"
152
+ },
153
+ {
154
+ "comment": "Filtered lookup of IdTokens, AppMetadata; Error handling in Node Storage (#2530)",
155
+ "author": "sameera.gajjarapu@microsoft.com",
156
+ "commit": "354dd86449d792b7369fb240c5e2cfd70ca73488",
157
+ "package": "@azure/msal-common"
158
+ }
159
+ ],
160
+ "none": [
161
+ {
162
+ "comment": "Build Pipeline Changes (#2406)",
163
+ "author": "thomas.norling@microsoft.com",
164
+ "commit": "af8459c0d53a4dc2bf495017608c0bb03004d006",
165
+ "package": "@azure/msal-common"
166
+ }
167
+ ],
168
+ "minor": [
169
+ {
170
+ "comment": "Implement Password Grant Flow (#2204)",
171
+ "author": "sameera.gajjarapu@microsoft.com",
172
+ "commit": "baf6d157e7bbeae439526aee13eb08962974925b",
173
+ "package": "@azure/msal-common"
174
+ },
175
+ {
176
+ "comment": "Fixing a bug and adding `localAccountId` in AccountInfo interface (#2516)",
177
+ "author": "sameera.gajjarapu@microsoft.com",
178
+ "commit": "c2ec3b43f07d9c18eec14e109caddcf7941f50b4",
179
+ "package": "@azure/msal-common"
180
+ }
181
+ ]
182
+ }
183
+ },
4
184
  {
5
185
  "date": "Mon, 26 Oct 2020 21:00:29 GMT",
6
186
  "tag": "@azure/msal-common_v1.6.3",
package/changelog.md CHANGED
@@ -1,19 +1,73 @@
1
1
  # Change Log - @azure/msal-common
2
2
 
3
- This log was last generated on Mon, 26 Oct 2020 21:00:29 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 07 Dec 2020 22:19:03 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## 1.6.3
7
+ ## 2.0.0
8
8
 
9
- Mon, 26 Oct 2020 21:00:29 GMT
9
+ Mon, 07 Dec 2020 22:19:03 GMT
10
+
11
+ ### Major changes
12
+
13
+ - Enable StrictNullChecks (#2602) (thomas.norling@microsoft.com)
14
+ - Rename request types and change required fields (#2512) (thomas.norling@microsoft.com)
15
+
16
+ ### Minor changes
17
+
18
+ - Add clone to Logger (#2670) (joarroyo@microsoft.com)
19
+ - Enable the instance_aware flow (#1804) (prkanher@microsoft.com)
20
+ - Support id_token_hint on logout request (#2587) (thomas.norling@microsoft.com)
10
21
 
11
22
  ### Patches
12
23
 
13
- - Fix ServerTelemetry maxErrorToSend bug (#2491) (thomas.norling@microsoft.com)
14
- - Add missing default headers to device code (sameera.gajjarapu@microsoft.com)
15
- - msal-browser and msal-node cache Interfaces to msal-common updated (#2415) (sameera.gajjarapu@microsoft.com)
24
+ - Fix login loop with empty query string (#2707) (thomas.norling@microsoft.com)
25
+ - Expose idTokenClaims on AccountInfo (#2554) (janutter@microsoft.com)
26
+ - Add matchPattern string util for wildcard matching for urls (#2678) (janutter@microsoft.com)
27
+ - fix: added missing async (AzureAD/microsoft-authentication-library-for-js#2652) (patrick@ruhkopf.me)
28
+ - Log messages contain package name and version (#2589) (thomas.norling@microsoft.com)
16
29
 
30
+ ## 1.7.2
31
+
32
+ Wed, 11 Nov 2020 23:33:20 GMT
33
+
34
+ ### Patches
35
+
36
+ - Add getAbsolutePath helper function to UrlString class (#2560) (thomas.norling@microsoft.com)
37
+
38
+ ## 1.7.1
39
+
40
+ Tue, 10 Nov 2020 01:48:44 GMT
41
+
42
+ ### Patches
43
+
44
+ - Enhance lookup for IdTokens/AppMetadata (#2530) (sameera.gajjarapu@microsoft.com)
45
+ - Add LocalAccountId for ADFS usecases (#2573) (sameera.gajjarapu@microsoft.com)
46
+
47
+ ## 1.7.0
48
+
49
+ Sat, 07 Nov 2020 01:50:14 GMT
50
+
51
+ ### Minor changes
52
+
53
+ - Implement Password Grant Flow (#2204) (sameera.gajjarapu@microsoft.com)
54
+ - Fixing a bug and adding `localAccountId` in AccountInfo interface (#2516) (sameera.gajjarapu@microsoft.com)
55
+
56
+ ### Patches
57
+
58
+ - Mandate localAccount in AccountInfo (sameera.gajjarapu@microsoft.com)
59
+ - Filtered lookup of IdTokens, AppMetadata; Error handling in Node Storage (#2530) (sameera.gajjarapu@microsoft.com)
60
+
61
+ ## 1.6.3
62
+
63
+ Mon, 26 Oct 2020 21:00:29 GMT
64
+
65
+ ### Patches
66
+
67
+ - Fix ServerTelemetry maxErrorToSend bug (#2491) (thomas.norling@microsoft.com)
68
+ - Add missing default headers to device code (sameera.gajjarapu@microsoft.com)
69
+ - msal-browser and msal-node cache Interfaces to msal-common updated (#2415) (sameera.gajjarapu@microsoft.com)
70
+
17
71
  ## 1.6.2
18
72
 
19
73
  Tue, 20 Oct 2020 23:47:28 GMT