Questions tagged as 'asp.net-identity'

1
answer

How to add new properties to a user using Identity?

How can I create new properties using the UserIdentity that comes by default when creating an MVC 5 application? Also, is it interesting to put information that does not pertain directly to authentication and authorization in the UserIdentity...
asked by 30.06.2014 / 03:10
1
answer

Authenticate user efficiently and quickly (without setbacks, Identity x Manual)

I need to create a fun system that uses a validation (user, password). I have experience with WebForm, I have already studied a bit of MVC but I still do not feel safe to create a complete application with MVC. For the validation I thought...
asked by 18.08.2015 / 22:36
1
answer

Two classes mapping the same table with the Entity Framework

I'm trying to make entity map two classes to the same table this is possible? Scenario: My identity is decoupled (Eduardo Pires' tuto) from my domain and from the presentation layer on the domain layer I have a usuario...
asked by 17.01.2017 / 00:13
2
answers

Claims Identity MVC

I'm having a hard time implementing Claims to perform user authorizations in my project, I've read a lot but can not execute. I'm using the NHibernate.AspNet.Identity for this reason I can not run as in forums and tutorials read, but I'm n...
asked by 06.07.2017 / 05:08
1
answer

Change column names of tables created by Asp.Net Identity

My question is simple, but I can not solve it. Is it possible to change the name of the columns in the AspNetUsers table that Identity creates in the database? Another question is, how to add new fields in this table, and one of them will b...
asked by 21.09.2016 / 06:01
1
answer

Creating Models that derive IdentityUser or use the AspNetUsers table

I am developing management software for my fitness club. I have students, teachers and system users. I installed identity. I created a model named Aluno that inherits from IdentityUser public class Aluno : IdentityUs...
asked by 31.08.2016 / 18:10
1
answer

Enter additional data, from the bank, into the User's Claims. What is the best time or the right way to do it?

I have some extra information that I need to add to user claims that are from other tables and classes. Given the method generated by the ASP.NET MVC template with Identity in class ApplicationUser : public class ApplicationUser : I...
asked by 10.09.2015 / 02:25
1
answer

Customize Asp.net Identity - Multiple classes like User in Identity

We know that our user in asp.net identity is the class with name of ApplicationUser I would like to create other classes that inherit from it Because? Why, let's say I have the Client, Vendor, User class. I want them all to be users of...
asked by 22.05.2014 / 00:00
4
answers

Get logged in to Asp.Net Core 2.0

How do I get the User that is logged into the class? I'm trying this way: public class Teste { private readonly UserManager<Usuario> _userManager; public Teste(UserManager<Usuario> userManager) { _userMan...
asked by 07.06.2018 / 20:11
1
answer

Performance on queries with string filter vs foreign key

I'm working on a Asp.Net MVC 5 project that uses code first and all entities have a property named UserId of type string . When I make queries filtering by a certain user ( Asp.Net Identity ) I do so: string cu...
asked by 20.08.2015 / 19:18