Skip to main content

Questions tagged [asp.net-identity]

The ASP.NET Identity system is designed to replace the previous ASP.NET Membership and Simple Membership systems. Use the ASP.NET Core Identity tag for questions about Identity in ASP.NET Core.

Filter by
Sorted by
Tagged with
0 votes
1 answer
736 views

I have been following this tutorial to create daemon application calling a custom Web API with its own identity using a CIAM tenant. https://github.com/Azure-Samples/ms-identity-ciam-dotnet-tutorial/...
Vladimir's user avatar
  • 398
0 votes
0 answers
38 views

I am facing a challenge while implementing a generic repository with a unit of work pattern in my ASP.NET Core project. The issue arises when I attempt to inherit from IdentityDbContext in my custom ...
tarık çelebi's user avatar
0 votes
1 answer
228 views

I use MS identity for a simple authentication using a cookie and username/password method. It's an MVC app where everything is wired up using standard MS Identity AddAuthentication + AddCookie. On ...
Rok's user avatar
  • 1,519
0 votes
1 answer
247 views

When I want to create an account I don't want any fields being populated by chrome passwords as I have a hidden field that appears if a certain option is selected from a select. The field is shown, ...
KevBarri's user avatar
  • 125
0 votes
1 answer
372 views

I did the registration/Login on my Razor Pages. But I want to do some sort of "Edit Profile" Page in my blazor Server App component. So initially my idea was to get the UserName via ...
user2330725's user avatar
0 votes
1 answer
1k views

Is there a built-in way to setup an isolated Azure Function to use Microsoft.Identity authentication similar to a Web API or MVC app using ...
MiddleTommy's user avatar
1 vote
1 answer
185 views

We're developing a feature that will allow us to allow users to only use our product on one device at a time, and one of the prerequisites for this feature is the ability to remotely log out a given ...
Justin's user avatar
  • 11
0 votes
1 answer
669 views

I'm using the B2C ID Provider. The authentication part in my app is working correctly. However, I'm encountering an issue when attempting to retrieve information about the logged-in user. The ...
Ferri16's user avatar
  • 23
0 votes
1 answer
660 views

Is there a recommended/built-in way to implement Role hierarchies in ASP.NET Identity? I have four roles: Master, Admin, Manager, and Restricted. I want to develop a safe method for determining which ...
kj49's user avatar
  • 75
-1 votes
1 answer
2k views

I want to implement a passwordless authentication in ABP project. In my scenario, I want to authenticate mobile users with their phone number by sending a verification code via SMS, then give these ...
Omer Faruk KAYA's user avatar
3 votes
1 answer
2k views

Im currently learning blazor identity and am analyzing the built in identity files. Im not one to just use something without knowing more about what its doing so i was just curious if anyone could ...
alex cardoso's user avatar
3 votes
1 answer
1k views

I am trying to use ASP Identity with a .NET 8 Web API. I have the following in my Program.cs. ...
JrDeveloper's user avatar
0 votes
1 answer
198 views

I have a fresh SQL Server database, hosted in Microsoft Azure. Whenever I run the following commands in the Visual Studio for Mac terminal window: ...
Goober's user avatar
  • 13.5k
0 votes
1 answer
110 views

I have a fresh SQL Server database, with no tables in it, hosted in Azure. I have an ApplicationUser entity, that inherits from ...
Goober's user avatar
  • 13.5k
-1 votes
1 answer
177 views

I have an ASP.NET Core application with both web pages and APIs (using controllers). It's working fine except, right now, if I attempt to access an API, I get redirected to the login page. I'd like my ...
Jonathan Wood's user avatar
1 vote
0 answers
215 views

I'm trying to change an existing web API to allow switching between IdentityServer and JWT based authentication. Both forms of authentication work on their own when set to be the ...
Chris Gilbert's user avatar
0 votes
1 answer
131 views

I'm facing an issue in my .NET 8 application where trailing whitespaces are being appended to a fixed-length property (UserName) when stored in the database. I am using Database provider - Microsoft....
skyhunter96's user avatar
0 votes
1 answer
382 views

Thats how my Jwt configuration looks like: ...
Bidzina Goginashvili's user avatar
0 votes
1 answer
208 views

