Skip to content

Commit 161f22f

Browse files
author
prsaminathan
committed
Add broker timestamps to authentication response, improving request tracking.
Updates: - Addressed comments from earlier commit. - Moved the new constants from adal directory to common directory AuthenticationConstants.java - Updated changelog.txt
1 parent 7786214 commit 161f22f

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ vNext
66
- [MINOR] Share SharedPreferencesInMemoryCache across instances of BrokerOAuth2TokenCache
77
- [MINOR] Use SharedPreferencesInMemoryCache implementation in Broker (#2802)
88
- [MINOR] Fix for SDL violation in device pop scenarios, Fixes AB#3284510 (#2744)
9+
- [MINOR] Adds Authentication Constants to be used for broker latency timestamp in response (#2831)
910

1011
Version 23.1.0
1112
----------

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1563,16 +1563,6 @@ public static String computeMaxHostBrokerProtocol() {
15631563
*/
15641564
public static final String BROKER_APP_LINK_REDIRECT_URL_PATH_PREFIX = "androidbroker";
15651565

1566-
/**
1567-
* Timestamp when the broker received the authentication request.
1568-
*/
1569-
public static final String BROKER_REQUEST_RECEIVED_TIMESTAMP = "broker_request_received_timestamp";
1570-
1571-
/**
1572-
* Timestamp when the broker generated the authentication response.
1573-
*/
1574-
public static final String BROKER_RESPONSE_GENERATION_TIMESTAMP = "broker_response_generation_timestamp";
1575-
15761566
/**
15771567
* Bundle identifiers for x-ms-clitelem info.
15781568
*/

common4j/src/main/com/microsoft/identity/common/java/AuthenticationConstants.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,15 @@ public static final class Broker {
568568
* String of broker client ID.
569569
*/
570570
public static final String BROKER_CLIENT_ID = "29d9ed98-a469-4536-ade2-f981bc1d605e";
571+
/**
572+
* Timestamp when the broker received the authentication request.
573+
*/
574+
public static final String BROKER_REQUEST_RECEIVED_TIMESTAMP = "broker_request_received_timestamp";
575+
576+
/**
577+
* Timestamp when the broker generated the authentication response.
578+
*/
579+
public static final String BROKER_RESPONSE_GENERATION_TIMESTAMP = "broker_response_generation_timestamp";
571580

572581
}
573582

0 commit comments

Comments
 (0)