Skip to content

Conversation

@shahzaibj
Copy link
Contributor

@shahzaibj shahzaibj commented Dec 20, 2024

Fixes AB#3113751

Adds a new MSAL config file for the OneBox environment. This specifies exact authority that onebox is using.

Related common PR: AzureAD/microsoft-authentication-library-common-for-android#2559

@shahzaibj shahzaibj self-assigned this Dec 20, 2024
@github-actions
Copy link

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

Click here to Learn more.

@shahzaibj shahzaibj changed the title Add support to talk to local ests onebox deployment Add support for OneBox Environment Dec 20, 2024
@shahzaibj shahzaibj changed the title Add support for OneBox Environment Add support for OneBox Environment, Fixes AB#3113751 Dec 27, 2024
@shahzaibj shahzaibj changed the title Add support for OneBox Environment, Fixes AB#3113751 Add support for OneBox Environment., Fixes AB#3113751 Dec 27, 2024
@shahzaibj shahzaibj marked this pull request as ready for review December 27, 2024 17:07
@shahzaibj shahzaibj requested a review from a team as a code owner December 27, 2024 17:07
Copy link
Contributor

@melissaahn melissaahn left a comment

Choose a reason for hiding this comment

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

Are real devices able to make use of this support as well? Or just emulators?

@shahzaibj
Copy link
Contributor Author

shahzaibj commented Dec 27, 2024

Are real devices able to make use of this support as well? Or just emulators?

Real physical devices can use this too. That's what I've been using. Just need to make sure that it is connected to same network where local eSTS is running. So you may need a proxy or VPN to send traffic from mobile device to PC where eSTS is running.

Copy link
Contributor

@mohitc1 mohitc1 left a comment

Choose a reason for hiding this comment

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

:shipit:

@shahzaibj shahzaibj changed the title Add support for OneBox Environment., Fixes AB#3113751 Add support for OneBox Environment Dec 30, 2024
@github-actions
Copy link

✅ Work item link check complete. Description contains link AB#3113751 to an Azure Boards work item.

@github-actions github-actions bot changed the title Add support for OneBox Environment Add support for OneBox Environment, Fixes AB#3113751 Dec 30, 2024
shahzaibj added a commit to AzureAD/microsoft-authentication-library-common-for-android that referenced this pull request Jan 8, 2025
Fixes
[AB#3113751](https://identitydivision.visualstudio.com/fac9d424-53d2-45c0-91b5-ef6ba7a6bf26/_workitems/edit/3113751)

Changes to allow MSAL/Broker to talk to eSTS running locally. This
basically does the following:

- Add build config flag to bypass authority validation. This is required
because local eSTS authorities are not discovered via cloud discovery.
We can enable this flag locally in gradle project properties to target
local eSTS.
- Read the port number of the authority when constructing the cloud URL
because targeting local eSTS requires supplying exact port. I've scoped
the change to read port only when environment is specified as onebox.

Related MSAL PR:
AzureAD/microsoft-authentication-library-for-android#2231
@shahzaibj shahzaibj merged commit b399544 into dev Jan 29, 2025
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants