Skip to content

Forbid method expects authentication scheme #3

@kruhmann

Description

@kruhmann

Hi,

I tried to get information for a template without having enroll permission. In this case a 500 server error is returned. It seems that the Forbid method (https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.controllerbase.forbid?view=aspnetcore-8.0) expects an authentication scheme and does not accept an error message (without special handling).

image

Maybe it is possible to switch the response to Unauthorized. Then the RestAPI remains clean and simple.

Kind regards
Konstantin

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions