Skip to content

Commit e936e9e

Browse files
committed
Merge branch 'dev' into mchand/resource-account-api
2 parents 1ff8a90 + 6bc9599 commit e936e9e

49 files changed

Lines changed: 1848 additions & 532 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
* @AzureAD/androididentity
99

10+
# Shared Ownership
11+
#---------------------
12+
changelog.txt @AzureAD/androididentity @AzureAD/NativeAuthTeam
1013

1114
# Area Owners
1215
#---------------------

azure-pipelines/pull-request-validation/common.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Variable: 'MOCK_API_URL' was defined in the Variables tab
33
# Description: Assemble and run unit test
44
name: $(date:yyyyMMdd)$(rev:.r)
5-
5+
trigger: none
66
variables:
77
- group: devex-ciam-test
88

azure-pipelines/pull-request-validation/common4j.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Variable: 'MOCK_API_URL' was defined in the Variables tab
44
# Uses Java 11
55
name: $(date:yyyyMMdd)$(rev:.r)
6-
6+
trigger: none
77
variables:
88
- group: devex-ciam-test
99

changelog.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
vNext
22
----------
3-
- [MINOR] Enable the new Broker discovery on MSAL by default (#2618)
3+
- [PATCH] Allow generating wrapping key without PURPOSE_WRAP_KEY with Flight (#2633))
4+
- [MINOR] Adding a state parameter to prevent phish attacks, in “switch_browser” flow. (#2631)
5+
- [MINOR] Move camera logic to CameraPermissionRequestHandler and add SdmQrPinManager (#2630)
6+
- [MINOR] Pass Work Profile existence, OS Version, and Manufacturer to ESTS (#2627)
7+
- [MINOR] Add telemetry for the switch browser protocol (#2612)
8+
9+
Version 21.0.0
10+
----------
411
- [PATCH] Improve logs and error reporting SIWG flow (#2616)
512
- [PATCH] Only show QR +PIN rationale when the request origin is from Microsoft (#2613)
613
- [MINOR] Add an extra index for MSAL CPP core in the extra client sku header (#2610)
@@ -9,6 +16,7 @@ vNext
916
- [PATCH] Track MAM flow in telemetry (#2608)
1017
- [PATCH] Fix multiple prompts issue in cross cloud request (#2599)
1118
- [PATCH] Corrected error handling in cross cloud scenario (#2602)
19+
- [MINOR] Native auth: Add claimsRequest also to getAccessToken and signIn after signUp/SSPR flows (#2622)
1220

1321
Version 20.1.1
1422
----------

common/src/androidTest/java/com/microsoft/identity/common/internal/platform/AndroidDevicePoPManagerEncryptionTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
// https://github.com/robolectric/robolectric/issues/1518
5353
//todo: Investigate if these tests can be migrated to common4j
5454
@RunWith(Parameterized.class)
55-
@Config(sdk =21)
5655
public class AndroidDevicePoPManagerEncryptionTests {
5756

5857
private static final String DATA_TO_ENCRYPT = "The quick brown fox jumped over the lazy dog.";

common/src/main/java/com/microsoft/identity/common/adal/internal/AuthenticationConstants.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,10 @@ public static final class SWITCH_BROWSER {
560560
*/
561561
public static final String ACTION_URI = "action_uri";
562562

563+
/**
564+
* String Query parameter key for the state blob.
565+
*/
566+
public static final String STATE = "state";
563567
}
564568

565569
/**
@@ -1161,6 +1165,18 @@ public static String computeMaxHostBrokerProtocol() {
11611165
*/
11621166
public static final String LTW_APP_SHA512_DEBUG_SIGNATURE = "5PAhhZNSRRvq7vpTT5vrYJbSLh05AU8USf7oUTS239PEltebX87uGN7GhAe5244lJepwZ5RU4vu8N6ospXVOlg==";
11631167

1168+
/**
1169+
* Signing certificate thumbprint of the DEBUG-signed Microsoft Intune app.
1170+
* Generated with SHA-512.
1171+
*/
1172+
public static final String INTUNE_APP_SHA512_DEBUG_SIGNATURE = "F+Tat7A/mlOJCzRYEmj9DgLRHU2Nb0VSQjgZEyAehqW9+cOT0oYjkT/fa33hYcVMwUzaSy0hUOVt9KQtyFRnVQ==";
1173+
1174+
/**
1175+
* Signing certificate thumbprint of the RELEASE-signed Microsoft Intune app.
1176+
* Generated with SHA-512.
1177+
*/
1178+
public static final String INTUNE_APP_SHA512_RELEASE_SIGNATURE = "jPpMoaNvcxSLMX4yG4C3Gf86rtTqh33SqpuRKg4WOP+MnnpA52zZgvKLW76U4Cqqf68iaBk9W7k/jhciiSAtgQ==";
1179+
11641180
/**
11651181
* Teams IP Phones (Sakurai devices) is supported by Intune, but does not have a back button nor browser.
11661182
* The only supported detection of this phone is the application install state.

common/src/main/java/com/microsoft/identity/common/components/AndroidPlatformComponentsFactory.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@
3636
import com.microsoft.identity.common.internal.providers.oauth2.AndroidTaskStateGenerator;
3737
import com.microsoft.identity.common.internal.ui.AndroidAuthorizationStrategyFactory;
3838
import com.microsoft.identity.common.internal.ui.browser.AndroidBrowserSelector;
39+
import com.microsoft.identity.common.internal.util.WorkProfileUtil;
3940
import com.microsoft.identity.common.java.WarningType;
41+
import com.microsoft.identity.common.java.flighting.CommonFlight;
42+
import com.microsoft.identity.common.java.flighting.CommonFlightsManager;
4043
import com.microsoft.identity.common.java.interfaces.IPlatformComponents;
4144
import com.microsoft.identity.common.java.interfaces.PlatformComponents;
4245
import com.microsoft.identity.common.java.net.DefaultHttpClientWrapper;
@@ -67,6 +70,12 @@ public static synchronized void initializeGlobalStates(@NonNull final Context co
6770
if (!sGlobalStateInitalized) {
6871
HttpCache.initialize(context);
6972
Device.setDeviceMetadata(new AndroidDeviceMetadata());
73+
74+
// Denotes whether or not request is from personal profile but device has a Work Profile Available
75+
if (CommonFlightsManager.INSTANCE.getFlightsProvider().isFlightEnabled(CommonFlight.ENABLE_AM_API_WORKPROFILE_EXTRA_QUERY_PARAMETERS)) {
76+
Device.setIsInPersonalProfileButClouddpcWorkProfileAvailable(
77+
WorkProfileUtil.checkIfIsInPersonalProfileButClouddpcWorkProfileAvailable(context));
78+
}
7079
Logger.setAndroidLogger();
7180

7281
final File cacheDir = context.getCacheDir();

0 commit comments

Comments
 (0)