NuGet / NuGetGallery

NuGet Gallery is a package repository that powers https://www.nuget.org. Use this repo for reporting NuGet.org issues.
https://www.nuget.org/
Apache License 2.0
1.55k stars 641 forks source link

[OIDC 3] Add flight for using federated credentials #10262

Closed joelverhagen closed 1 week ago

joelverhagen commented 1 week ago

Progress on https://github.com/NuGet/NuGetGallery/issues/10212. Depends on https://github.com/NuGet/NuGetGallery/pull/10252.

We want to be able to control exactly which package owners should be using this feature. This adds a flight (i.e. a feature flag specific to the user) for the new federated credentials (OIDC) feature.

I did some minor private const renaming to address an IDE suggestion (per .editorconfig) which is unrelated to the other changes.

The flight defaults to false meaning it is opt-in.

We generally do not have UTs for these changes since they are so simple.