-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Calling dotnet user-jwts
while app is running causes malformed appsettings
#44869
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
Comments
Thanks for contacting us. We're moving this issue to the |
I experienced a malformed appsettings.Development.json when using
We should likely look at handling JSON exceptions in the tool and displaying a more user-friendly error message. |
This seems to be happening even if the app isn't running. |
I found just having my json formatted to 4 spaces instead of 2 kills it
{
"Authentication": {
"Schemes": {
"Bearer": {
"ValidAudiences": [
"https://localhost:44310"
],
"ValidIssuer": "dotnet-user-jwts"
}
}
}
}r": "dotnet-user-jwts"
}
}
}
} |
not sure if its related but it keeps removing one of my valid audiences whenever i run the command to generate a token. please dont push this out to dotnet 8. its unusable in its current state note: this happens whether:
notice it deletes the valid audience and then it mangles the file (you can see the red underline at the top) right after i create the token
removing-valid-audience.mov
in the case of 4 space it edits the file, sets it to 2 space then mangles removing-valid-audience-4space.mov |
OK -- I was able to get a repro and a bug fix for the original issue around malformed settings being written when the @ci-vamp @mikeblakeuk I'm not sure if the presence of the editor config is a red herring in your scenarios. In any case, do you mind filling a separate issue for that so we can investigate it independently? I'll ping you when the bug fix for this one is merged in case it resolves your issues as well. |
No description provided.
The text was updated successfully, but these errors were encountered: