Most voted "asp.net-identity" questions
ASP.NET Identity is a user management framework designed to replace ASP.NET Membership and Simple Membership. It includes profile support, Oauth integration, works with Owin, and is included in the templates provided in ASP.NET in Visual Studio 2013.
Learn more…151 questions
Sort by count of
-
2
votes0
answers161
viewsMVC5 separate . Net Identity projects
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 the registration of the user so that he has access to other…
-
2
votes1
answer158
viewsWhat is the correct way to declare the following class structure and get the respective Entityframework behavior?
I have the following class structure: public class Revenda { [InverseProperty("Revenda")] public virtual ICollection<UsuarioRevenda> Usuarios { get; set; } } public class Empresa {…
c# entity-framework pattern-design asp.net-identity entity-framework-6asked 10 years, 1 month ago user8052 -
2
votes0
answers361
viewsDoubt about using Identity in layers
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 switched this project to a company project, but the…
-
2
votes1
answer1754
viewsHow to translate Summary errors Asp . net validation error messages?
I can’t find a file that brings me the error message strings to be translated, the Annotation are well, only those that bring more complex errors, such as Passwords must have at least one Digit…
-
2
votes1
answer97
viewsHow do I not lose the data included in Claims in the revalidations of Cookies?
I have an application that needs to control the access of users who are according to the profile of each one. Empresa, Filial. In the User entity I added the fields referring to these other two…
-
2
votes1
answer266
viewsHow 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, connected to the ASP.NET MVC application, and started programming. Now, when I went to do the login user realized…
-
2
votes1
answer61
viewsWhat is the correct way to legitimize a particular user through Identity with Soap web service?
Initially I tried to add snippets that are related to Identity and I used the Find method with password and login, but I was not successful. using System; using System.Collections.Generic; using…
-
2
votes1
answer135
viewsError while logging in applications
Well, here’s the scenario: Have 2 applications ASP.NET MVC on the same project, which are using a Dominio in common. I’ll call it MVC1 and MVC2 to get better at exemplification. I installed the…
-
2
votes1
answer108
viewsError while logging in using Facebook
Trying to login through facebook I come across the following error: Server Error in Application '/'. Undefined object reference for an object instance. Description: An untreated exception occurred…
-
2
votes1
answer625
viewsGet specific login data through facebook
I am seeking to implement authentication through the facebook. Where I want to get more data audiences. I already have the default authentication set up. But I need something else, because it only…
-
2
votes1
answer891
viewsCan I edit Identity’s Aspnetusers table?
Galera I have a project that has a table of USUARIOS. And now we’re migrating to AspNet.Identity which already has a table but called AspNetUser and with your own fields. And my table USUARIOS have…
-
2
votes1
answer498
viewsIdentityuser Password Change - Aspnet
I have a registration form, which registers the user with email, and the password, but the need arose to change this password, and using the class Identity, she owns the field PasswordHash, and I…
-
2
votes0
answers79
viewsHow to create a custom Authorizeattribute in ASP.NET Core?
I need only a few endpoints in my API to use a different token, because they will be called by a less secure application and I don’t want that other token to have access to every application equal…
-
1
votes1
answer274
viewsUrl.Action outside the Area
I separated the user registration of Asp.net mvc into an area Area Control In a registration action, it sends the confirmation link, it is generated as follows var callbackUrl =…
-
1
votes0
answers108
viewsWhy does my Asp.net mvc tables have pk duplicated user?
I am using Asp.net Identity for authentication and authorization I have my user class: public class Usuario : IdentityUser<int, ApplicationUserLogin,ApplicationUserRole, ApplicationUserClaim>…
-
1
votes1
answer114
viewsUser property, utility and possible Displays
For educational purposes, I was observing the property User class Controller of Asp.Net MVC. I saw a example, very interesting, that a base class for the controllers has been implemented and it owns…
-
1
votes1
answer1316
viewsUse Database table instead of table created when using Individual Identity Authentication
I created an Asp.net MVC application using Identity and left checked the option for Visual Studio to create individual user authentication for me. Turns out I just found out that it creates a . mdf…
-
1
votes2
answers1078
viewsSite works on localhost, but not on Uolhost (permissions?)
I created a standard site (those that already come pre-encoded from visual studio 2013), using Asp.net mvc technology with common authentication by individual accounts. On my localhost the site runs…
-
1
votes2
answers1346
viewsHow to login to WEB project Asp. Net MVC No Authentication?
Well, I created a WEB project and at first I figured I wouldn’t need to add the login system, so I used the template No Authentication (so far so good...). The problem is that now I would like to…
-
1
votes1
answer541
viewsCustomizing 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?…
asp.net-mvc sql-server entity-framework asp.net-identityasked 9 years, 5 months ago Jedaias Rodrigues 6,718 -
1
votes1
answer77
viewsHow to get user type 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 user type (role) in View. I’m using Request.IsAuthenticated to…
asp.net-mvc razor authentication asp.net-identity owinasked 9 years, 5 months ago Jedaias Rodrigues 6,718 -
1
votes2
answers100
viewsUser by Company - Asp.net Identity
I’d like some help with the Identity please. Here the user registration is by Affiliate, I made the customization of Applicationuser fielding Filialid and the field in the table Aspnetusers,…
asp.net-identityasked 9 years, 4 months ago Eduardo Damasceno 11 -
1
votes0
answers27
viewsValidations of the Identity
I’m not able to find where Identity does the validations, I’m having trouble registering a new user. Does anyone know where this is validated ?
-
1
votes0
answers46
viewsUse two User classes in Identity
How to use 2 classes as User in Identity. Ex. The site will have an administration area, and will use the default "Applicationuser" class that generates an "Aspnetusers" table from Identity to log…
-
1
votes1
answer616
viewsModify table Aspnetuserclaims Asp.net Identity
Good morning, I have a little 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…
-
1
votes0
answers69
viewsInclude associated class objects (Applicationuser and Userprofile) - Applicationusermanager and OWIN
I have the following problem: Within the method GrantResourceOwnerCredentials in class OAuthProvider : OAuthAuthorizationServerProvider i am filling in custom properties to be returned with the…
-
1
votes1
answer159
viewsAsp.net Identity: Registry error
I created an Asp.net MVC project with the authentication "Individual User Accounts" and then ran it and went to try to make a record, but the following exception was released on line 155: Linha 154:…
asp.net-identityasked 8 years, 1 month ago Raphael 477 -
1
votes1
answer170
viewsCustomize Identityuserclaim
I’m trying to customize the Identity Claims table, through the Identityuserclaim class. I am using a mapping, through the Entitytypeconfiguration class, but I get the error: A Configuration for type…
-
1
votes1
answer125
viewsRelationship 1:N with RU
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; }…
-
1
votes2
answers63
viewsHow do I get the usermanager property started in my Model
I wanted to form the field Name is automatically filled in by the username you are logged in to. How to include this property in mine Model? public class Condominio { public int CondominioId { get;…
-
1
votes1
answer381
viewsSeparate Context Asp.Net Identity and Application Context
I am creating a repository using the Entity Framework, and the need arose for my entities to communicate with the entity Identityuser of Identity, only that Identity is on a separate layer of my…
-
1
votes1
answer95
viewsLinking Users to Businesses and bringing related records to the User’s company using ASP.NET Identity and Entity Framework
I have records in the database (example, clients), and in all records have an identifier EmpresaID. I’m using identity with Entity framework to authenticate. In the user’s registration I have an…
-
1
votes0
answers240
viewsHow to make access permissions via Authorizeattribute
I’m researching how to implement an access control in my web application. I am using Asp.Net MVC with Identity, the idea is that a certain user can only access certain page. So, in research I found…
-
1
votes1
answer97
viewsJWT and Identity MVC 5
Salve galera, I’m looking for how to use both (JWT with Identity MVC 5), but I can’t find anything about it, I just found it for Identity . Net Core 2, this is not good for me because the…
-
1
votes1
answer164
viewsEntity Framework Contexts Error
I’m using two contexts of the Entity Framework, one for the Identity (which is in the cross Cutting layer) and another for my application (in the Data layer), both point to the same database. Date…
-
1
votes0
answers27
viewsHow to create a user in Asp.Net Identity by setting the Id I want?
When I set the Identityuser Id, for example, to 1000, when saving with Createuser the ID is 0. Observation 1: Table id aspnetusers is not as AUTO_INCREMENT. Observation 2: I changed the Identity…
-
1
votes1
answer395
viewsHow to fill in an Editorfor as the login user name
I have a View, where the user must fill in some fields, and has a last field that I left him disable, and would like that in this field appears the name of the user, but how do I fill? Model: public…
-
1
votes1
answer162
viewsHow to direct each user to their page corresponding to their access profile using Asp.net Identity with roles
I have 3 profile registered in the SQL Server database, they are Master, Admin and User , when log in as you would for each user to be directed to your permission view. by default the route ta…
asp.net authentication asp.net-identity access-controlasked 7 years, 11 months ago Marlon Andrade 11 -
1
votes1
answer68
viewsError when registering user
When I try to create a second user, with ASP.NET MVC, presents me with a mistake: Violation of PRIMARY KEY Constraint 'Pk_dbo.Aspnetusers'. Cannot Insert Duplicate key in Object 'dbo.Aspnetusers'.…
-
1
votes1
answer44
viewsRemove multiple protocol authentication
Hello, I am implementing the MVC with Asp.Net Identity, however, I’m having some problems... Setting: I’m logging in from protocol HTTP, everything enters normally. When I try to access any page…
-
1
votes1
answer139
viewsSend External Login Data to Controller
I need to login through Facebook, I have the login page, which renders a @Html.Partial _Loginexternal Follow the code of both: @using EuVotoAf.Models @model LoginViewModel @{ ViewBag.Title = "Log…
-
1
votes1
answer292
viewsCode First Relationship Migration and Insert?
I’m using UserManager to manage users, I am using migration and I’m having relationship trouble. I happen to have the entity Cliente: public class Cliente : IdentityUser { [NotMapped] public string…
-
1
votes1
answer151
viewsHow to register a user with Identity, with the data already entered?
I have a method that inserts several data from an excel spreadsheet into the database, but there are some data, such as email, password, or concurrencyStamp (set as NULL), so I can’t change users'…
-
1
votes1
answer69
viewsHeritage Mapping Type per Type Asp.Net
In my project, I have a type of heritage that I have mastered by TPT. Analyzing the documents and several examples I can’t identify where I’m going wrong, because the mapping is apparently correct,…
-
1
votes0
answers89
viewsInsert user via Identity ASP.NET
I am developing an application in ASP.NET where I am using Identity. I have some initial functions from a External API that are called when I am validating the Token of this API via controller. The…
-
1
votes1
answer341
viewsAspnet.Identity Creating user with Role
It’s the first time I’m working with Entity and Identity and I’m confused about how to persist my user. Basically I have a table User, with several relationships with the bank and Id int) I have the…
-
1
votes1
answer383
viewsAssociate Identity Applicationuser to my Personal Class
My Asp.Net MVC system uses Identity in its default form, with a few simple customizations. I also have a table of Individuals (which inherits some information from People, but I don’t think this is…
-
1
votes1
answer208
viewsASP.NET Identity - Find user by email and password
I’m using Asp.Net Identity for the first time, along with the Entity Framework, and to create a user, I do the following code: var identityUser = new IdentityUser { UserName =…
-
1
votes1
answer355
viewsHow to enable Migrations to Identity in Asp.net MVC
I need to decouple Identity from my Asp.net core MVC layer and play it for another crosscutting layer of my DDD project. Based on Eduardo Pires' Equinox project, I was able to do it, but I’m finding…
-
1
votes1
answer216
viewsDoubt in Asp.Net Core Identity’s Verifyusertokenasync method
I have a question about Verifyusertokenasync of Asp.Net Core Identity If the user forgets the password, I provide a page to indicate the email and send a url that has the Userid and Token (in the…