diff --git a/changelog.txt b/changelog.txt index f8f1933a0f..d6695a993a 100644 --- a/changelog.txt +++ b/changelog.txt @@ -5,6 +5,7 @@ vNext - [MINOR] Add OTel Benchmarker (#2786) - [MINOR] WebApps AccountId Registry (#2787) - [MINOR] Take flight value for whether to show webcp flow in weview or not in brokerless scenarios. (#2784) +- [MINOR] Add domainHint support to authorization request (#2792) Version 23.0.2 ---------- diff --git a/common4j/src/main/com/microsoft/identity/common/java/commands/parameters/TokenCommandParameters.java b/common4j/src/main/com/microsoft/identity/common/java/commands/parameters/TokenCommandParameters.java index 357d75cecf..46d3c61f24 100644 --- a/common4j/src/main/com/microsoft/identity/common/java/commands/parameters/TokenCommandParameters.java +++ b/common4j/src/main/com/microsoft/identity/common/java/commands/parameters/TokenCommandParameters.java @@ -69,6 +69,8 @@ public class TokenCommandParameters extends CommandParameters { private final String loginHint; + private final String domainHint; + private final List> extraOptions; public Set getScopes() { diff --git a/common4j/src/main/com/microsoft/identity/common/java/controllers/BaseController.java b/common4j/src/main/com/microsoft/identity/common/java/controllers/BaseController.java index 1acc0adc52..514ed80812 100644 --- a/common4j/src/main/com/microsoft/identity/common/java/controllers/BaseController.java +++ b/common4j/src/main/com/microsoft/identity/common/java/controllers/BaseController.java @@ -366,6 +366,7 @@ private void setBuilderProperties(@SuppressWarnings(WarningType.rawtype_warning) final MicrosoftStsAuthorizationRequest.Builder msBuilder = (MicrosoftStsAuthorizationRequest.Builder) builder; msBuilder .setLoginHint(interactiveTokenCommandParameters.getLoginHint()) + .setDomainHint(interactiveTokenCommandParameters.getDomainHint()) .setPrompt(interactiveTokenCommandParameters.getPrompt().toString()) .setPreferredAuthMethod(interactiveTokenCommandParameters.getPreferredAuthMethod()); final String installedCompanyPortalVersion = diff --git a/common4j/src/main/com/microsoft/identity/common/java/providers/microsoft/MicrosoftAuthorizationRequest.java b/common4j/src/main/com/microsoft/identity/common/java/providers/microsoft/MicrosoftAuthorizationRequest.java index f86dda1b55..846c339c81 100644 --- a/common4j/src/main/com/microsoft/identity/common/java/providers/microsoft/MicrosoftAuthorizationRequest.java +++ b/common4j/src/main/com/microsoft/identity/common/java/providers/microsoft/MicrosoftAuthorizationRequest.java @@ -75,6 +75,14 @@ public abstract class MicrosoftAuthorizationRequest