I'm trying to create a JWT token by signing it with a private key stored in an Azure key vault. The code I have works fine and it generates the token, ...
I'm trying to create a JWT token by signing it with a private key stored in an Azure key vault. The code I have works fine and it generates the token, ...
I deployed an application to Azure. Internal users with Windows accounts are logged in automatically when they navigate to the application. External u ...
I need to access ClaimsPrincipal within the service layer of a Net Core 6 app. I could always just builder.Services.AddTransient<IHttpContextAcces ...
I am trying to validate a valid JWT using this code below but am getting a strange error Code: I had seen a lot of reference links on this issue b ...
I'm using claims based authentication in my Blazor Server app. When the user logs in to my app, I define a claim which contains a specific ID to ident ...
I try to login User from Microsoft account into my app. First : I'm following this info, and that'a working well. https://learn.microsoft.com/fr-fr/a ...
I'm having troubles with .NET 6.0 REST Web API. I managed to do figure out just about everything, except authorizations. For my logic I need to get cu ...
I'm creating a site for a game where the intention is that users will be able to visit the site and start playing the game without first having to cre ...
Fellow developers, I'm updating an IIS web application from using Windows Authentication to using Azure Active Directory instead. The setup looks fine ...
Startup.cs: Authentication controller: BookEvent controller: Why am I not getting value from startup.cs when I am putting roles in claims? My ...
I am having an issue with Claims not populating with ClaimsPrinciple after creating a JWT. I am using ASP.NET Core 6 on VS 2022. The issue raised afte ...
I'm trying to get the id of the current user (the user executing the method) with Identity package. The context is a UserManager<ApplicationUser> ...
I'm thinking about switching from role-based to policy-based authorization in my ASP.NET Core API. I am currently using JWT to handle authorization, ...
I am "new" into the ASP.NET Core environment, specifically in Authentication/Authorization. And I see that is possible using cookies without identity ...
Hi I have a custom authentication in my asp.net core mvc project and now I have a problem. First I explain my authentication: this is startup config : ...
My WCF method is not able to see any of my identity claims. I'm able to authenticate the user via the ClaimsPrincipalPermission property but there's i ...
I've implemented a claim-based authorization on ASP.NET Core 3.1, where I've stored authentication info through claims and I need to retrieve it after ...
I am currently working on a project that consists of sub-projects such as WebApp, API, and Client class library. (The project structure is shown below ...
I am kind of scratching my head to resolve this issue where I have to remove all the Claims in one go. When I use the below code, I get this error Col ...
I need to add the custom claim "samAccountName" to be shown in a token (using jwt) First, I created the powershellscript I assined the new policy ...