Skip to content

Commit a7347b5

Browse files
author
Mohit
authored
Merge branch 'dev' into mchand/openid-issuer-validation
2 parents 2b030e6 + da32c8e commit a7347b5

7 files changed

Lines changed: 54 additions & 4 deletions

File tree

changelog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
vNext
22
----------
33
- [MINOR] Add Open Id configuration issuer validation reporting in OpenIdProviderConfigurationClient (#2751)
4+
- [MINOR] Add client scenario to JwtRequestBody (#2755)
5+
6+
Version 22.1.0
7+
----------
48
- [PATCH] Fix Switch browser back stack (#2750)
59
- [MINOR] Move ests telemetry behind feature flag (#2742)
610
- [MINOR] Update Broker ATS flow for Resource Account (#2704)

common4j/src/main/com/microsoft/identity/common/java/commands/parameters/BrokerResourceAccountCommandParameters.java

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
import lombok.EqualsAndHashCode;
3030
import lombok.Getter;
31+
import lombok.NonNull;
3132
import lombok.experimental.SuperBuilder;
3233

3334
/**
@@ -37,15 +38,54 @@
3738
@Getter
3839
@SuperBuilder(toBuilder = true)
3940
@EqualsAndHashCode(callSuper = true)
40-
public class BrokerResourceAccountCommandParameters extends ResourceAccountCommandParameters {
41+
public class BrokerResourceAccountCommandParameters extends ResourceAccountCommandParameters
42+
implements IBrokerTokenCommandParameters {
43+
/**
44+
* UID of the calling application process as seen by the Broker.
45+
*/
4146
@Expose
4247
private final int callerUid;
4348

49+
/**
50+
* Version name/code of the calling application that initiated the request.
51+
*/
4452
@Expose
4553
private final String callerAppVersion;
4654

55+
/**
56+
* Version of the Broker executing this request.
57+
*/
4758
@Expose
4859
private final String brokerVersion;
4960

61+
/**
62+
* The AAD tenant id (home tenant) for the user account this request is for. It
63+
* is derived from the {@link #getHomeAccountId()} value and is used
64+
*/
65+
@Expose
66+
@NonNull
67+
private final String homeTenantId;
68+
69+
/**
70+
* The user id in home tenant retrieved from {@link #getHomeAccountId()}.
71+
*/
72+
@NonNull
73+
private final String localAccountId;
74+
75+
/**
76+
* {@link IBrokerAccount} if already present, otherwise null.
77+
*/
5078
private final IBrokerAccount brokerAccount;
79+
80+
/**
81+
* The protocol version that was negotiated between the calling app / library
82+
* and the Broker.
83+
*/
84+
@Expose
85+
private final String negotiatedBrokerProtocolVersion;
86+
87+
/**
88+
* For this parameter class it is always {@link BrokerRequestType#REGULAR} as this request is not started in broker.
89+
*/
90+
private final BrokerRequestType requestType = BrokerRequestType.REGULAR;
5191
}

common4j/src/main/com/microsoft/identity/common/java/jwt/AbstractJwtRequest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public static class ClaimNames {
6262
public static final String JWE_CRYPTO = "jwe_crypto";
6363
public static final String SESSION_KEY_CRYPTO = "session_key_crypto";
6464
public static final String PURPOSE = "purpose";
65+
public static final String CLIENT_SCENARIO = "client_scenario";
6566
}
6667

6768
@SerializedName(ClaimNames.REFRESH_TOKEN)

common4j/src/main/com/microsoft/identity/common/java/jwt/JwtRequestBody.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ public final class JwtRequestBody extends AbstractJwtRequest {
8888
@SerializedName(ClaimNames.PURPOSE)
8989
private String mPurpose;
9090

91+
@SerializedName(ClaimNames.CLIENT_SCENARIO)
92+
private String mClientScenario;
93+
9194
public void setIat(final long iat) {
9295
mIat = String.valueOf(iat);
9396
}

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,7 @@ public enum SpanName {
6565
SwitchBrowserResume,
6666
SwitchBrowserProcess,
6767
WrappedKeyAlgorithmIdentifier,
68-
ProcessWebCpRedirects
68+
ProcessWebCpRedirects,
69+
70+
ProvisionResourceAccount
6971
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#Wed May 12 20:08:39 UTC 2021
2-
versionName=22.0.3
2+
versionName=22.1.0
33
versionCode=1
44
latestPatchVersion=227

versioning/version.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#Tue Apr 06 22:55:08 UTC 2021
2-
versionName=22.0.3
2+
versionName=22.1.0
33
versionCode=1
44
latestPatchVersion=234

0 commit comments

Comments
 (0)