Skip to content

Conversation

@isra-fel
Copy link
Member

… and recommend Web Account Manager (WAM) for better security.

Description

This pull request updates the browser-based interactive login flow to improve user guidance. The main change is a new warning message advising users to switch from the current authentication method to Web Account Manager (WAM) for better security and robustness.

User experience improvements:

  • Added a warning to the browser-based login success message, recommending users switch to WAM for a more robust authentication mechanism. The message includes a link for more information (InteractiveUserAuthenticator.cs).
  • Documented the updated success message and recommendation in the ChangeLog.md for the upcoming release.

Mandatory Checklist

  • SHOULD update ChangeLog.md file(s) appropriately
    • Update src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.
      • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header in the past tense.
    • Should not change ChangeLog.md if no new release is required, such as fixing test case only.
  • SHOULD regenerate markdown help files if there is cmdlet API change. Instruction
  • SHOULD have proper test coverage for changes in pull request.
  • SHOULD NOT adjust version of module manually in pull request

… and recommend Web Account Manager (WAM) for better security.
Copilot AI review requested due to automatic review settings December 18, 2025 06:53
@azure-client-tools-bot-prd
Copy link

Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status.

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 adds a warning message to the browser-based interactive login success page, recommending users switch to Web Account Manager (WAM) for improved authentication security and robustness.

Key Changes

  • Added browser customization to display a warning message after successful browser-based login
  • Updated the ChangeLog.md to document this user-facing change

Reviewed changes

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

File Description
src/Accounts/Authenticators/InteractiveUserAuthenticator.cs Introduces BrowserCustomizationOptions with a success message warning users about the authentication method and recommending WAM
src/Accounts/Accounts/ChangeLog.md Documents the new warning message in the upcoming release section

var browserCustomizationOptions = new BrowserCustomizationOptions()
{
SuccessMessage = @"Login completed successfully. You can close this browser window and return to the application.
<b>Warning:</b> We strongly advise against the authentication method you are about to use. Please switch to the broker (WAM) for a more robust authentication mechanism. Learn more about using WAM here http://",
Copy link

Copilot AI Dec 18, 2025

Choose a reason for hiding this comment

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

The message says "strongly advise against the authentication method" which may be too strong and potentially confusing for users. Consider softening the language to "recommend using" rather than "strongly advise against", as browser-based authentication is still a valid and functional method, just not the most robust option. The current wording could cause unnecessary alarm for users who may not be able to immediately switch to WAM.

Suggested change
<b>Warning:</b> We strongly advise against the authentication method you are about to use. Please switch to the broker (WAM) for a more robust authentication mechanism. Learn more about using WAM here http://",
<b>Notice:</b> For a more robust authentication experience, we recommend using the broker (WAM) when possible. Learn more about using WAM here http://",

Copilot uses AI. Check for mistakes.
var browserCustomizationOptions = new BrowserCustomizationOptions()
{
SuccessMessage = @"Login completed successfully. You can close this browser window and return to the application.
<b>Warning:</b> We strongly advise against the authentication method you are about to use. Please switch to the broker (WAM) for a more robust authentication mechanism. Learn more about using WAM here http://",
Copy link

Copilot AI Dec 18, 2025

Choose a reason for hiding this comment

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

The URL in the success message is incomplete - it ends with "http://". This should be replaced with a complete URL. Based on other references in the codebase, the standard URL for WAM documentation is either https://go.microsoft.com/fwlink/?linkid=2272007 or https://learn.microsoft.com/en-us/entra/msal/dotnet/acquiring-tokens/desktop-mobile/wam

Suggested change
<b>Warning:</b> We strongly advise against the authentication method you are about to use. Please switch to the broker (WAM) for a more robust authentication mechanism. Learn more about using WAM here http://",
<b>Warning:</b> We strongly advise against the authentication method you are about to use. Please switch to the broker (WAM) for a more robust authentication mechanism. Learn more about using WAM here https://go.microsoft.com/fwlink/?linkid=2272007",

Copilot uses AI. Check for mistakes.
var browserCustomizationOptions = new BrowserCustomizationOptions()
{
SuccessMessage = @"Login completed successfully. You can close this browser window and return to the application.
<b>Warning:</b> We strongly advise against the authentication method you are about to use. Please switch to the broker (WAM) for a more robust authentication mechanism. Learn more about using WAM here http://",
Copy link

Copilot AI Dec 18, 2025

Choose a reason for hiding this comment

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

The message states "the authentication method you are about to use" but this message appears after login has been completed successfully. The wording should be changed to reflect that the authentication has already occurred. Consider rephrasing to something like "the authentication method you just used" or "this authentication method".

Suggested change
<b>Warning:</b> We strongly advise against the authentication method you are about to use. Please switch to the broker (WAM) for a more robust authentication mechanism. Learn more about using WAM here http://",
<b>Warning:</b> We strongly advise against the authentication method you just used. Please switch to the broker (WAM) for a more robust authentication mechanism. Learn more about using WAM here http://",

Copilot uses AI. Check for mistakes.
-->

## Upcoming Release
* Updated the success message of browser-based interactive login to warn users against using this authentication method and recommend switching to Web Account Manager (WAM) for a more robust authentication mechanism.
Copy link

Copilot AI Dec 18, 2025

Choose a reason for hiding this comment

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

According to the ChangeLog.md guidelines for this repository, less-obvious acronyms should always be explained on first use in a release section. While "WAM" is explained as "Web Account Manager" here, it would be helpful to also explain what WAM provides or why users should switch to it, similar to how other changelog entries in this file provide context about what changes mean for users.

Copilot generated this review using guidance from repository custom instructions.
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.

1 participant