Search code examples
asp.net-core-mvcidentityserver4

Showing validation error


Is it possible to show the request validation error message in the error page of my ASP.NET Core app when for instance Identity Server sends a: Requested scope not allowed: {myscope} ?

As it is now, all validation errors just show the /home/error?errorId=12345 page without further information.

So basically my question is: How do I get more details of the validation error?


Solution

  • You are not supposed to show detailed error messages to the end user - this is a security risk.

    Use the log to find out exactly what is wrong.