Skip to content

[Tech Spec] Supporting Bearer Auth #14174

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

Open
wants to merge 25 commits into
base: dev
Choose a base branch
from

Conversation

jgonz120
Copy link
Contributor

Tech spec for #12877

@jgonz120 jgonz120 requested a review from a team as a code owner March 10, 2025 21:21
@jgonz120 jgonz120 requested review from Copilot and removed request for a team March 10, 2025 21:21
Copy link

@Copilot 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.

PR Overview

This PR introduces a tech specification for supporting bearer token authentication for NuGet credential providers. The document outlines the functional and technical changes needed to update the NuGet CLI to support bearer auth, discusses drawbacks, and presents alternative schemes.

Reviewed Changes

File Description
accepted/2025/supporting-bearer-auth.md New tech spec document detailing changes to enable bearer token auth

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

@jgonz120 jgonz120 requested review from joelverhagen, kartheekp-ms and a team March 10, 2025 21:22
joelverhagen
joelverhagen previously approved these changes Mar 11, 2025
Copy link
Member

@joelverhagen joelverhagen left a comment

Choose a reason for hiding this comment

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

Looks good. It is a relatively high level doc with some details left to the implementation. I am fine with this if your team is. Seems like some things are best figured out once you see how the code is factored.

Copy link
Member

@zivkan zivkan left a comment

Choose a reason for hiding this comment

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

just nitpick comments, but hardly surprising since I talked to you about this before you wrote the spec 😁

Copy link

@Copilot 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 PR adds a technical specification detailing support for bearer token authentication in NuGet’s credential providers.

  • Introduces a new spec document outlining the requirements and technical rationale.
  • Describes the updated authentication behaviors and the limitations of the current .NET HttpClientHandler.
  • Lists alternatives and future possibilities regarding credential handling.
Comments suppressed due to low confidence (1)

accepted/2025/supporting-bearer-auth.md:50

  • The interface is referenced as 'ICredential', but the linked documentation refers to 'ICredentials'; please update for consistency.
Even though we are adding support for bearer tokens, the ICredential.GetCredential explicitly returns a NetworkCredential, which requires a username and password.

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.

7 participants