Auth middleware should respond with ProblemDetails
Open
area-middleware
feature-problem-details
- 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.
I want all 4xx and 5xx status codes to respond with the ProblemDetails format. I have configured `.AddProblemDetails()`, yet when auth middleware returns 401 it is not in the ProblemDetails format. I know it is possible to override, but I think ProblemDetails should be the default.
- [ ]
### Describe the solution you'd like
Make ProblemDetails the default response format for 401, or at least when using `.AddProblemDetails()`.
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.