All Questions
Tagged with asp.net-core-mvc asp.net-core-identity
168
questions
0
votes
0
answers
35
views
How to add identity in ASP.NET Core using database-first approach
I am building the project in which I created the database tables in SQL Server and then I scaffolded the database, and the DbContext is created after scaffolding.
Now I want to add identity tables ...
0
votes
1
answer
43
views
How to redirect unauthenticated users to another website?
I am implementing some kind of SSO using cookie sharing in an ASP.NET Core MVC application. I want unauthenticated users in my app website (e.g. app.company.com) get redirected to my SSO website in ...
0
votes
1
answer
84
views
How to remove registration completely in ASP.NET Core 8.0 with Entity Framework Core?
I am building an application in which only admin can add student or teacher. I don't want anyone to register as a student or teacher. I am using ASP.NET Core 8.0 along with Entity Framework Core.
I ...
1
vote
1
answer
69
views
Force Change Password in ASP.NET Core
I am configuring my application to handle the following scenario: when I create a new user as an admin, a temporary (random) password is generated for that user. After the user logs in for the first ...
0
votes
2
answers
65
views
Getting checked for username instead of email attribute in Identity framework in ASP.NET Core MVC where username is a custom field
I am trying to add a custom input field to my register page of Identity frame in ASP.NET Core MVC.
By default, the AspNetUsers table in the database has a column UserName already it is passed Email ...
0
votes
1
answer
111
views
Unable to implement Google Authentication with .Net 8 MVC
I am learning google login feature in .net and implemented it in my sample test application which uses .Net 8 MVC and SQLite DB.
Everything works as expected except the await _userManager....
1
vote
1
answer
93
views
ASP.NET Core identity (role-based authorization)
I'm trying to get used to ASP.NET Core MVC, and I'm having trouble with user roles.
After I successfully registered with the admin role account, but when I debug, the following line of code returns ...
0
votes
1
answer
59
views
How to store authentication method in cookie so that log out can be adapted in ASP.NET Core MVC
We're using ASP.NET Core MVC to write a web app. This app requires multiple forms of authentication. At the moment they are username/password and Microsoft Entra. But more might be added going forward....
0
votes
1
answer
569
views
ASP.NET Core 8.0 MVC, database-first, C#: trying to add identity with migration
I have a DbContext named context1 to which I added a dependency of IdentityDbContext. I also added the necessary NuGet package for entity Identity in the data access layer project.
After scaffolding ...
0
votes
0
answers
47
views
DbUpdateConcurrencyException in ASP.NET Core 8 MVC web app
In my ASP.NET Core 8.0 MVC web app, this is the DbContext in which I have overridden SaveChangesAsync() to assign a new cart to any new added user:
using Egost.Areas.Identity.Data;
using Egost.Models;
...
-1
votes
1
answer
39
views
InvalidOperationException in ASP.NET Core MVC using Entity Framework Core and ASP.NET Core Identity
I am creating an ASP.NET Core MVC project, using Entity Framework Core and ASP.NET Core Identity. After applying all changes to my edit (using CRUD) I get this error message on the following line:
var ...
0
votes
1
answer
157
views
.NET Core 8, how can I add properties to user account that contains multiple values?
I'm slowly learning .NET Core 8, and I'm using Identity with individual user accounts. I've recently learned how to add custom properties to the user account such as FirstName and LastName.
I would ...
0
votes
0
answers
39
views
Problem sending HTTP post request from VUE to ASP.NET Core MVC project
In the vue project, I have a LoginView.vue subpage in the views folder, in which I would like to link to an ASP.NET Core MVC project in which I use the ASP.NET Core Identity for the login/user ...
0
votes
1
answer
52
views
Problem with identity scaffolding in ASP.NET
I am trying to implement identity auth to my project but it's not creating an applicationdb class like it used to. I am new to coding so I am sorry if it looks dumb
Zenter image description here
I was ...
0
votes
0
answers
94
views
How to use modal bootstrap in identity razor pages in ASP.NET Core
I want to call the registration or login of individual Microsoft identity on the main page of my site using bootstrap modal. Everything goes well until the validations are applied and it is ...