Code cleanup
This commit is contained in:
@@ -146,9 +146,9 @@ static Task WriteUnauthorizedChallengeAsync(HttpContext context)
|
||||
{
|
||||
Status = StatusCodes.Status401Unauthorized,
|
||||
Title = "Unauthorized",
|
||||
Detail = "Unauthorized"
|
||||
Detail = "Unauthorized",
|
||||
Extensions = { ["error"] = "Unauthorized" }
|
||||
};
|
||||
problem.Extensions["error"] = "Unauthorized";
|
||||
return context.Response.WriteAsJsonAsync(problem);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user