Skip to content

Update AuthServerCheck, EWSVirtualDirectoryCheckOAuth, CheckIfExchang…#2533

Open
MarcoLFrancisco wants to merge 3 commits into
microsoft:mainfrom
MarcoLFrancisco:fix-onpremauth-changes-clean
Open

Update AuthServerCheck, EWSVirtualDirectoryCheckOAuth, CheckIfExchang…#2533
MarcoLFrancisco wants to merge 3 commits into
microsoft:mainfrom
MarcoLFrancisco:fix-onpremauth-changes-clean

Conversation

@MarcoLFrancisco
Copy link
Copy Markdown
Contributor

Issue:

Update on-prem Hybrid Free/Busy OAuth validation to match modern hybrid authentication behavior.

Reason:

The previous validation logic was checking older ACS-based values and had a few related output/parameter issues that did not align with current EvoSTS-based hybrid OAuth configuration.

Fix:

Updated AuthServerCheck, EWSVirtualDirectoryCheckOAuth, CheckIfExchangeServer, CheckParameters, hostOutputIntraOrgConEnabled, and related HTML output to validate the expected modern on-prem hybrid OAuth configuration and correct output behavior.

Validation:

Reviewed the updated output logic and rebuilt this change as a clean PR from current upstream/main with only the intended FreeBusyChecker function changes.

…eServer, CheckParameters, hostOutputIntraOrgConEnabled, and HTML configuration rendering to align on-prem hybrid free/busy OAuth validation with modern EvoSTS-based auth and fix related output issues
Copilot AI review requested due to automatic review settings April 30, 2026 21:53
@MarcoLFrancisco MarcoLFrancisco requested a review from a team as a code owner April 30, 2026 21:53
Copy link
Copy Markdown
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

Note

Copilot was unable to run its full agentic suite in this review.

Updates FreeBusyChecker’s on-prem hybrid Free/Busy OAuth validation to align with modern EvoSTS-based hybrid authentication, and fixes related output/rendering behavior.

Changes:

  • Switch AuthServer validation from legacy ACS patterns to EvoSTS (Realm/IssuerIdentifier/TokenIssuingEndpoint/AuthMetadataUrl).
  • Adjust HTML/host output paths for OAuth vs DAuth and improve configuration section markup.
  • Refactor Exchange server detection and EWS virtual directory data retrieval used by OAuth checks.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.

File Description
Diagnostics/FreeBusyChecker/Functions/htmlContent.ps1 Fixes HTML heading markup for the configuration section.
Diagnostics/FreeBusyChecker/Functions/hostOutput.ps1 Corrects which HTML lookup output is used when running OAuth-only.
Diagnostics/FreeBusyChecker/Functions/OnPremOAuthFunctions.ps1 Updates AuthServer checks to EvoSTS and ensures EWS info fetch occurs before OAuth validation.
Diagnostics/FreeBusyChecker/Functions/CommonFunctions.ps1 Refactors Exchange server validation and parameter checks; adjusts EWS info caching behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Diagnostics/FreeBusyChecker/Functions/CommonFunctions.ps1
Comment thread Diagnostics/FreeBusyChecker/Functions/CommonFunctions.ps1
Comment thread Diagnostics/FreeBusyChecker/Functions/OnPremOAuthFunctions.ps1 Outdated
Comment thread Diagnostics/FreeBusyChecker/Functions/OnPremOAuthFunctions.ps1
Comment thread Diagnostics/FreeBusyChecker/Functions/OnPremOAuthFunctions.ps1
Comment thread Diagnostics/FreeBusyChecker/Functions/OnPremOAuthFunctions.ps1
Suggestion accepted

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Comment thread Diagnostics/FreeBusyChecker/Functions/CommonFunctions.ps1
Comment thread Diagnostics/FreeBusyChecker/Functions/CommonFunctions.ps1
Comment thread Diagnostics/FreeBusyChecker/Functions/CommonFunctions.ps1
Comment thread Diagnostics/FreeBusyChecker/Functions/CommonFunctions.ps1
Comment thread Diagnostics/FreeBusyChecker/Functions/OnPremOAuthFunctions.ps1 Outdated
Comment thread Diagnostics/FreeBusyChecker/Functions/CommonFunctions.ps1
Suggestion accepted

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@dpaulson45
Copy link
Copy Markdown
Member

@MarcoLFrancisco can you review the comments that I made and make the required changes.

@MarcoLFrancisco
Copy link
Copy Markdown
Contributor Author

Reviewed.

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.

4 participants