Skip to content

Commit 033ed2c

Browse files
melissaahnrpdomeiamgusain
authored
Melissaahn/release/5.3.0 to release/5.3.0 (#2074)
### Summary Cherrypicks: - #2069 - 03b851d --------- Co-authored-by: Dome Pongmongkol <[email protected]> Co-authored-by: amgusain <[email protected]>
1 parent 508a937 commit 033ed2c

File tree

9 files changed

+54
-9
lines changed

9 files changed

+54
-9
lines changed

changelog

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
MSAL Wiki : https://github.com/AzureAD/microsoft-authentication-library-for-android/wiki
22

3-
vNext
3+
Version 5.3.0
44
----------
55
- [MINOR] Give BrokerMsalController higher priority than LocalMsalController if available (#2040)
6+
- [PATCH] Update to [email protected]
7+
8+
Version 5.2.1
9+
----------
10+
- [MINOR] Update common @17.2.1
611

712
Version 5.2.0
813
----------

msal/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ task sourcesJar(type: Jar) {
188188

189189
// In dev, we want to keep the dependencies (common4j, common) to 1.0.+ to be able to be consumed by daily dev pipeline.
190190
// In release/*, we change these to specific versions being consumed.
191-
def commonVersion = "1.0.+"
191+
def commonVersion = "17.3.0"
192192
if (project.hasProperty("distCommonVersion")) {
193193
commonVersion = project.distCommonVersion
194194
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// All rights reserved.
3+
//
4+
// This code is licensed under the MIT License.
5+
//
6+
// Permission is hereby granted, free of charge, to any person obtaining a copy
7+
// of this software and associated documentation files(the "Software"), to deal
8+
// in the Software without restriction, including without limitation the rights
9+
// to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
10+
// copies of the Software, and to permit persons to whom the Software is
11+
// furnished to do so, subject to the following conditions :
12+
//
13+
// The above copyright notice and this permission notice shall be included in
14+
// all copies or substantial portions of the Software.
15+
//
16+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22+
// THE SOFTWARE.
23+
package com.microsoft.identity.client.e2e.shadows
24+
25+
import com.microsoft.identity.common.internal.activebrokerdiscovery.BrokerDiscoveryClient
26+
import com.microsoft.identity.common.internal.broker.BrokerData
27+
import org.robolectric.annotation.Implements
28+
29+
// A Shadow for mocking BrokerDiscoveryClient
30+
@Implements(BrokerDiscoveryClient::class)
31+
class ShadowBrokerDiscoveryClient {
32+
33+
fun getActiveBroker(shouldSkipCache: Boolean): BrokerData? {
34+
return BrokerData.debugBrokerHost
35+
}
36+
}

msal/src/test/java/com/microsoft/identity/client/e2e/tests/mocked/DeviceCodeFlowApiTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,8 @@ public void testDeviceCodeFlowTokenExpiredToken() throws IOException, ClientExce
221221

222222
// Previously authenticated code
223223
tokenRequest.setDeviceCode(
224-
"EAQABAAEAAAAmoFfGtYxvRrNriQdPKIZ-M9DUSILNMIg8XfEpzGyj4l_0HC37z4c7-VhDU8Piig2ap-tfGqcbtyEFR-" +
225-
"Xce4yZ28wEiAFrhVeLXd3JZuqS3xIizNZdzpaPqTFQqiHuztD4ZJPRPyNHIou3J6O6o2a_pJBFyD4egAcUbXwWtJLPg8dsB1UbGfacKZCPuGbtYB0gAA");
224+
"BAQABIQEAAADnfolhJpSnRYB1SVj-Hgd8CWNtqmssVukUXfdCHy1XJMxy2O7R0WZgTVcQVF4A3fjnWPQ1JPXf-"
225+
+ "SIl-NLuC9gGzGRgsLyUyknjbUReNC7vcHx8jigGiO2CkKi_Mc_YRU0E0lGH3EQZiJNwHxUc_YkTGG5DKl9sww36TdMPz-v7Bzy6cHzR6r3yQWULGNtidaogAA");
226226

227227
final TokenResult tokenResult = strategy.requestToken(tokenRequest);
228228
Assert.assertNull(tokenResult.getTokenResponse());

msal/src/test/java/com/microsoft/identity/client/internal/controllers/MSALControllerFactoryTest.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import android.content.Context
2626
import androidx.test.core.app.ApplicationProvider
2727
import com.microsoft.identity.client.PublicClientApplicationConfiguration
2828
import com.microsoft.identity.client.PublicClientApplicationConfigurationFactory
29+
import com.microsoft.identity.client.e2e.shadows.ShadowBrokerDiscoveryClient
2930
import com.microsoft.identity.client.e2e.shadows.ShadowLegacyBrokerDiscoveryClient
3031
import com.microsoft.identity.common.internal.controllers.BrokerMsalController
3132
import com.microsoft.identity.common.java.authorities.Authority
@@ -38,7 +39,9 @@ import org.robolectric.RobolectricTestRunner
3839
import org.robolectric.annotation.Config
3940

4041
@RunWith(RobolectricTestRunner::class)
41-
@Config(shadows = [ShadowLegacyBrokerDiscoveryClient::class] )
42+
@Config(shadows = [
43+
ShadowLegacyBrokerDiscoveryClient::class,
44+
ShadowBrokerDiscoveryClient::class] )
4245
class MSALControllerFactoryTest {
4346

4447
private lateinit var pcaConfiguration: PublicClientApplicationConfiguration

msal/versioning/version.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#Wed Aug 01 15:24:11 PDT 2018
2-
versionName=5.2.0
2+
versionName=5.3.0
33
versionCode=0

msalautomationapp/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apply plugin: 'com.android.application'
22
apply plugin: 'kotlin-android'
33

4-
def msalVersion = "5.0.0"
4+
def msalVersion = "5.+"
55

66
if (project.hasProperty("distMsalVersion")) {
77
msalVersion = distMsalVersion
@@ -191,6 +191,7 @@ dependencies {
191191
implementation(project(":LabApiUtilities"))
192192
implementation(project(":uiautomationutilities")) {
193193
exclude module: 'common'
194+
exclude module: 'common4j'
194195
exclude module: 'appcompat'
195196
}
196197
androidTestImplementation "androidx.test:runner:$rootProject.ext.androidxTestRunnerVersion"

testapps/testapp/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ apply plugin: 'kotlin-android'
2929

3030
apply plugin: 'kotlin-android-extensions'
3131

32-
def msalVersion = "5.2.0"
32+
def msalVersion = "5.+"
3333

3434
if (project.hasProperty("distMsalVersion")) {
3535
msalVersion = distMsalVersion

0 commit comments

Comments
 (0)