Questions tagged [asp.net-identity-3]

The third release of the ASP.NET Identity system which was designed to replace the previous ASP.NET Membership and Simple Membership systems. Use this tag if your question deals specifically to ASP.NET Identity 3 features. The [asp.net-identity] tag should be used if your question is not specific to ASP.NET Identity 3.

225 questions
0
votes
1 answer

How do I migrate asp.net 2.2 identity tables to asp.net 3.1 schema?

I started a project with asp.net core 2.2. I developed the database using the "code first" approach. Later, I created a new solution with asp.net 3.1. I generated an initial migration from that existing database. Lastly, I added authentication and…
0
votes
0 answers

How to Configure IdentityUserRole properly in DataContext Class using asp.net mvc core

I was created a IdentityUser table and IdentityRoleTable succefully and I can Insert it in both too. even I was created a IdentityUserRole Tables Succefully too but when I want to assign user to the roles that is previously defined it was…
0
votes
1 answer

Make request from Frontend using Access Token which was issued for the Backend

I have an application with classic client server architecture. ASP.NET Core is in the backend and in the frontend jQuery, Angular or vanilla-js. For authentication I use an OpenID-Connect certified server. (keycloak) So far I can login via the…
0
votes
1 answer

My Custom Authorize Attribute Always Redirects to Un authroized page

I am writing custom authorize attribute for one requirement. As per the requirement, I need to pass all the allowed roles for that particular action method like below. [MyAuthorize("Admin,Reviewer")] public ActionResult…
Ashok kumar
  • 1,593
  • 4
  • 33
  • 68
0
votes
1 answer

Identity server 3 remember me not working when we give "/identity" path

I have done much research and reading on this issue and finally found that the issue is related to the Identity Server url. We have given "/Identity" to path (app.Map("/identity", idsrvApp =>) and the remember me is not working. If we remove it…
Kiran B
  • 683
  • 10
  • 21
0
votes
1 answer

Add application roles as custom claims to Azure AD identities

I have a webapp which supports both form based authentication (using OOTB Asp.net identity framework) and Azure AD based authentication (using OpenID Connect). the authentication works well for both forms based user and Azure AD users. Now the roles…
0
votes
0 answers

IdentityServer4 with ASP.NET MVC Core and .NET Core Identity Serverside

I have a requirement to NOT allow the Web(MVC Core 2) layer to hit the DB and I have not had to separate .net identity into layers before and I was thinking of doing it like this but do not see anything posted with the latest core technology. I was…
0
votes
1 answer

How to delete a user in asp.net core?

I have created a Delete action method and an action button in the view, but i keep getting errors. Could someone take a look at the code and tell me what's wrong? public async Task DeleteUserd(string Id) { //get User…
LisaM
  • 21
  • 1
  • 1
0
votes
0 answers

Good solution with ASP.NET Identity and child tables

I have the following structure: There are several roles (types of users). One of type (named Driver) should have a child table, other - not. My Application user code: public class ApplicationUser : IdentityUser { public async…
0
votes
0 answers

Using IdentityDbContext in a Web API returns: No 'Access-Control-Allow-Origin'

I get this error when calling from Angular client: Failed to load http://localhost:57873/users: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access. The…
Reid
  • 3,170
  • 2
  • 23
  • 37
0
votes
1 answer

Migrations is not detecting added property to ApplicationRole : IdentityRole

I am trying to add a property to the AspNetRoles table in ASP.NET Core Identity. I assumed the process would be the following: Create an ApplicationRole class that implements IdentityRole just like ApplicationUser implements IdentityUser. Add new…
0
votes
2 answers

How to display a user profile property in ASP.NET Identity

In my ASP.NET Core 1.1.1 app with Identity 3.0, I've extended the default ApplicationUser class as follows. In my following Index view I'm displaying the userName on top bar by using @User.Identity.Name. Question: How can I display the user's full…
nam
  • 21,967
  • 37
  • 158
  • 332
0
votes
1 answer

Enabling both Cookie authentication and ASP.NET Identity authentication in an MVC project

I have an MVC site with both MVC controllers and WebApi controllers using cookie authentication. However, I'd like some of the WebApi controllers to authenticate using an Identity 3 server. I checked this answer but the property AuthenticationScheme…
0
votes
1 answer

ASP.NET Identity 3.0 authentication cookie not getting created

I am attempting to add ASP.NET Identity 3.0 single user authentication to the "ASP.NET Core Application Angular template" within Visual Studio 2017. I have created a GitHub repository here: https://github.com/DapperDanH/NutmegStackoverflow There…
DapperDanh
  • 555
  • 2
  • 5
  • 17
0
votes
1 answer

Simple approach to multi-tenancy with Identity Framework. How to?

I'd like to support multi-tenancy in my web api app that uses Identity Framework for authentication. I plan to have a single site and a single database with multiple tenants having multiple users. I'd be happy with prefixing user names with tenant…