Devtember

DEVTEMBER

  • About
  • Blog
  • Contact
  • Services
  • Instagram
  • Facebook
  • X
  • Uncovering Hidden C# Features: CallerMemberName and CallerLineNumber

    Uncovering Hidden C# Features: CallerMemberName and CallerLineNumber

    October 25, 2025
    c#, DotNet

    Let’s say you have a utility function that’s used by multiple other functions to “do the thing,” and you want to log or print which function actually called this utility. How would you do that? For example, consider a function that extracts the user ID from a JWT token: Now, we want to log who…

  • Multiple authorization handlers for the same requirement in ASP.NET Core

    Multiple authorization handlers for the same requirement in ASP.NET Core

    September 16, 2025
    DotNet

    We saw how we could set up policy-based authorization in our previous article. In this article, we’ll focus on We’ll use the same scenario as we used for our policy-based authorization: two lounges, one for premium users and one for standard users. Let’s say we want to allow the trial/limited user to experience the standard…

  • Policy-Based Authorization in ASP.NET Core

    Policy-Based Authorization in ASP.NET Core

    September 15, 2025
    DotNet

    What is a policy-based authorization? Unlike role-based authorization, which solely depends on the roles assigned to the users. A policy-based authorization uses requirements that will provide access to a resource when succeeded. A requirement is a collection of data used to evaluate the current user. Why do we need policy-based authorization? With policy-based authorization, we have…

  • Role-based Authorization in ASP.NET Core

    Role-based Authorization in ASP.NET Core

    September 12, 2025
    DotNet

    What is role-based authorization? As the name says, role-based authorization authorizes a user based on the role defined to the user. Creating roles and users in ASP.NET Core with Identity For this article, I’ve created a new ASP.NET Core app in .NET 6 with Individual Accounts as the Authentication type, which will create the roles,…

  • Instagram
  • Facebook
  • X

Devtember

Powered by
...
►
Necessary cookies enable essential site features like secure log-ins and consent preference adjustments. They do not store personal data.
None
►
Functional cookies support features like content sharing on social media, collecting feedback, and enabling third-party tools.
None
►
Analytical cookies track visitor interactions, providing insights on metrics like visitor count, bounce rate, and traffic sources.
None
►
Advertisement cookies deliver personalized ads based on your previous visits and analyze the effectiveness of ad campaigns.
None
►
Unclassified cookies are cookies that we are in the process of classifying, together with the providers of individual cookies.
None
Powered by