Questions tagged as 'asp.net-identity'

1
answer

Modify table AspNetUserClaims Asp.net Identity

Good morning, I have a logic problem with identity. I need to create an access screen and would like to use the table claim already made available by it. The big problem is that the table creates a foreign key for the AspNetUsers table, I...
asked by 01.08.2016 / 15:52
1
answer

How to get type of user in view?

I have an Asp.Net MVC project that uses Individual User Account with Owin . Everything is working perfectly, but I would like to get the user type ( role ) in View . Home I'm using Request.IsAuthenticated to know if the use...
asked by 08.06.2015 / 15:19
1
answer

Customize Individual User Accounts

Well, I have an Asp.Net MVC web project that uses Individual User Accounts and I would like to use a specific table in my database and a different class to manage user login. How can I do this?     
asked by 03.06.2015 / 14:35
1
answer

Url.Action outside the Area

I've separated the asp.net mvc user registry in an area Control Area In a registration action, it sends the confirmation link, it is generated as follows var callbackUrl = Url.Action("ConfirmEmail", "Account", new { userId = user.Id, cod...
asked by 04.09.2014 / 21:15
1
answer

User property, utility and possible casts

For educational purposes, I was looking at the User property of the Asp.Net MVC Controller class. I saw a example , very interesting , that a base class for controllers has been implemented and it has the CurrentUser property:...
asked by 25.09.2014 / 15:24
1
answer

How to register a default user at the beginning of the application?

In an ASP.Net MVC application I need to have a standard user registry and for this I am thinking of adding it at application startup. In the Global.asax file I did the following: public class MvcApplication : System.Web.HttpApplicati...
asked by 27.09.2014 / 19:01
1
answer

JWT and Identity MVC 5

Save Galley, I'm looking for how to use both (JWT with Identity MVC 5), but I do not find anything about it, I only found it for Identity .Net Core 2, this is not good for me because the application was already created in MVC 5. Someone Do yo...
asked by 26.09.2018 / 21:02
1
answer

What is the purpose of ConcurrencyStamp and SecurityStamp in ASP.NET Identity?

The summary of both properties in the entity IdentityUser are in English: ConcurrencyStamp: A random value that should change whenever the user is persisted to the store. Translating would be something more or less like this:...
asked by 13.05.2018 / 07:14
1
answer

AspNet.Identity Creating user with Role

It's the first time I'm working with Entity and Identity and I'm confused about how my user persists. Basically I have a User table, with several relationships with the database and the Id int) I have the Identity AspNetUsers table and AspNetRol...
asked by 20.11.2017 / 17:52
1
answer

How to register a user with identity, with the data already inserted?

I have a method that inserts several data from an excel spreadsheet into the database, but there is some data, such as email, password, or concurrencyStamp (set to NULL), so I can not change user data by means of the code. [HttpPost] [...
asked by 22.05.2017 / 19:01