Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add legacy FIDO2 API version #1807

Merged
merged 6 commits into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion common
Submodule common updated 90 files
+154 −0 .github/workflows/validate-pr-ab-id.yml
+12 −13 LabApiUtilities/src/main/com/microsoft/identity/labapi/utilities/client/LabClient.java
+0 −2 azure-pipelines/pull-request-validation/build-consumers.yml
+0 −8 azure-pipelines/pull-request-validation/common.yml
+0 −2 azure-pipelines/pull-request-validation/common4j.yml
+15 −2 changelog.txt
+2 −0 common/build.gradle
+2 −2 common/src/main/java/com/microsoft/identity/common/adal/internal/AuthenticationConstants.java
+1 −0 .../microsoft/identity/common/internal/broker/ipc/AccountManagerBackupIpcStrategyTargetingSpecificBrokerApp.kt
+5 −2 common/src/main/java/com/microsoft/identity/common/internal/broker/ipc/IpcStrategyWithBackup.kt
+39 −10 common/src/main/java/com/microsoft/identity/common/internal/controllers/BrokerMsalController.java
+7 −2 common/src/main/java/com/microsoft/identity/common/internal/fido/AuthFidoChallengeHandler.kt
+50 −9 common/src/main/java/com/microsoft/identity/common/internal/fido/CredManFidoManager.kt
+5 −1 common/src/main/java/com/microsoft/identity/common/internal/fido/IFidoManager.kt
+50 −0 common/src/main/java/com/microsoft/identity/common/internal/fido/LegacyFido2ApiException.java
+109 −0 common/src/main/java/com/microsoft/identity/common/internal/fido/LegacyFido2ApiManager.kt
+36 −0 common/src/main/java/com/microsoft/identity/common/internal/fido/LegacyFido2ApiObject.kt
+151 −0 common/src/main/java/com/microsoft/identity/common/internal/fido/LegacyFidoActivityResultContract.java
+23 −0 common/src/main/java/com/microsoft/identity/common/internal/fido/WebAuthnJsonUtil.kt
+3 −0 common/src/main/java/com/microsoft/identity/common/internal/providers/oauth2/AuthorizationActivity.java
+20 −0 common/src/main/java/com/microsoft/identity/common/internal/providers/oauth2/WebViewAuthorizationFragment.java
+150 −10 common/src/main/java/com/microsoft/identity/common/internal/result/MsalBrokerResultAdapter.java
+5 −1 common/src/main/java/com/microsoft/identity/common/internal/ui/webview/AzureActiveDirectoryWebViewClient.java
+72 −0 common/src/main/java/com/microsoft/identity/common/nativeauth/internal/commands/GetAuthMethodsCommand.kt
+71 −0 common/src/main/java/com/microsoft/identity/common/nativeauth/internal/commands/MFAChallengeCommand.kt
+72 −0 common/src/main/java/com/microsoft/identity/common/nativeauth/internal/commands/MFASubmitChallengeCommand.kt
+334 −11 common/src/main/java/com/microsoft/identity/common/nativeauth/internal/controllers/NativeAuthMsalController.kt
+51 −0 common/src/main/java/com/microsoft/identity/common/nativeauth/internal/util/CommandUtil.java
+90 −0 common/src/test/java/com/microsoft/identity/common/internal/fido/LegacyFidoActivityResultContractTest.kt
+4 −1 common/src/test/java/com/microsoft/identity/common/internal/fido/TestFidoManager.kt
+14 −0 common/src/test/java/com/microsoft/identity/common/internal/fido/WebAuthnJsonUtilTest.kt
+4 −4 ...om/microsoft/identity/common/internal/providers/microsoft/nativeauth/integration/SignInOAuthStrategyTest.kt
+200 −0 common/src/test/java/com/microsoft/identity/common/internal/request/MsalBrokerResultAdapterTests.kt
+274 −4 common/src/test/java/com/microsoft/identity/common/nativeauth/internal/controllers/NativeAuthControllerTest.kt
+7 −0 common4j/src/main/com/microsoft/identity/common/java/AuthenticationConstants.java
+54 −11 common4j/src/main/com/microsoft/identity/common/java/controllers/ExceptionAdapter.java
+4 −0 common4j/src/main/com/microsoft/identity/common/java/eststelemetry/PublicApiId.java
+5 −0 common4j/src/main/com/microsoft/identity/common/java/exception/ClientException.java
+11 −0 common4j/src/main/com/microsoft/identity/common/java/exception/ErrorStrings.java
+40 −0 common4j/src/main/com/microsoft/identity/common/java/exception/InsufficientDeviceRegistrationException.java
+40 −0 common4j/src/main/com/microsoft/identity/common/java/exception/StrongDeviceRegistrationRequiredException.java
+11 −1 common4j/src/main/com/microsoft/identity/common/java/flighting/CommonFlight.java
+1 −1 common4j/src/main/com/microsoft/identity/common/java/jwt/AbstractJwtRequest.java
+3 −0 common4j/src/main/com/microsoft/identity/common/java/jwt/JwtRequestBody.java
+64 −0 ...main/com/microsoft/identity/common/java/nativeauth/commands/parameters/GetAuthMethodsCommandParameters.java
+64 −0 ...com/microsoft/identity/common/java/nativeauth/commands/parameters/MFADefaultChallengeCommandParameters.java
+64 −0 ...osoft/identity/common/java/nativeauth/commands/parameters/MFASelectedDefaultChallengeCommandParameters.java
+68 −0 .../com/microsoft/identity/common/java/nativeauth/commands/parameters/MFASubmitChallengeCommandParameters.java
+3 −2 ...on4j/src/main/com/microsoft/identity/common/java/nativeauth/controllers/results/INativeAuthCommandResult.kt
+58 −0 common4j/src/main/com/microsoft/identity/common/java/nativeauth/controllers/results/MFACommandResult.kt
+16 −3 common4j/src/main/com/microsoft/identity/common/java/nativeauth/controllers/results/SignInCommandResult.kt
+2 −2 common4j/src/main/com/microsoft/identity/common/java/nativeauth/providers/NativeAuthOAuth2Strategy.kt
+1 −1 common4j/src/main/com/microsoft/identity/common/java/nativeauth/providers/NativeAuthRequestProvider.kt
+0 −1 common4j/src/main/com/microsoft/identity/common/java/nativeauth/providers/NativeAuthResponseHandler.kt
+6 −6 common4j/src/main/com/microsoft/identity/common/java/nativeauth/providers/interactors/SignInInteractor.kt
+1 −1 ...n/com/microsoft/identity/common/java/nativeauth/providers/responses/signin/AuthenticationMethodApiResult.kt
+4 −0 ...main/com/microsoft/identity/common/java/nativeauth/providers/responses/signin/SignInChallengeApiResponse.kt
+11 −1 ...c/main/com/microsoft/identity/common/java/nativeauth/providers/responses/signin/SignInChallengeApiResult.kt
+9 −1 ...src/main/com/microsoft/identity/common/java/nativeauth/providers/responses/signin/SignInTokenApiResponse.kt
+2 −1 ...j/src/main/com/microsoft/identity/common/java/nativeauth/providers/responses/signin/SignInTokenApiResult.kt
+4 −0 common4j/src/main/com/microsoft/identity/common/java/nativeauth/util/ListUtils.kt
+16 −0 common4j/src/main/com/microsoft/identity/common/java/net/HttpResponse.java
+37 −5 common4j/src/main/com/microsoft/identity/common/java/net/UrlConnectionHttpClient.java
+11 −1 common4j/src/main/com/microsoft/identity/common/java/opentelemetry/AttributeName.java
+3 −1 common4j/src/main/com/microsoft/identity/common/java/opentelemetry/SpanName.java
+23 −10 common4j/src/main/com/microsoft/identity/common/java/providers/RawAuthorizationResult.java
+7 −0 ...4j/src/main/com/microsoft/identity/common/java/providers/microsoft/MicrosoftAuthorizationErrorResponse.java
+2 −1 ...crosoft/identity/common/java/providers/microsoft/microsoftsts/AbstractMicrosoftStsTokenResponseHandler.java
+1 −9 ...rc/main/com/microsoft/identity/common/java/providers/microsoft/microsoftsts/MicrosoftStsOAuth2Strategy.java
+5 −0 common4j/src/main/com/microsoft/identity/common/java/providers/oauth2/AuthorizationErrorResponse.java
+19 −4 common4j/src/main/com/microsoft/identity/common/java/providers/oauth2/AuthorizationResultFactory.java
+8 −24 common4j/src/main/com/microsoft/identity/common/java/providers/oauth2/ITokenResponseHandler.java
+16 −1 common4j/src/main/com/microsoft/identity/common/java/providers/oauth2/OAuth2Strategy.java
+3 −3 common4j/src/test/com/microsoft/identity/common/java/nativeauth/providers/NativeAuthRequestProviderTest.kt
+2 −1 common4j/src/test/com/microsoft/identity/common/java/nativeauth/providers/NativeAuthResponseHandlerTest.kt
+11 −0 common4j/src/test/com/microsoft/identity/common/java/net/HttpResponseTests.java
+60 −0 ...est/com/microsoft/identity/common/java/providers/microsoft/microsoftsts/MicrosoftStsOAuth2StrategyTest.java
+32 −1 common4j/src/test/com/microsoft/identity/common/java/providers/oauth2/OAuth2StrategyTest.java
+1 −1 common4j/src/testFixtures/java/com/microsoft/identity/common/nativeauth/MockApiEndpoint.kt
+1 −1 common4j/versioning/version.properties
+1 −0 gradle/versions.gradle
+232 −0 testutils/src/main/java/com/microsoft/identity/internal/testutils/MockRecords.kt
+1 −1 testutils/src/main/java/com/microsoft/identity/internal/testutils/mocks/MockTokenCreator.java
+2 −0 testutils/src/main/java/com/microsoft/identity/internal/testutils/nativeauth/ConfigType.kt
+105 −0 uiautomationutilities/src/main/java/com/microsoft/identity/client/ui/automation/app/OneDriveApp.java
+24 −0 uiautomationutilities/src/main/java/com/microsoft/identity/client/ui/automation/app/OutlookApp.java
+13 −0 uiautomationutilities/src/main/java/com/microsoft/identity/client/ui/automation/app/WordApp.java
+2 −0 uiautomationutilities/src/main/java/com/microsoft/identity/client/ui/automation/rules/CopyFileRule.java
+2 −0 ...utilities/src/main/java/com/microsoft/identity/client/ui/automation/rules/RemoveFirstPartyAppsTestRule.java
+1 −1 versioning/version.properties
1 change: 1 addition & 0 deletions gradle/versions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ ext {
jetpackDataStoreVersion = "1.0.0"
lifecycleKtxVersion="2.5.1"
AndroidCredentialsVersion="1.2.2"
LegacyFidoApiVersion="20.1.0"

// microsoft-diagnostics-uploader app versions
powerliftVersion = "0.14.7"
Expand Down
Loading