Skip to content

Commit

Permalink
Changes for Jan 2024 release (#1994)
Browse files Browse the repository at this point in the history
Changes for Jan 2024 release

---------

Co-authored-by: Sowmya Malayanur <69237821+somalaya@users.noreply.github.com>
  • Loading branch information
iamgusain and somalaya committed Jan 8, 2024
1 parent bf8a944 commit 70efb25
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 15 deletions.
4 changes: 3 additions & 1 deletion changelog
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
MSAL Wiki : https://github.com/AzureAD/microsoft-authentication-library-for-android/wiki
vNext

Version 5.0.0
----------
- [MINOR] Update common @17.0.0
- [MINOR] Add consumer rule to remove native auth from msal by default (#1986)
- [MAJOR] Consuming Credential Manager from common (brings minCompileSdk 34) (#1987)

Expand Down
2 changes: 1 addition & 1 deletion common
Submodule common updated 18 files
+6 −2 changelog.txt
+1 −1 common/build.gradle
+2 −2 common/src/main/java/com/microsoft/identity/common/internal/fido/AuthFidoChallengeHandler.kt
+10 −2 common/src/main/java/com/microsoft/identity/common/internal/platform/AndroidPlatformUtil.java
+2 −0 ...soft/identity/common/internal/providers/microsoft/nativeauth/integration/ResetPasswordOAuth2StrategyTest.kt
+2 −0 ...om/microsoft/identity/common/internal/providers/microsoft/nativeauth/integration/SignInOAuthStrategyTest.kt
+2 −0 ...m/microsoft/identity/common/internal/providers/microsoft/nativeauth/integration/SignUpOAuth2StrategyTest.kt
+2 −0 ...t/identity/common/internal/providers/microsoft/nativeauth/integration/scenario/ResetPasswordScenarioTest.kt
+2 −0 ...icrosoft/identity/common/internal/providers/microsoft/nativeauth/integration/scenario/SignUpScenarioTest.kt
+2 −0 common/src/test/java/com/microsoft/identity/common/nativeauth/internal/controllers/NativeAuthControllerTest.kt
+6 −1 common4j/src/main/com/microsoft/identity/common/java/flighting/CommonFlight.java
+5 −0 common4j/src/main/com/microsoft/identity/common/java/net/HttpConstants.java
+6 −0 common4j/src/main/com/microsoft/identity/common/java/net/UrlConnectionHttpClient.java
+5 −4 common4j/src/main/com/microsoft/identity/common/java/opentelemetry/AttributeName.java
+25 −11 ...rc/main/com/microsoft/identity/common/java/providers/microsoft/microsoftsts/MicrosoftStsOAuth2Strategy.java
+2 −0 common4j/src/test/com/microsoft/identity/common/java/nativeauth/providers/NativeAuthRequestHandlerTest.kt
+1 −1 common4j/versioning/version.properties
+1 −1 versioning/version.properties
4 changes: 2 additions & 2 deletions msal/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ task sourcesJar(type: Jar) {

// In dev, we want to keep the dependencies (common4j, common) to 1.0.+ to be able to be consumed by daily dev pipeline.
// In release/*, we change these to specific versions being consumed.
String commonVersion = project.hasProperty("distCommonVersion") ? project.distCommonVersion : "1.0.+"
String commonVersion = project.hasProperty("distCommonVersion") ? project.distCommonVersion : "17.0.0"

dependencies {
//Please leave this in... desugaring is currently disabled by default; however it's required for running some tests
Expand Down Expand Up @@ -256,7 +256,7 @@ dependencies {
}

testLocalImplementation(testFixtures(project(":common4j")))
String common4jVersion = project.hasProperty("distCommon4jVersion") ? project.distCommon4jVersion : "1.0.+"
String common4jVersion = project.hasProperty("distCommon4jVersion") ? project.distCommon4jVersion : "14.0.0"
testDistImplementation(testFixtures("com.microsoft.identity:common4j:${common4jVersion}"))

implementation platform("io.opentelemetry:opentelemetry-bom:$rootProject.ext.openTelemetryVersion")
Expand Down
2 changes: 1 addition & 1 deletion msal/versioning/version.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#Wed Aug 01 15:24:11 PDT 2018
versionName=4.10.0
versionName=5.0.0
versionCode=0
2 changes: 1 addition & 1 deletion msalautomationapp/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'

def msalVersion = "4.+"
def msalVersion = "5.+"

if (project.hasProperty("distMsalVersion")) {
msalVersion = distMsalVersion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,7 @@ public void decodeSSOTokenAndVerifyNonce(@NonNull final String ssoToken,
.append('\n');
}
final String decodedToken = sb.toString();
if (decodedToken.contains("request_nonce")) {
final String[] str = decodedToken.split("request_nonce => ");
if (str.length > 1) {
Assert.assertEquals(str[1].trim(), nonce);
} else {
Assert.fail("decoded token does not contain correct nonce");
}
} else {
if (!decodedToken.contains(nonce)) {
Assert.fail("decoded token does not contain correct nonce");
}
}
Expand Down
2 changes: 1 addition & 1 deletion testapps/testapp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

apply plugin: 'com.android.application'

def msalVersion = "4.+"
def msalVersion = "5.+"

if (project.hasProperty("distMsalVersion")) {
msalVersion = distMsalVersion
Expand Down

0 comments on commit 70efb25

Please sign in to comment.