-
Notifications
You must be signed in to change notification settings - Fork 46
Add domainHint support to authorization request, Fixes AB#3385486 #2792
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
❌ Work item link check failed. Description does not contain AB#{ID}. Click here to Learn more. |
There was a problem hiding this 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
domainHintfield toMicrosoftAuthorizationRequestandTokenCommandParameters - 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.
.../src/main/com/microsoft/identity/common/java/commands/parameters/TokenCommandParameters.java
Show resolved
Hide resolved
…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".
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".