Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve interactive authentication experiences for .NET users #46421

Open
baronfel opened this issue Jan 30, 2025 · 0 comments
Open

Improve interactive authentication experiences for .NET users #46421

baronfel opened this issue Jan 30, 2025 · 0 comments
Assignees
Labels
Area-NetSDK cli-ux Issues and PRs that deal with the UX of the CLI (exit codes, log output, verbs/options, and so on) Epic Groups multiple user stories. Can be grouped under a theme. untriaged Request triage from a team member
Milestone

Comments

@baronfel
Copy link
Member

baronfel commented Jan 30, 2025

We want to help users avoid a pit of failure for builds that require authentication to access NuGet feeds and other resources that require authentication. Many tools use authentication in two ways - interactive and non-interactive flows. The dotnet CLI today uses a non-interactive flow by default, which means that many user experiences follow this pattern

  • user runs dotnet build
  • build fails due to missing authentication that requires user input
  • user runs dotnet build --interactive
  • build detects it is interactive so prompts a user to open a browser to authenticate
  • user follows prompts to authenticate
  • build succeeds

We should be able to remove steps 2, 3, and 4 from that workflow by making --interactive the default for user experiences in .NET, as long as there is a user in control. As always, a user should be able to specify --interactive false or --no-interactive to override our defaults.

We should also work with standalone MSBuild to determine when /interactive should be the default for non-.NET-SDK users.

In addition, authentication workflows today require users to click links in their terminals, but more integrated experiences can open browsers and even silently authenticate if NuGet allows them to spawn dialogs, so we should enable that behavior as well in the core NuGet Credential Provider workflows.

@baronfel baronfel added the Epic Groups multiple user stories. Can be grouped under a theme. label Jan 30, 2025
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-NetSDK untriaged Request triage from a team member labels Jan 30, 2025
@rainersigwald rainersigwald changed the title Inprove interactive authentication experiences for .NET users Improve interactive authentication experiences for .NET users Jan 30, 2025
@baronfel baronfel self-assigned this Jan 30, 2025
@baronfel baronfel added this to the 10.0.1xx milestone Jan 30, 2025
@baronfel baronfel added the cli-ux Issues and PRs that deal with the UX of the CLI (exit codes, log output, verbs/options, and so on) label Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-NetSDK cli-ux Issues and PRs that deal with the UX of the CLI (exit codes, log output, verbs/options, and so on) Epic Groups multiple user stories. Can be grouped under a theme. untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

1 participant