dotnet / dotnet/aspnetcore

Option to disable updating `appsettings.Development.json` when creating a user JWT

Open
#46,239 4 comments 2 reactions 0 assignees View on GitHub
area-commandlinetools bug feature-userjwts
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 5h
Merged PRs (30d)
276

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Is your feature request related to a problem? Please describe the problem.

When running the `create` command, the following unwanted changes are made to `appsettings.Development.json`:

- `ValidAudience` (I only have one local development URL) is changed to `ValidAudiences` (array).
- The whole file is reformatted, and doesn't respect EditorConfig settings (indentation is changed from 4 to 2 spaces).
- The file is corrupted (see #44869).

### Describe the solution you'd like

The above issues should be fixed, but for now providing an option to skip updating the configuration file would help as a workaround, since this command doesn't actually need to update the configuration at all if it already exists and you're just creating another key.

### Additional context

WSL, Debian GNU/Linux 11 (bullseye).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.