Repository navigation
Add dotnet-user-jwts --file support for file-based apps - #66919
Merged
Merged
Conversation
Youssef1313
reviewed
May 30, 2026
Youssef1313
reviewed
May 30, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Adds --file targeting support to dotnet-user-jwts so file-based apps can be used alongside existing project-based workflows.
Changes:
- Adds
--fileoption plumbing and mutual exclusivity with--project. - Resolves file-based app
UserSecretsIdviadotnet build <file>.cs -getProperty=UserSecretsId. - Adds tests and fixture support for file-based app create/print/list scenarios.
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
src/Tools/Shared/SecretsHelpers/ProjectIdResolver.cs |
Adds file-based app secrets ID resolution path. |
src/Tools/dotnet-user-jwts/src/Commands/ProjectCommandLineApplication.cs |
Adds --file option and project/file selection helper. |
src/Tools/dotnet-user-jwts/src/Commands/CreateCommand.cs |
Routes create flow through project/file resolution. |
src/Tools/dotnet-user-jwts/src/Commands/ListCommand.cs |
Adds file-based app support for list. |
src/Tools/dotnet-user-jwts/src/Commands/PrintCommand.cs |
Adds file-based app support for print. |
src/Tools/dotnet-user-jwts/src/Commands/RemoveCommand.cs |
Adds file-based app support for remove. |
src/Tools/dotnet-user-jwts/src/Commands/ClearCommand.cs |
Adds file-based app support for clear. |
src/Tools/dotnet-user-jwts/src/Commands/KeyCommand.cs |
Adds file-based app support for key operations. |
src/Tools/dotnet-user-jwts/src/Helpers/DevJwtCliHelpers.cs |
Resolves file paths and reads audiences from file-based app run settings. |
src/Tools/dotnet-user-jwts/src/Resources.resx |
Adds user-facing strings for --file and exclusivity errors. |
src/Tools/dotnet-user-jwts/test/UserJwtsTests.cs |
Adds tests for file targeting and invalid option combinations. |
src/Tools/dotnet-user-jwts/test/UserJwtsTestFixture.cs |
Adds file-based app test fixture creation. |
Add a --file target option for file-based apps while keeping --project scoped to project files. Resolve FBA user secrets metadata via dotnet build and cover the new command validation behavior in tests. Co-authored-by: Copilot <[email protected]>
Use JSON output when asserting the generated JWT is listed for file-based apps so the test does not depend on console table wrapping. Co-authored-by: Copilot <[email protected]>
When a file-based app is targeted, read the app's .run.json before any Properties\launchSettings.json in the same directory so generated audiences match the selected .cs file. Co-authored-by: Copilot <[email protected]>
DamianEdwards
force-pushed
the
damianedwards/user-jwts-fba
branch
from
June 1, 2026 16:28
c64bc13 to
022ebda
Compare
halter73
reviewed
Jun 1, 2026
Co-authored-by: Copilot <[email protected]>
Member
|
/ba-g none of the failures are related to the changes in the pr |
lewing
approved these changes
Jun 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--file <file_path>target option fordotnet-user-jwtsfile-based apps--projectproject-only and reject.cspaths with guidance to use--fileUserSecretsIdviadotnet build <file>.cs -getProperty=UserSecretsIdand read<appname>.run.jsonaudiences.csrejection through--projectValidation
dotnet build .\src\Tools\dotnet-user-jwts\src\dotnet-user-jwts.csproj --no-restore --nologocreate --file,print --file,list --project app.csrejection, and--project/--fileexclusivitygit diff --checkCloses #66920