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
-
37
votes2
answers9287
viewsExample of ASP.NET Identity using SQL Server
I still only use the FormsAuthentication but I searched and did not find an example, even if minimal, in portuguese to talk about ASP.NET Identity for MVC. I’m using ASP.NET MVC 5 and…
-
19
votes1
answer6255
viewsAsp.Net Identity, how to use only Roles or Claims?
Returning to the same subject: ASP.NET Identity with Entityframework. Regardless of the size or planning of my project, if I need to use only the part of Roles or only the part of Claims, Is that…
-
11
votes2
answers483
viewsASP.NET Identity and Windows Identity Foundation (WIF)?
Once again talking about ASP.NET Identity. There is another theme within this same subject that I believe is of great importance to the community (mainly to me, the main interested). This is the…
-
10
votes1
answer1708
viewsASP.NET Identity and Claims
Still on ASP.NET Identity, following another question I asked about this (Example of ASP.NET Identity using SQL Server), an interesting topic within the same subject would be regarding Claims. What…
-
9
votes4
answers1270
viewsHow to notify Web Api user with Signalr?
Upon receiving a post in an application Web Api need to notify a particular customer that a new record has been entered. This user will see this notification in a client application(javascript)…
-
8
votes2
answers732
viewsHow to structure a solution by separating Webapi from Webui using ASP.NET Identity?
How should be organized a solution that will have at least three projects, being them: Class Library as infrastructure Web Application as Web Api Web Application MVC for Webui (user interface) Where…
-
7
votes2
answers415
viewsFluent API with ASP.NET Identity
In accordance with this tutorial, I transported Identity in a class library to encapsulate the system’s business rule. However, the entire system is using Fluent API to map the entities and Identity…
-
7
votes1
answer1024
viewsQuery user data logged in Windows Authentication
In my application I use the authentication mode="Windows" as a form of authentication. This way, I can know the user name, referring to the field in AD and the domain of the same using…
-
7
votes1
answer605
viewsHow to login without using the Identity standard?
An update on Api of Facebook made the default login form of Identity stop working. The way I’m doing that stopped working is like this: public void ConfigureAuth(IAppBuilder app) {…
asp.net-mvc asp.net-mvc-5 api facebook asp.net-identityasked 7 years, 7 months ago Renan Carlos 1,594 -
6
votes1
answer7747
viewsHow to resolve the medium trust issue in Asp.net
I’m developing a website on Asp.Net MVC5. When posting the site on Locaweb and trying to log in with my user I received the message: Attempt by security transparent method…
c# asp.net-mvc asp.net asp.net-mvc-5 asp.net-identityasked 10 years, 5 months ago Renatto Machado 715 -
6
votes1
answer406
viewsAuthorization in Asp.Net MVC
I’ll try to be clear. In most examples of ASP.NET MVC authentication and access authorization, I see that authorization control is usually done on Controller, with the decoration of the class itself…
-
6
votes2
answers1675
viewsTranslating Identity in English
I’m using the Identity on my application MVC 5.2.3 Microsoft.AspNet.Identity.Core 2.2.1 also installed the translation package of the same Microsoft.AspNet.Identity.Core.pt-br 2.2.1…
-
5
votes1
answer482
viewsASP.NET Identity and Web API - Problem to register new user
I have a Web API project and I’m using Identity to manage user accounts, my controller is like this: public async Task<IHttpActionResult> Register([FromBody]RegisterDto model) { if…
-
5
votes4
answers5763
viewsCapture Real User IP
How do I capture the actual Public IP/IP of the user accessing the application? The IP address of the computer I can capture normally, but I want to know the public IP address of this client.
asp.net-mvc asp.net asp.net-mvc-5 asp.net-mvc-4 asp.net-identityasked 9 years, 2 months ago Leomar de Souza 1,074 -
5
votes1
answer83
viewsAllow Multiple Users per Browser
For example, the Google allows you to maintain n accounts of Google wrinkled in your browser. In the case of Google, it creates a call control variable authuser who receives a inteiro, it passes…
-
5
votes1
answer941
viewsJWT authentication with role Claims in ASP.NET Core Identity
SOLVED - Authorize with roles With the help of this link: https://stackoverflow.com/a/47025009/10647645 And a reply in the post with the final files with the resolution UNSOLVED - Identityserver,…
-
4
votes1
answer1289
viewsCustomizing Asp.net Identity - Multiple classes as User in Identity
We know that our user on Asp.net Identity is the class named after ApplicationUser I would like to create other classes that inherit from her Why? Why, say I have the Customer, Seller, User class. I…
-
4
votes1
answer275
viewsHow 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, it is interesting to put information that does not belong directly to…
-
4
votes1
answer1435
viewsWhat encryption is used by Asp.net Identity?
When we create a user using Asp.net Identity, it generates a Hash, even there is a column in the database named Passwordhash My question is, what kind of Hash is generated ? What encryption does…
-
4
votes2
answers1043
viewsASP.NET Identity and mapping Many to Many (Fluent API)
I recently created a Solution with the DDD architecture, putting ASP.NET Identity in a transverse layer (CrossCutting), I saw that many people use Identity this way and decided to try it. However, I…
-
4
votes1
answer502
viewsAuthenticate user efficiently and quickly (without setbacks, Identity x Manual)
I need to create a system amusing using a validation (user, password). I have experience with Webform, I started already studied a little MVC but still don’t feel safe to create a complete…
-
4
votes1
answer1079
viewsASP.NET MVC permissions system
A long time ago I developed a system, in ASP.NET MVC, where I used the package Mvcsitemapprovider, based on it I made some modifications in Authorizeattribute to perform the verification of user…
-
4
votes1
answer100
viewsAspnet MVC database first or code first
I have an Aspnet MVC 5 project in which I will use Owin and Identity, I needed to customize Identity (attributes and relations) to meet my needs, but I already have all the tables of the database…
-
4
votes2
answers123
viewsProblem creating user class (Identityuser) relationship using Identityframework
When I create any relationship with my user class: namespace Modelo.Cadastro { public class Usuario : IdentityUser { [StringLength(250, ErrorMessage = "O nome de usuário deve conter no mínimo 3…
c# asp.net-mvc entity-framework asp.net-identityasked 8 years, 3 months ago Luiz Henrique da Fonseca 41 -
4
votes2
answers1274
viewsHow to redirect user to page after login?
I am developing a web application, using Asp.Net MVC 5 com Identity and I’m using Roles to carry out the authorisation. I’m trying to do that depending on the Role that the user has, it is directed…
-
4
votes1
answer691
viewsHow to recover logged in user name and display in View
I’m trying to develop a page, where after the user login, it is redirected to an index, where I would like to display the user name. I’m using Identity default of ASP.NET MVC. So I thought I’d put…
-
4
votes1
answer424
viewsTwo classes mapping the same table with the Entity Framework
I’m trying to do the entity map two classes to the same table this is possible? Setting: Man identity this decoupled (Eduardo Pires' Master) from my domain and the presentation layer in the domain…
-
4
votes2
answers2552
viewsClaims Identity MVC
I’m having difficulty implementing Claims to make user authorizations in my project, I’ve read a lot but I can’t execute it. I’m using in the project the Nhibernate.AspNet.Identity may be that for…
c# asp.net-mvc asp.net-mvc-5 asp.net-identity fluent-nhibernateasked 7 years, 4 months ago Eluander J. F. Lopes 400 -
4
votes1
answer823
viewsWhat 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 must change Whenever a user is persisted to the store. Translating would be something…
-
3
votes1
answer981
viewsYou can pass the roles without using [Authorize(Roles = "Role name")]
My system has dynamic roles("groups"), the user adding and putting users in. Also arrow that if it can insert, edit, delete, etc... With the use of Asp.net Identity Roles, he can do this…
-
3
votes1
answer1161
viewsPermission to create a database denied by the master database
I am trying to migrate the database created automatically by Identity to control user authentication and this error appears: CREATE DATABASE permission denied in database 'master'. My string…
asp.net-mvc sql-server entity-framework asp.net-identityasked 10 years, 1 month ago Sydinho Franco 103 -
3
votes1
answer801
viewsHow to use multiple classes as User in Identity - Asp.Net Identity
I want to use 2 classes as User in Identity and could not see this change in code. Let’s assume that I will use the default class "Applicationuser" that generates an "Aspnetusers" table and I want…
-
3
votes2
answers149
viewsHow to resolve error with OWIN?
Well friends, I created an Asp.Net MVC web project No Authentication, but now I’m in need of authentication. I’m following some tutorials like that to put authentication from scratch, but after…
-
3
votes1
answer238
viewsPerformance in string filter queries vs foreign key
I’m working on a project Asp.Net MVC 5 using code first and all entities have a property called UserId of the kind string. When I will make queries filtering by a certain user(Asp.Net Identity) I do…
-
3
votes1
answer390
viewsEnter 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 the user’s Claims that are from other tables and classes. Considering the method generated by the ASP.NET MVC template with Identity in the class…
-
3
votes1
answer700
viewsChange table column names created by Asp.Net Identity
My doubt is simple, but I am not able to solve it. It is possible to change the table columns name Aspnetusers that Identity creates in the database? Another question is, how to add new fields in…
-
3
votes1
answer997
viewsAdd Authentication to Asp.net Core project
I created an Asp.Net Core MVC project without authentication. With the project already underway, I need to add the authentication part and I wanted to be able to automatically generate all the files…
-
3
votes1
answer492
viewsCreating Models that derive Identityuser or use the Aspnetusers table
I am developing management software for my gym. I have Students, Teachers and system users. I installed the Identity. I created a model calling for Aluno who inherits from the IdentityUser public…
c# asp.net-mvc entity-framework modeling asp.net-identityasked 8 years, 2 months ago Dorathoto 7,426 -
3
votes4
answers1437
viewsGet user logged in to Asp.Net Core 2.0
How do I get the User who is logged in to the class ? I’m trying this way: public class Teste { private readonly UserManager<Usuario> _userManager; public Teste(UserManager<Usuario>…
-
3
votes3
answers948
viewsLogout com Identity
I am trying to use the logoff function offered by default in Identity: // POST: /Account/LogOff [HttpPost] [ValidateAntiForgeryToken] public ActionResult LogOff() {…
-
3
votes2
answers234
viewsHow can I get the Insert in log with logged in user ? Identity - Asp.net core 2.0
I need to get the logged-in user to log in, thus including which user included in the table, made changes, and delete. I’m learning the language, and I still have many doubts. This is my…
asp.net-mvc entity-framework asp.net-core asp.net-identityasked 6 years, 4 months ago Mariana 2,512 -
2
votes1
answer774
viewsHow to check if my user is online Asp.net Identity?
I want to block so he can’t use the same login on multiple machines. So I need to know if he’s online, how do I do it on Asp.net identitty?
-
2
votes1
answer475
viewsASP.NET Identity customize on its own basis
I already have my base ready with the login table, and I didn’t want to change it, so I wonder if it has how to customize it with the tables I already have! and how to do this! Below the mapping of…
-
2
votes1
answer285
viewsUsing 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 get into the application this way: var result = await SignInManager.PasswordSignInAsync(model.Email, model.Password,…
-
2
votes1
answer1474
viewsLogin with Identity no MVC 5
I’m using MVC 5 and Identity for Login. I have a User class and want to log in with it, using the properties of this class for example the Record(User) property instead of the…
-
2
votes1
answer322
viewsAccess to DAL data with ASP.Net MVC Identity and Owin
Today my solution has a MVC 5 Web application project and a DAL Library (Data Access Layer) with EF Databasefirst. I want to create a layer with MVC Identity + Owin, however I would like the data…
-
2
votes1
answer187
viewsGlobal Filter on MVC 5 not working
Hello. I am following the tutorial below with the intention of better understanding the authentication process of . net Identity with OWIN.…
-
2
votes1
answer94
viewsHow to register a default user at the beginning of the application?
In an ASP.Net MVC application I need to have a default user record and for that I am thinking of adding it on startup of the application. In the archive Global.asax I did the following: public class…
-
2
votes1
answer187
viewsHow to create an Nxn relationship in the Identityrole class with a class created by me?
I have an automatic mapping of Controllers and its Actions running on application startup (file Global.asax). I use this to give permission to the user Controller x Action if he owns that…
-
2
votes1
answer735
viewsRegularexpression only letters in the Model
Using the following Regularexpression in the Model: [RegularExpression(@"^\d+$")] public int ano_da_configuracao { get; set; } I get the following result: I tried as follows to accept only letters:…