C
C#2y ago
Dusty

❔ Authorization handling in asp.net core

Hey, in asp.net core you can use Authorization Handlers and Type Filters to authorize a request. The first one needs a policy defined, the other one a custom attribute to authorize a request. When to use which and what are the pros and cons?
3 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Dusty
Dusty2y ago
Authorization filters I've only seen that they're tied to MVC stuff but idk if that's the only difference
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server
More Posts
❔ Is there an equivalent feature to TypeScript's Indexed Access Types?e.g. ```ts type Example<T> = { items: T[] } type StringItems = Example<string>["items"] // stringA series of errors (Install failed & Minimal hosting scenario!) while scaffolding for a ASP.NET CoreI followed this instruction to execute the ```API Controller with views, using Entity Framework``` h❔ InputDevices.GetDevicesWithCharacteristics doesnt exist??ive never gotten this error before, i dont know if i just havent imported something that i need to? ✅ How To Run CMD C WPFHow can I run a CMD command in the event handler of a button in C# WPF?❔ TCP Connect To Public iPI Make a simple app for chat(it work in local) but dos not work for connect to public IP❔ EmguCV with .NET MAUIHello everyone. I can access the camera with VideoCapture but I couldn't transfer it to Mat object✅ How to register all Automapper profiles from one project in the Startup class of a second projectHi friends, I have a solution with the structure in the screen-shot attachement, I use Automapper ❔ Doing freelance work. What is the right skill level to start it? Doing it to develop skills?Hello! I'm looking for some advice on this subject. I'm currently working on small projects to devel❔ Documentation on the AOT runtime's internal type system (EEType)?I'm trying to create my own operating system in C#, using the ZeroSharp repository (https://github.c❔ Page debugging twice in razor pages PageRouteModelConvention`public class CultureTemplatePageRouteModelConvention : IPageRouteModelConvention { public void