Questions tagged as 'asp.net-identity'

1
answer

ASP.NET Identity customize with own database

I already have my database ready with the login table, and I did not want to change it, so I would like to know if I can customize it with the tables I already have! and how to do it! Below the mapping of the login table in my database: pub...
asked by 12.08.2014 / 21:30
1
answer

Use Identity in an Asp.Net MVC 5 application with Web Api and vice versa

When I create a project Asp.Net MVC with Individual User Accounts I can enter the application in this way: var result = await SignInManager.PasswordSignInAsync(model.Email, model.Password, model.RememberMe, shouldLockout: false);...
asked by 10.09.2014 / 14:53
1
answer

Add Authentication in Asp.net Core project

I created an Asp.Net Core MVC project without authentication. With the project already in progress, I need to add the authentication part and wanted to be able to automatically generate all the files that would be generated if I had placed "I...
asked by 15.02.2017 / 19:27
1
answer

How do I use an existing database in an ASP.NET MVC C # and Identity application?

I need to authenticate users. So I created my database with all my business rules, made the connection to the ASP.NET MVC application, and started programming. Now, when I was doing the part of user I noticed that there are two connection...
asked by 12.10.2016 / 13:55
0
answers

Doubt on how to use Layered Identity

I created an AspNet MVC project with Identity to understand how the Identity part works. I made changes to the code, including roles and claims. I migrated this project to a company project, but the project is all done in layers (MVC, Business,...
asked by 15.07.2015 / 14:25
0
answers

MVC5 projects separated from .Net Identity

I would like to create a solution where I have 3 projects obeying the following structure: The index of my site will be responsible for registering the user so that he has access to the other systems (WebApp1 and WebApp2). But when I run the...
asked by 06.03.2015 / 18:33
1
answer

Error registering user

When I try to create a second user, with ASP.NET MVC , I get an error:    Violation of PRIMARY KEY constraint 'PK_dbo.AspNetUsers'. Can not insert duplicate key in object 'dbo.AspNetUsers'. The duplicate key value is (00000000-0000-0000...
asked by 26.12.2016 / 20:16
1
answer

Remove multiple authentication per protocol

Hello, I'm implementing MVC with Asp.Net Identity , however, I'm having some problems ... Scenario: I'm logging in from the HTTP protocol, everything goes in normally. When I try to access any page with HTTPS protocol, it does not s...
asked by 09.05.2017 / 01:54
2
answers

How do I put the usermanager property to be started in my Model

I would like the form Name to be filled in automatically by the username of the logged in user. How do I include this property in my Model ? public class Condominio { public int CondominioId { get; set; }...
asked by 16.05.2017 / 23:38
1
answer

Relationship 1: N with EF

I have a table of units as below: public class Unity { public int Id {get;set } public string Name{ get; set; } } public class UsersRight { public int Id {get;set } public string Name{ get; set; } public int Value{ get; set; } }...
asked by 24.03.2017 / 16:36