Skip to content

Conversation

@ashok672
Copy link

The system browser authentication flow no longer supports query response mode. This change deprecates ResponseMode.QUERY . When developers pass ResponseMode.QUERY, it will be automatically overridden to FORM_POST with a warning log, ensuring backward compatibility while guiding users to the supported mode.

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 pull request deprecates the ResponseMode.QUERY option in the system browser authentication flow due to lack of support. When developers pass ResponseMode.QUERY, it is now automatically overridden to ResponseMode.FORM_POST with a warning log message, ensuring backward compatibility.

Changes:

  • Added deprecation annotation to ResponseMode.QUERY enum value with documentation explaining the override behavior
  • Implemented automatic override logic in AuthorizationRequestUrlParameters to convert QUERY to FORM_POST with a warning log
  • Replaced comprehensive optional parameters test with a focused test for QUERY override behavior
  • Added build artifact (log4j.properties) to version control

Reviewed changes

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

File Description
msal4j-sdk/src/main/java/com/microsoft/aad/msal4j/ResponseMode.java Added deprecation annotation and documentation to QUERY enum value
msal4j-sdk/src/main/java/com/microsoft/aad/msal4j/AuthorizationRequestUrlParameters.java Implemented override logic to convert QUERY to FORM_POST with warning, added deprecation to responseMode() method
msal4j-sdk/src/test/java/com/microsoft/aad/msal4j/AuthorizationRequestUrlParametersTest.java Replaced comprehensive optional parameters test with focused QUERY override validation test
msal4j-persistence-extension/target/test-classes/log4j.properties Added log4j configuration file in build output directory

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

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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Contributor

@Avery-Dunn Avery-Dunn left a comment

Choose a reason for hiding this comment

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

See above comments: looks like there are some unnecessary additions and changes to the tests.

ashok672 and others added 2 commits January 14, 2026 11:21
…nRequestUrlParameters.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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