Skip to content

Conversation

@andwhysoft
Copy link
Contributor

@andwhysoft andwhysoft commented Oct 23, 2025

AB#3385486

This PR adds the domainHint support to the authorization request.

DomainHint is added the SDK to streamline developer experience for Social IdP/Custom OIDC scenarios with MSAL SDK. Today developer can use extraQueryParameters as an alternative which required developer to type in "domain_hint".

Copilot AI review requested due to automatic review settings October 23, 2025 14:07
@andwhysoft andwhysoft requested a review from a team as a code owner October 23, 2025 14:07
@github-actions
Copy link

❌ Work item link check failed. Description does not contain AB#{ID}.

Click here to Learn more.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds native support for the domain_hint parameter in Microsoft authorization requests, streamlining the developer experience for Social IdP/Custom OIDC scenarios. Previously, developers had to manually specify this parameter using extraQueryParameters.

Key changes:

  • Added domainHint field to MicrosoftAuthorizationRequest and TokenCommandParameters
  • Updated authorization request builder to accept and pass through domain hints
  • Added test coverage for domain hint in authorization URLs

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
MicrosoftAuthorizationRequest.java Added mDomainHint field with getter/setter and serialization support
TokenCommandParameters.java Added domainHint field to command parameters
BaseController.java Updated request builder to set domain hint from command parameters
MicrosoftAuthorizationRequestTest.java Added test assertions for domain hint in generated authorization URLs

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@github-actions github-actions bot changed the title Add domainHint support to authorization request Add domainHint support to authorization request, Fixes AB#3385486 Oct 27, 2025
@andwhysoft andwhysoft requested a review from a team as a code owner October 27, 2025 17:03
@andwhysoft andwhysoft merged commit 6353bd7 into dev Oct 28, 2025
24 of 25 checks passed
andwhysoft added a commit to AzureAD/microsoft-authentication-library-for-android that referenced this pull request Oct 29, 2025
…2392)

[AB#3385486](https://identitydivision.visualstudio.com/Engineering/_workitems/edit/3385486)

This PR adds the domainHint parameters into acquireTokenParameters and
has a dependency on
AzureAD/microsoft-authentication-library-common-for-android#2792

DomainHint is added the SDK to streamline developer experience for
Social IdP/Custom OIDC scenarios with MSAL SDK. Today developer can use
extraQueryParameters as a alternative which required developer to type
in "domain_hint".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants