Skip to content

Commit c6b7ec0

Browse files
authored
Merge branch 'dev' into fadi/mavenCentral
2 parents 372320a + 2a23b3b commit c6b7ec0

File tree

7 files changed

+63
-7
lines changed

7 files changed

+63
-7
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Notify on versions.gradle changes
2+
3+
on:
4+
push:
5+
paths:
6+
- 'gradle/versions.gradle'
7+
branches:
8+
- dev
9+
- 'release/**'
10+
pull_request:
11+
paths:
12+
- 'gradle/versions.gradle'
13+
branches:
14+
- dev
15+
- 'release/**'
16+
17+
permissions:
18+
pull-requests: write
19+
20+
jobs:
21+
notify:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Log changes
25+
run: |
26+
echo "Changes detected in the 'gradle/versions.gradle' file."
27+
28+
- name: Comment on PR
29+
if: github.event_name == 'pull_request'
30+
uses: mshick/add-pr-comment@v2
31+
with:
32+
message: "⚠️ **Warning:** Changes detected in the 'versions.gradle' file! ⚠️\n\nPlease refer to [this document](https://dev.azure.com/IdentityDivision/IdentityWiki/_wiki/wikis/IdentityWiki.wiki/82085/Adding-or-Updating-Gradle-Dependencies) for more details."

.github/workflows/validate-pr-ab-id.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,16 @@ jobs:
3333
# Extracts the AB ID from the pull_request body using regex and store the result using outputs
3434
- name: Get AB ID from comment
3535
id: get
36+
env:
37+
PR_BODY: ${{ github.event.pull_request.body }}
3638
run: |
37-
result=$(echo "${{ github.event.pull_request.body }}" | grep -oP '(?<=#)\d+')
38-
echo "id=${result}" >> "$GITHUB_OUTPUT"
39+
# Sanitize PR body by removing backticks to prevent command substitution
40+
clean=$(printf "%s" "$PR_BODY" | tr -d '`')
41+
42+
# Extract AB ID (AB#1234567) - takes first match if multiple exist
43+
result=$(printf "%s" "$clean" | grep -oP '(?<=AB#)\d+' | head -n 1)
44+
45+
echo "id=$result" >> "$GITHUB_OUTPUT"
3946

4047
# Get Pull request ID
4148
get_pr_id:

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,7 @@ Version 6.0.0
575575
- [PATCH] Added Base64 encode for the AuthorizationRequest state parameter (#1750)
576576
- [PATCH] Fix missing authority_url when creating the authority audience (#1753)
577577
- [PATCH] Add filter for broker telemetry event fields. (#1793)
578+
- [MINOR] Bug fix : Selecting text in login page is causing the input field to be hidden (#2826)
578579

579580
Version 5.0.1
580581
----------

common/src/main/res/values/styles.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@
6060
<!-- Theme for DualScreenActivity.
6161
Force set to a light theme (to status and navigation bars) since broker/common activities always have white background. -->
6262
<style name="DualScreenActivityTheme" parent="Theme.AppCompat.Light">
63-
<item name="android:background">@color/com_microsoft_identity_common_white</item>
63+
<item name="android:windowBackground">@color/com_microsoft_identity_common_white</item>
6464
</style>
6565
</resources>

common4j/src/main/com/microsoft/identity/common/java/cache/BrokerOAuth2TokenCache.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import com.microsoft.identity.common.java.interfaces.INameValueStorage;
3030
import com.microsoft.identity.common.java.interfaces.IPlatformComponents;
3131
import com.microsoft.identity.common.java.opentelemetry.AttributeName;
32+
import com.microsoft.identity.common.java.opentelemetry.OTelUtility;
3233
import com.microsoft.identity.common.java.opentelemetry.SpanExtension;
3334
import com.microsoft.identity.common.java.providers.oauth2.OAuth2Strategy;
3435
import com.microsoft.identity.common.java.providers.oauth2.OAuth2TokenCache;
@@ -278,6 +279,7 @@ public ICacheRecord save(@NonNull AccountRecord accountRecord,
278279
@Nullable RefreshTokenRecord refreshTokenRecord,
279280
@Nullable String familyId) throws ClientException {
280281
final String methodName = ":save (5 args)";
282+
final long saveStartTime = System.currentTimeMillis();
281283

282284
final ICacheRecord result;
283285

@@ -319,7 +321,7 @@ public ICacheRecord save(@NonNull AccountRecord accountRecord,
319321
familyId,
320322
mUid
321323
);
322-
324+
OTelUtility.recordElapsedTime(AttributeName.elapsed_time_save_aggregated_account_data.name(), saveStartTime);
323325
return result;
324326
}
325327

@@ -366,6 +368,7 @@ public synchronized List<ICacheRecord> saveAndLoadAggregatedAccountData(
366368
private List<ICacheRecord> loadAggregatedAccountData(final @NonNull AbstractAuthenticationScheme authScheme,
367369
final @NonNull ICacheRecord cacheRecord) {
368370
final String methodName = ":loadAggregatedAccountData";
371+
final long loadStartTime = System.currentTimeMillis();
369372

370373
final String clientId = cacheRecord.getAccessToken().getClientId();
371374
final String target = cacheRecord.getAccessToken().getTarget();
@@ -386,14 +389,17 @@ private List<ICacheRecord> loadAggregatedAccountData(final @NonNull AbstractAuth
386389
return null;
387390
}
388391

389-
return cache.loadWithAggregatedAccountData(
392+
List<ICacheRecord> cacheRecordList = cache.loadWithAggregatedAccountData(
390393
clientId,
391394
applicationIdentifier,
392395
mamEnrollmentIdentifier,
393396
target,
394397
cacheRecord.getAccount(),
395398
authScheme
396399
);
400+
OTelUtility.recordElapsedTime(AttributeName.elapsed_time_load_aggregated_account_data.name(),
401+
loadStartTime);
402+
return cacheRecordList;
397403
}
398404

399405
@Override

common4j/src/main/com/microsoft/identity/common/java/opentelemetry/AttributeName.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,5 +502,15 @@ public enum AttributeName {
502502
/**
503503
* Passkey DOM exception name (if any).
504504
*/
505-
passkey_dom_exception_name
505+
passkey_dom_exception_name,
506+
507+
/**
508+
* Elapsed time (in milliseconds) spent in executing the save() method in BrokerOAuth2TokenCache.
509+
*/
510+
elapsed_time_save_aggregated_account_data,
511+
512+
/**
513+
* Elapsed time (in milliseconds) spent in executing the loadAggregatedAccountData() method in BrokerOAuth2TokenCache.
514+
*/
515+
elapsed_time_load_aggregated_account_data
506516
}

gradle/versions.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Variables for entire project
1+
// Variables for entire project.
22
// Taken from android-complete.
33
ext {
44
// SDK

0 commit comments

Comments
 (0)