Commit 8d060c2
authored
File tree
28 files changed
+978
-225
lines changed- msal
- src
- androidTest
- java/com/microsoft/identity/client
- res/raw
- main/java/com/microsoft/identity/client
- helper
- test/java
- android/text
- com/microsoft/identity/client
- e2e
- shadows
- tests
- mocked
- versioning
- testapps/testapp
- src/main/java/com/microsoft/identity/client/testapp
28 files changed
+978
-225
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
2 | 8 | | |
3 | 9 | | |
4 | 10 | | |
5 | | - | |
| 11 | + | |
| 12 | + | |
6 | 13 | | |
7 | 14 | | |
8 | 15 | | |
| |||
- build.gradle+2
- changelog.txt+24-4
- common/build.gradle+14-13
- common/src/androidTest/java/com/microsoft/identity/common/BrokerOAuth2TokenCacheTest.java+4-2
- common/src/androidTest/java/com/microsoft/identity/common/CommandDispatcherTest.java+89-2
- common/src/androidTest/java/com/microsoft/identity/common/DefaultSharedPrefsFileManagerReencrypterTest.java+764
- common/src/androidTest/java/com/microsoft/identity/common/MsalOAuth2TokenCacheTest.java+2-1
- common/src/androidTest/java/com/microsoft/identity/common/SharedPreferencesAccountCredentialCacheTest.java+2-1
- common/src/androidTest/java/com/microsoft/identity/common/SharedPreferencesFileManagerTests.java+104-3
- common/src/androidTest/java/com/microsoft/identity/common/adal/internal/cache/StorageHelperTests.java+5-5
- common/src/androidTest/java/com/microsoft/identity/common/internal/platform/DevicePoPManagerEncryptionTests.java+6-1
- common/src/androidTest/java/com/microsoft/identity/common/internal/platform/DevicePoPManagerTests.java+28
- common/src/androidTest/java/com/microsoft/identity/common/internal/platform/KeyStoreAccessorTests.java+110
- common/src/androidTest/java/com/microsoft/identity/common/internal/platform/RawKeyAccessorTest.java+93
- common/src/main/java/com/microsoft/identity/common/adal/internal/AuthenticationConstants.java+6
- common/src/main/java/com/microsoft/identity/common/adal/internal/AuthenticationSettings.java+18-2
- common/src/main/java/com/microsoft/identity/common/adal/internal/cache/StorageHelper.java+1
- common/src/main/java/com/microsoft/identity/common/adal/internal/net/DefaultConnectionService.java+95-10
- common/src/main/java/com/microsoft/identity/common/exception/BaseException.java+14
- common/src/main/java/com/microsoft/identity/common/exception/ClientException.java+25
- common/src/main/java/com/microsoft/identity/common/exception/DeviceRegistrationRequiredException.java+6-14
- common/src/main/java/com/microsoft/identity/common/internal/broker/BrokerRequest.java+18-326
- common/src/main/java/com/microsoft/identity/common/internal/cache/ADALOAuth2TokenCache.java+10-1
- common/src/main/java/com/microsoft/identity/common/internal/cache/BrokerOAuth2TokenCache.java+8-9
- common/src/main/java/com/microsoft/identity/common/internal/cache/DefaultSharedPrefsFileManagerReencrypter.java+96
- common/src/main/java/com/microsoft/identity/common/internal/cache/HelloCache.java+1-1
- common/src/main/java/com/microsoft/identity/common/internal/cache/IAccountCredentialCache.java+24
- common/src/main/java/com/microsoft/identity/common/internal/cache/ISharedPreferencesFileManager.java+9
- common/src/main/java/com/microsoft/identity/common/internal/cache/ISharedPrefsFileManagerReencrypter.java+142
- common/src/main/java/com/microsoft/identity/common/internal/cache/MsalOAuth2TokenCache.java+31-45
- common/src/main/java/com/microsoft/identity/common/internal/cache/SharedPreferencesAccountCredentialCache.java+66-34
- common/src/main/java/com/microsoft/identity/common/internal/cache/SharedPreferencesFileManager.java+147-47
- common/src/main/java/com/microsoft/identity/common/internal/commands/parameters/BrokerInteractiveTokenCommandParameters.java+10-2
- common/src/main/java/com/microsoft/identity/common/internal/commands/parameters/IHasExtraParameters.java+51
- common/src/main/java/com/microsoft/identity/common/internal/commands/parameters/TokenCommandParameters.java+5
- common/src/main/java/com/microsoft/identity/common/internal/controllers/BaseController.java+9-1
- common/src/main/java/com/microsoft/identity/common/internal/controllers/CommandDispatcher.java+101-155
- common/src/main/java/com/microsoft/identity/common/internal/controllers/CommandResult.java+32-6
- common/src/main/java/com/microsoft/identity/common/internal/controllers/LocalMSALController.java+1-1
- common/src/main/java/com/microsoft/identity/common/internal/dto/PrimaryRefreshTokenRecord.java+3-3
- common/src/main/java/com/microsoft/identity/common/internal/eststelemetry/EstsTelemetry.java+4-2
- common/src/main/java/com/microsoft/identity/common/internal/logging/DiagnosticContext.java+11-5
- common/src/main/java/com/microsoft/identity/common/internal/logging/Logger.java+41-10
- common/src/main/java/com/microsoft/identity/common/internal/net/ObjectMapper.java+12-1
- common/src/main/java/com/microsoft/identity/common/internal/platform/Algorithm.java+33
- common/src/main/java/com/microsoft/identity/common/internal/platform/AndroidKeystoreAsymmetricRsaKey.java+40-17
- common/src/main/java/com/microsoft/identity/common/internal/platform/AsymmetricAlgorithm.java+47
- common/src/main/java/com/microsoft/identity/common/internal/platform/AsymmetricCipher.java+102
- common/src/main/java/com/microsoft/identity/common/internal/platform/AsymmetricKey.java+12-1
- common/src/main/java/com/microsoft/identity/common/internal/platform/AsymmetricKeyAccessor.java+52
- common/src/main/java/com/microsoft/identity/common/internal/platform/CryptoSuite.java+62
- common/src/main/java/com/microsoft/identity/common/internal/platform/DeviceKeyManager.java+272
- common/src/main/java/com/microsoft/identity/common/internal/platform/DevicePopManager.java+254-249
- common/src/main/java/com/microsoft/identity/common/internal/platform/IDevicePopManager.java+145-7
- common/src/main/java/com/microsoft/identity/common/internal/platform/IKeyManager.java+110
- common/src/main/java/com/microsoft/identity/common/internal/platform/Key.java+62
- common/src/main/java/com/microsoft/identity/common/internal/platform/KeyAccessor.java+77
- common/src/main/java/com/microsoft/identity/common/internal/platform/KeyStoreAccessor.java+307
- common/src/main/java/com/microsoft/identity/common/internal/platform/RawKeyAccessor.java+227
- common/src/main/java/com/microsoft/identity/common/internal/platform/SP800108KeyGen.java+119
- common/src/main/java/com/microsoft/identity/common/internal/platform/SecretKeyAccessor.java+195
- common/src/main/java/com/microsoft/identity/common/internal/platform/SymmetricAlgorithm.java+44
- common/src/main/java/com/microsoft/identity/common/internal/platform/SymmetricCipher.java+91
- common/src/main/java/com/microsoft/identity/common/internal/platform/SymmetricKey.java+31
- common/src/main/java/com/microsoft/identity/common/internal/providers/microsoft/MicrosoftTokenRequest.java+15-1
- common/src/main/java/com/microsoft/identity/common/internal/providers/microsoft/MicrosoftTokenResponse.java+44
- common/src/main/java/com/microsoft/identity/common/internal/providers/microsoft/microsoftsts/MicrosoftStsOAuth2Strategy.java+41
- common/src/main/java/com/microsoft/identity/common/internal/providers/oauth2/AuthorizationActivity.java+8-1
- common/src/main/java/com/microsoft/identity/common/internal/providers/oauth2/OAuth2Strategy.java+2-1
- common/src/main/java/com/microsoft/identity/common/internal/providers/oauth2/TokenRequest.java+1
- common/src/main/java/com/microsoft/identity/common/internal/providers/oauth2/TokenResponse.java+1
- common/src/main/java/com/microsoft/identity/common/internal/providers/oauth2/WebViewAuthorizationFragment.java+6-1
- common/src/main/java/com/microsoft/identity/common/internal/request/MsalBrokerRequestAdapter.java+28-25
- common/src/main/java/com/microsoft/identity/common/internal/telemetry/Properties.java+1-1
- common/src/main/java/com/microsoft/identity/common/internal/telemetry/TelemetryPropertiesCache.java+1-1
- common/src/main/java/com/microsoft/identity/common/internal/telemetry/events/BaseEvent.java+20
- common/src/main/java/com/microsoft/identity/common/internal/ui/browser/BrowserAuthorizationStrategy.java+9-4
- common/src/main/java/com/microsoft/identity/common/internal/ui/browser/CustomTabsManager.java+9-4
- common/src/main/java/com/microsoft/identity/common/internal/ui/webview/AzureActiveDirectoryWebViewClient.java+10-1
- common/src/main/java/com/microsoft/identity/common/internal/ui/webview/OAuth2WebViewClient.java+27-1
- common/src/main/java/com/microsoft/identity/common/internal/ui/webview/OnPageCommitVisibleCallback.java+27
- common/src/main/java/com/microsoft/identity/common/internal/util/ClockSkewManager.java+4-2
- common/src/main/java/com/microsoft/identity/common/internal/util/QueryParamsAdapter.java+4
- common/src/main/java/com/microsoft/identity/common/internal/util/StringUtil.java+17-1
- common/src/main/java/com/microsoft/identity/common/internal/util/Supplier.java+35
- common/src/main/java/com/microsoft/identity/common/internal/util/TriFunction.java+35
- common/versioning/version.properties+2-2
- gradle.properties+4-1
- gradle/verification-metadata.xml+7
- testutils/src/main/java/com/microsoft/identity/internal/testutils/CacheUtils.java+4-13
- testutils/src/main/java/com/microsoft/identity/internal/testutils/HttpRequestInterceptor.java+1-5
- testutils/src/main/java/com/microsoft/identity/internal/testutils/HttpRequestMatcher.java+202
- testutils/src/main/java/com/microsoft/identity/internal/testutils/MockHttpClient.java+144-106
- testutils/src/main/java/com/microsoft/identity/internal/testutils/TestUtils.java+11-185
- testutils/src/main/java/com/microsoft/identity/internal/testutils/labutils/ConfidentialClientHelper.java+3-2
- testutils/src/main/java/com/microsoft/identity/internal/testutils/mocks/MockServerResponse.java+77-51
- testutils/src/main/java/com/microsoft/identity/internal/testutils/mocks/MockTokenCreator.java+20-2
- testutils/src/main/java/com/microsoft/identity/internal/testutils/shadows/ShadowHttpClient.java+8-17
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
277 | | - | |
| 277 | + | |
278 | 278 | | |
279 | | - | |
| 279 | + | |
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
| |||
Lines changed: 86 additions & 45 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
109 | 132 | | |
110 | 133 | | |
111 | 134 | | |
| |||
114 | 137 | | |
115 | 138 | | |
116 | 139 | | |
117 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
118 | 144 | | |
119 | 145 | | |
120 | 146 | | |
| |||
130 | 156 | | |
131 | 157 | | |
132 | 158 | | |
133 | | - | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
134 | 163 | | |
135 | 164 | | |
136 | 165 | | |
| |||
145 | 174 | | |
146 | 175 | | |
147 | 176 | | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
159 | 191 | | |
160 | 192 | | |
161 | 193 | | |
| |||
164 | 196 | | |
165 | 197 | | |
166 | 198 | | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
178 | 213 | | |
179 | 214 | | |
180 | 215 | | |
| |||
183 | 218 | | |
184 | 219 | | |
185 | 220 | | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
196 | 234 | | |
197 | 235 | | |
198 | 236 | | |
| |||
201 | 239 | | |
202 | 240 | | |
203 | 241 | | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
215 | 256 | | |
216 | 257 | | |
217 | 258 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
| 268 | + | |
268 | 269 | | |
269 | 270 | | |
270 | 271 | | |
| |||
Lines changed: 30 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| 77 | + | |
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
| 83 | + | |
81 | 84 | | |
82 | 85 | | |
83 | 86 | | |
| |||
438 | 441 | | |
439 | 442 | | |
440 | 443 | | |
441 | | - | |
| 444 | + | |
442 | 445 | | |
443 | 446 | | |
444 | 447 | | |
| |||
465 | 468 | | |
466 | 469 | | |
467 | 470 | | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
468 | 492 | | |
469 | 493 | | |
470 | 494 | | |
| |||
474 | 498 | | |
475 | 499 | | |
476 | 500 | | |
477 | | - | |
478 | | - | |
| 501 | + | |
| 502 | + | |
479 | 503 | | |
480 | 504 | | |
481 | 505 | | |
| |||
529 | 553 | | |
530 | 554 | | |
531 | 555 | | |
532 | | - | |
| 556 | + | |
533 | 557 | | |
534 | 558 | | |
535 | 559 | | |
| |||
555 | 579 | | |
556 | 580 | | |
557 | 581 | | |
558 | | - | |
559 | | - | |
| 582 | + | |
| 583 | + | |
560 | 584 | | |
561 | 585 | | |
562 | 586 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
0 commit comments