Repository navigation
Try silent Broker (WAM) auth when interactive auth is disabled - #469
Draft
José Cisneros (Josecisneros001) wants to merge 1 commit into
Draft
José Cisneros (Josecisneros001) wants to merge 1 commit into
José Cisneros (Josecisneros001) wants to merge 1 commit into
Conversation
When AZUREAUTH_NO_USER or Corext_NonInteractive disables interaction, Windows now tries silent Broker after IWA instead of IWA only, and Broker never falls back to an interactive prompt on any platform. Addresses the silent-only part of AzureAD#464. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Author
|
@microsoft-github-policy-service agree company="Microsoft" |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses the silent-only part of #464.
When interactive auth is disabled (
AZUREAUTH_NO_USERorCorext_NonInteractive=1), Windows reduced every mode to IWA only. On Entra-joined machines without on-prem AD, IWA fails, even though WAM could issue a token silently. This PR adds silent Broker (WAM) after IWA wherever Broker already runs on Windows. It also makes Broker silent-only on every platform when interaction is disabled.broker(default)web/devicecodeonlybrokerAs in other modes since #419, the separate CachedAuth flow is skipped when Broker runs; Broker's own silent lookup replaces it. IWA stays ahead of Broker, so agents where IWA works never call WAM; WAM is documented as unsupported in service sessions. The silent Broker call uses the existing 30 s CachedAuth timeout.
silentOnlyis a Broker option because the silent and interactive attempts happen inside the single Broker flow, so the flow chain alone cannot stop after the silent one.Testing
silentOnlyreachingIMsalWrapper-p:DefineConstants=TRACE. Not run on a real macOS or Linux machine.AZUREAUTH_NO_USER=1, Release publish:--mode web/devicecode: CachedAuth and IWA only, exit 1, no UI.Not covered
#464 also asks for a machine-readable "interaction required" result and an interaction policy independent of
--mode. This PR does neither. If IWA is removed (#454), Broker becomes the only silent flow here. I'm happy to follow up in whichever direction you prefer.LLM disclosure: GitHub Copilot helped investigate and draft this change. I reviewed it and ran the validation above.