I am looking to develop a series of applications including web, API and Windows desktop; the web application will support local "Individual" (ASP.NET Identity) accounts (as in stored in the ...
Martin Robins's user avatar
0 votes
1 answer
109 views

To create a new user I'm doing: ...
Ivan Debono's user avatar
  • 1,028
4 votes
4 answers
4k views

So, here's the thing: If you create a Blazor WebApp (.Net8) with individual accounts enabled, it will give you a working solution. For development, I'm using Sqlite. Here's what that looks like (in an ...
Rhywden's user avatar
  • 760
3 votes
0 answers
599 views

How do you setup Azure AD authentication with Elsa v3? In Elsa v2, we did something like this and just wrapped Elsa in a login flow: ...
Adam's user avatar
  • 4,810
1 vote
1 answer
82 views

After adding Jwt authentication to the Web API, it seems okay if I do not specify roles in the Weather Forecast Controller method. After I specified Roles, only JWT authorisation works. I tried ...
AJ Raj's user avatar
  • 13
2 votes
0 answers
87 views

I am using the ASP.NET Identity API in ASP.NET 8, using the following code in Program.cs: ...
xblz's user avatar
  • 40
1 vote
1 answer
155 views

I'm encountering an issue with role management in my .NET Core 8 Web API project using Identity for authentication. I have successfully seeded roles to the database during the OnModelCreating method, ...
Howaida Mansour's user avatar
0 votes
0 answers
53 views

I'm using Identity in Asp.net core and my context inherits from a NetDevPackAppDbContext class which is a very cool assembly created by Eduardo Pires. I'm overriding the "OnConfiguring" ...
masterj's user avatar
  • 55
1 vote
0 answers
540 views

I want to use the .NET 8 identity feature in my project but I want a way to review and possibly modify some of the properties like expiration time of the token and the refresh token, the issuer, the ...
Josh's user avatar
  • 2,098
1 vote
0 answers
348 views

Using Microsoft.AspNetCore.Identity.EntityFrameworkCore 5.0.9. I am trying to create a new user with something like ...
JeffCren's user avatar
  • 416
0 votes
1 answer
29 views

I am trying to extend ASP.NET IdentityUser to include a reference to a Customer. I extend the IdentityUser class as: ...
Paul's user avatar
  • 4,114
2 votes
0 answers
88 views

In blazor asp.net core 6.0 hosted I'm trying to authorize with an external Identity Provider with OpenId-connect. This is the configuration which I've tried: ...
Flu's user avatar
  • 21
0 votes
1 answer
516 views

I apply this line in Startup.cs in asp.net Core 6.0. services.AddDefaultIdentity<IdentityUser>(options => { Severity Code Description Project File ...
Asad Hunjra's user avatar
1 vote
1 answer
325 views

I am using the ASP.NET Core Identity library in Blazor server side version 8. The library provides a page for a user to delete themselves from the system. When they are deleted - it does not delete ...
David Thielen's user avatar
3 votes
3 answers
2k views

I am trying to build a Blazor Server Side app with Microsoft Identity Authentication. I am also using Mudblazor for UI since I don't know Css. The login page needs to be SSR for Identity on Blazor SSR ...
Muheeb's user avatar
  • 91
0 votes
1 answer
890 views

I would like to migrate from my Blazor WASM/ASP .NET Core Web API to the new Blazor .NET 8 Auto. I have now moved all my services from the Web API to the server project. But now the question is how I ...
LUCKYONE's user avatar
0 votes
1 answer
151 views

We're seeing a weird behavior on an existing Blazor Server web app which uses ASP.NET Identity for managing is users (this app wasn't developed by our dev team and we don't have access to the team ...
Luis Abreu's user avatar
  • 4,690
15 votes
4 answers
10k views

I added the new identity endpoint from .NET 8 with .MapIdentityApi(). How can I expand the "/register" and "/login" endpoint to allow the ...
noahkriesi's user avatar
1 vote
0 answers
23 views

I spent quite a bit of time on this. So, I think I'm making a fundamental mistake. It's easy to explain, but I'm not sure how much code I need to provide. It's .NET Core 7, MVC, where the Base ...
John's user avatar
  • 77
0 votes
1 answer
90 views

I'm writing small internal web app (decided to try asp.net for the first time). This app has no public pages, so i need to lock down every page. First, i started to write this code in every single ...
dath.vg's user avatar
  • 104
0 votes
1 answer
402 views

I want to setup my "Access Denied" page I use: Microsoft.AspNetCore.Identity.UI ver. 8.0.0 Microsoft.AspNetCore.Identity.EntityFrameworkCore ver. 8.0.0 I ...
Oleg Sh's user avatar
  • 9,099
0 votes
1 answer
178 views

When the database is created, it is empty and I need to have a model for the user in the AspNetUsers table and a role for example admin in AspNetRoles and also in the AspNetUserRoles model these two ...
Mojtaba's user avatar
1 vote
1 answer
86 views

I am working on creating a one-to-one chat application using ASP.NET Core MVC, Identity, and SignalR. However, I'm encountering an issue where, after selecting a user from a list and sending them a ...
Tara Raine's user avatar
0 votes
1 answer
46 views

I want to track every time a user connects to my app (saving the DateTime and remote IP). This is easy when they have to log in. But, I use the ASP.NET Core Identity Library and it saves the login ...
David Thielen's user avatar
2 votes
3 answers
591 views

I'm using ASP Identity's UserManager to fetch users in particular roles. ...
Feldmarshall's user avatar
0 votes
1 answer
63 views

I'm trying to create an orientation for newly signed in accounts. I have the AspNetUsers table that Identity populates to by default, but I have created ...
PJ Martin's user avatar
0 votes
2 answers
900 views

I am learning ASP.NET Razor Pages. I am trying to learn Authorization process by making a simple web application with Users and Roles that have different levels of access . I could make Users and ...
Aug's user avatar
  • 599
0 votes
0 answers
51 views

I have net7.0 + React + Identity server (template project with user identity) The problem is: After Authorization I redirected back not on a page from which I was redirected to Authorization. Example :...
Tim A's user avatar
  • 43
3 votes
1 answer
2k views

I created a new Blazor project using the new .Net 8 Blazor Web App, and included Automatic Render mode and Individual Account authentication. All the bells and whistles. I'm writing a site where it's ...
Kevon's user avatar
  • 1,388
0 votes
1 answer
34 views

I am working on a .NET 7 project. I wanted to extend the email confirmation token expiration to five days. I used the following implementation: ...
Junaid's user avatar
  • 1,020

1
3 4
5
6 7
181