Skip to content
1 change: 1 addition & 0 deletions changelog
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ MSAL Wiki : https://github.com/AzureAD/microsoft-authentication-library-for-andr

vNext
----------
- [MAJOR] Native Auth V2 errors now use NativeAuthErrorV2. Replace operation-specific V2 error type checks with its classifiers; rejected sign-in passwords use isInvalidCredentials, not isInvalidPassword. V1 is unchanged (AB#3784695).

Version 8.5.0
----------
Expand Down
2 changes: 1 addition & 1 deletion common
Submodule common updated 53 files
+17 −3 .github/copilot-instructions.md
+1 −1 .github/skills/code-review/SKILL.md
+331 −38 .github/skills/code-review/references/concurrency-threading.md
+8 −0 .github/skills/code-review/references/false-positive-suppression.md
+2 −0 changelog.txt
+2 −0 common/consumer-rules.pro
+15 −10 common/src/main/java/com/microsoft/identity/common/adal/internal/AuthenticationConstants.java
+100 −7 common/src/main/java/com/microsoft/identity/common/internal/apps/AppRegistry.kt
+163 −65 common/src/main/java/com/microsoft/identity/common/internal/providers/oauth2/WebViewAuthorizationFragment.java
+137 −49 common/src/main/java/com/microsoft/identity/common/internal/ui/webview/AzureActiveDirectoryWebViewClient.java
+86 −0 common/src/main/java/com/microsoft/identity/common/internal/ui/webview/BrokerWebViewExternalBrowserRedirect.kt
+113 −3 ...rc/main/java/com/microsoft/identity/common/nativeauth/internal/controllers/v2/NativeAuthV2FlowController.kt
+103 −1 common/src/main/java/com/microsoft/identity/deviceregistration/api/DeviceRegistrationClientApplication.kt
+217 −8 common/src/test/java/com/microsoft/identity/common/internal/apps/AppRegistryTest.kt
+874 −68 ...va/com/microsoft/identity/common/internal/providers/oauth2/WebViewAuthorizationFragmentMultiWindowTest.java
+397 −7 .../src/test/java/com/microsoft/identity/common/internal/ui/webview/AzureActiveDirectoryWebViewClientTest.java
+11 −0 common/src/test/java/com/microsoft/identity/common/internal/ui/webview/DeviceCaRequestRouterTest.kt
+81 −12 ...va/com/microsoft/identity/common/nativeauth/internal/controllers/v2/NativeAuthV2SignUpFlowControllerTest.kt
+302 −1 common/src/test/java/com/microsoft/identity/deviceregistration/api/DeviceRegistrationClientApplicationTest.kt
+0 −25 ...n4j/src/main/com/microsoft/identity/common/java/commands/parameters/BrokerSilentTokenCommandParameters.java
+25 −8 common4j/src/main/com/microsoft/identity/common/java/flighting/CommonFlight.java
+16 −5 ...on4j/src/main/com/microsoft/identity/common/java/nativeauth/controllers/results/INativeAuthCommandResult.kt
+25 −7 ...n4j/src/main/com/microsoft/identity/common/java/nativeauth/controllers/results/NativeAuthV2CommandResult.kt
+9 −2 common4j/src/main/com/microsoft/identity/common/java/nativeauth/providers/responses/ApiErrorResult.kt
+56 −15 ...src/main/com/microsoft/identity/common/java/nativeauth/providers/responses/signin/SignInTokenApiResponse.kt
+36 −11 ...j/src/main/com/microsoft/identity/common/java/nativeauth/providers/responses/signin/SignInTokenApiResult.kt
+11 −4 ...rc/main/com/microsoft/identity/common/java/nativeauth/providers/responses/v2/AuthorizeChallengeApiResult.kt
+13 −3 ...src/main/com/microsoft/identity/common/java/nativeauth/providers/responses/v2/NativeAuthV2HalApiResponse.kt
+39 −16 ...in/com/microsoft/identity/common/java/nativeauth/providers/responses/v2/NativeAuthV2InteractionApiResult.kt
+53 −27 ...src/main/com/microsoft/identity/common/java/nativeauth/providers/responses/v2/NativeAuthV2ResponseParser.kt
+32 −0 common4j/src/main/com/microsoft/identity/common/java/nativeauth/providers/v2/NativeAuthV2ErrorDiagnostics.kt
+28 −5 common4j/src/main/com/microsoft/identity/common/java/nativeauth/providers/v2/NativeAuthV2ResponseHandler.kt
+19 −1 common4j/src/main/com/microsoft/identity/common/java/opentelemetry/AttributeName.java
+36 −0 common4j/src/main/com/microsoft/identity/common/java/opentelemetry/SpanExtension.java
+3 −3 common4j/src/main/com/microsoft/identity/common/java/util/IPlatformUtil.java
+37 −0 ...j/src/main/com/microsoft/identity/deviceregistration/java/api/DeviceAndResourceAccountRegistrationResult.kt
+3 −0 ...j/src/main/com/microsoft/identity/deviceregistration/java/protocol/DeviceRegistrationProtocolConstants.java
+94 −0 ...ain/com/microsoft/identity/deviceregistration/java/protocol/parameters/PreprovisioningBlobV1Parameters.java
+120 −0 ...ration/java/protocol/parameters/RegisterDeviceAndResourceAccountWithPreauthorizedChallengeV0Parameters.java
+78 −0 ...rc/main/com/microsoft/identity/deviceregistration/java/protocol/response/PreprovisioningBlobV1Response.java
+88 −0 ...gistration/java/protocol/response/RegisterDeviceAndResourceAccountWithPreauthorizedChallengeV0Response.java
+37 −83 ...src/test/com/microsoft/identity/common/java/commands/parameters/BrokerSilentTokenCommandParametersTest.java
+40 −0 common4j/src/test/com/microsoft/identity/common/java/flighting/CommonFlightsManagerTest.java
+103 −2 ...test/com/microsoft/identity/common/java/nativeauth/providers/responses/v2/NativeAuthV2ResponseParserTest.kt
+32 −0 ...om/microsoft/identity/common/java/nativeauth/providers/responses/v2/NativeAuthV2SignUpResponseParserTest.kt
+122 −0 ...on4j/src/test/com/microsoft/identity/common/java/nativeauth/providers/v2/NativeAuthV2ResponseHandlerTest.kt
+73 −0 common4j/src/test/com/microsoft/identity/common/java/opentelemetry/SpanExtensionTest.kt
+59 −0 ...c/test/com/microsoft/identity/deviceregistration/java/api/DeviceAndResourceAccountRegistrationResultTest.kt
+242 −0 common4j/src/test/com/microsoft/identity/deviceregistration/java/packer/DeviceRegistrationV1ProtocolTest.kt
+312 −0 docs/premortem/ENABLE_BROKER_WEBVIEW_EXTERNAL_BROWSER_REDIRECT-Dashboard.md
+168 −0 docs/premortem/ENABLE_BROKER_WEBVIEW_EXTERNAL_BROWSER_REDIRECT-Premortem.md
+325 −0 docs/premortem/ENABLE_NATIVE_DEVICE_CA_MANAGEMENT_APP_HANDOFF-Dashboard.md
+155 −0 docs/premortem/ENABLE_NATIVE_DEVICE_CA_MANAGEMENT_APP_HANDOFF-Premortem.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,9 @@ interface INativeAuthPublicClientApplication : IPublicClientApplication {
*
* @param parameters parameters used for the signUp operation.
* @return [NativeAuthResultV2] see the detailed possible return states under the object.
* @throws MsalClientException if an account is already signed in.
* Returns a [com.microsoft.identity.nativeauth.statemachine.errors.NativeAuthErrorV2] with
* [com.microsoft.identity.nativeauth.statemachine.errors.ErrorTypes.CLIENT_EXCEPTION] if an
* account is already signed in, rather than throwing [MsalClientException].
*/
suspend fun signUpV2(parameters: NativeAuthSignUpParameters): NativeAuthResultV2

Expand All @@ -234,7 +236,10 @@ interface INativeAuthPublicClientApplication : IPublicClientApplication {
*
* @param parameters parameters used for the signUp operation.
* @param callback [com.microsoft.identity.nativeauth.NativeAuthPublicClientApplication.NativeAuthV2Callback] to receive the result.
* @throws MsalClientException if an account is already signed in.
* If an account is already signed in, the callback receives a
* [com.microsoft.identity.nativeauth.statemachine.errors.NativeAuthErrorV2] with
* [com.microsoft.identity.nativeauth.statemachine.errors.ErrorTypes.CLIENT_EXCEPTION] through
* [com.microsoft.identity.nativeauth.statemachine.states.Callback.onResult].
*/
fun signUpV2(parameters: NativeAuthSignUpParameters, callback: NativeAuthPublicClientApplication.NativeAuthV2Callback)

Expand All @@ -245,7 +250,7 @@ interface INativeAuthPublicClientApplication : IPublicClientApplication {
*
* @param parameters parameters used for the resetPassword operation.
* @return [NativeAuthResultV2] see the detailed possible return states under the object.
* Returns a [com.microsoft.identity.nativeauth.statemachine.errors.ResetPasswordErrorV2] with
* Returns a [com.microsoft.identity.nativeauth.statemachine.errors.NativeAuthErrorV2] with
* [com.microsoft.identity.nativeauth.statemachine.errors.ErrorTypes.CLIENT_EXCEPTION] if an
* account is already signed in.
*/
Expand All @@ -259,7 +264,7 @@ interface INativeAuthPublicClientApplication : IPublicClientApplication {
* @param parameters parameters used for the resetPassword operation.
* @param callback [com.microsoft.identity.nativeauth.NativeAuthPublicClientApplication.NativeAuthV2Callback] to receive the result.
* If an account is already signed in, the callback receives a
* [com.microsoft.identity.nativeauth.statemachine.errors.ResetPasswordErrorV2] with
* [com.microsoft.identity.nativeauth.statemachine.errors.NativeAuthErrorV2] with
* [com.microsoft.identity.nativeauth.statemachine.errors.ErrorTypes.CLIENT_EXCEPTION].
*/
fun resetPasswordV2(parameters: NativeAuthResetPasswordParameters, callback: NativeAuthPublicClientApplication.NativeAuthV2Callback)
Expand Down

Large diffs are not rendered by default.

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading