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
-
1
votes1
answer172
viewsConsume the Security of an API for MVC Web Application
I have an API to log (Aspnet Identity) into the WEB MVC application. Access to WEB MVC application(Login Screen). I call the API by passing email and password, which was informed in the WEB MVC…
-
1
votes0
answers128
viewsDisengage Identity and handle Identityuser in the domain - Asp.net Core MVC 2.2
I want to implement Identity on my site, but not the way it comes in the MVC template with auth Individual from . net core 2.2, because I want to handle the Identityuser class on my domain, so that…
c# asp.net-mvc asp.net-core asp.net-identity identityasked 5 years, 2 months ago Márcio Sebastião 769 -
1
votes1
answer24
viewsAzuread and Identity authentication in the same Project
Applying: Built in . NET Core 2.2 Is it possible to have two forms of authentication in a single C# project? I found myself in the following scenario: 1 - Users who are employees of the company use…
-
1
votes1
answer101
viewsHow to persist extended Identity(Authentication) fields. net CORE 5.0
I have a project in ASP.NET MVC CORE 5.0 . What I want to do: Retrieve the information dadAleatorio user logged in, in any controller to insert them in wheres and creates. For example I want to…
asp.net-mvc asp.net-core login asp.net-identity database-firstasked 3 years, 11 months ago Jabrel 49 -
1
votes1
answer72
viewsThe Viewdata item that has the 'Name' key is of the 'System.String' type, but must be of the 'Ienumerable<Selectlistitem> type
Speak, guys, I’m new in the area of ASP.NET and studying Identity I came across a typo error when performing a new user registration. The project was done with the authenticity of the VS. I did the…
-
1
votes0
answers25
viewsConvert a String to Ienumerable<Selectlistitem> in ASP.NET
Speak, guys, I’m new in the area of ASP.NET and studying Identity I came across a typo error when performing a new user registration. The project was done with the authenticity of the VS. I did the…
-
1
votes1
answer40
viewsReturn Iqueryable in the method
I am using Identityframework in my project and need to create a method that returns a Iqueryable Follows below class structure: namespace MeuProjeto.Controllers public class UsuariosController :…
-
1
votes0
answers18
viewsAuthenticate with Identity and/or Azure AD
Today the client application authenticates using Identity (.net core 3.1), however I am trying to authenticate also by Azure AD, adding an extra button on the login page where the user can login to…
-
0
votes2
answers982
viewsHow to redirect to another page when user does not have authorization
I have my Custom AuthorizeAttribute. It works perfectly the way I want, but it always directs the user to /Account/Login, I would like you to redirect to another page that I choose, since it has no…
-
0
votes1
answer1215
views'Object' does not contain a definition for 'Action'
I am using MVC 5 with Identity to login, appeared this error that so far could not find a solution. Error happens in view _ExternalLoginsListPartial.cshtml…
-
0
votes2
answers160
viewsHow to add Scroll in User Registration?
I have an Asp.Net MVC project that uses Individual User Account and I would like to add a category (Role) for him at the time of his arrest. What I have at the moment is: View: @model…
-
0
votes1
answer166
viewsError Identityconfig
I am trying to implement Identity in my project but my Identityconfig is giving several errors. I just started messing with Identity and I’m hitting myself a little. Packages.config <package…
-
0
votes0
answers253
viewsUsing Claims to replace Sessions
I am refactoring an application that I am developing, applying good practices in ASP.NET MVC, there arose a difficulty in understanding Claims and how to apply it to replace the Session use. When I…
c# asp.net-mvc-5 session authentication asp.net-identityasked 9 years, 2 months ago Anderson Souza 376 -
0
votes0
answers117
viewsASP.NET Identity: Authentication Error
I changed the PK of the Identity tables from string to Int, however when logging in Identity does not authenticate, log in normally but do not have access to any of the controllers that requires…
-
0
votes1
answer203
viewsDifferentiate list of items shown in the View using "Individual User Account" Asp.Net MVC 5
I don’t have much practice in programming and am creating a system of registering items like movies, books, games, etc. for a college job. The problem is that I need to use a user manager system so…
-
0
votes0
answers446
viewsThe specified character string is not in the format required for an email address
I’m doing a routine and I’m not succeeding I’m having this mistake and on the web.config I left so <system.net > <mailSettings> <smtp from="[email protected]"> <network…
-
0
votes2
answers1142
viewsHow to Increase Time Timeout webForm
how to increase timeout time, my session is falling around 5 min, it is not in the connection string. Asp.Net Authentication Aspnet Identity <sessionState mode="InProc" timeout="20"/>…
-
0
votes1
answer234
viewsSeparation of Identity Bank from Application
When using Asp.net Identity, a single bank is generated. And it is recommended to leave this bank only for Identity and create another bank for your application, as I read in some articles. So far…
-
0
votes1
answer54
viewsUse Identity with existing database
I am migrating from a system to Asp core, but the system currently has its login logic made in the previous one, my question is the following, is it possible to use only the authorization of…
-
0
votes1
answer78
viewsAsp net Identity
Good evening, it’s a simple question, I don’t even know if this is the right place to ask this (if not and can you tell me where I already thank you) but I want to learn how to use Asp.Net Identity…
-
0
votes2
answers673
viewsHow to redirect if user is unauthorized
I am using in my application, roles and I am trying if, user is not authorized, is redirected to an error page. I’m using ASP.NET MVC com Identity, in research on the Internet and here at…
-
0
votes0
answers57
viewsIdentity ASP.NET Core, error "Cannot create a Dbset for 'Usuario' because this type is not included in the model for the context"
I’m starting to learn Asp.Net Core, and I’m trying a problem regarding a user registration, because when I try to create it returns an internal error with the message "Cannot create a Dbset for…
-
0
votes0
answers10
viewsASP.NET Identity authentication in multiple applications
I currently have the following scenario. Two applications each with their database using Entity and Identity Core 2.2 My goal is to create a user center to unify the user table 'Aspnetusers' so that…
-
0
votes1
answer58
viewsHow to hide parts of a page based on user permissions using Asp.net Identity?
I have a project in mvc and I am using the Asp.net Identity, I have different types of profiles, example Adm / tutoring / master / user and I have access areas for each profile, in addition to the…
-
0
votes1
answer80
viewsHow to recover parameter from a Controller
After the user logs in, two parameters are passed to Controller Home: case SignInStatus.Success: { //recupera as informações do usuario que corresponda ao usuario e password var user = await…
c# asp.net-mvc-5 parameters asp.net-identityasked 7 years, 4 months ago Thomas Erich Pimentel 3,059 -
0
votes1
answer45
viewsVariable error in Identity
Good afternoon guys, I am supporting a project of my company, which is being used the config Identity. in this I added your deleted call variable in my database and gave an update-database and…
-
0
votes1
answer220
viewsGet the value of custom attributes in aspnet-Identity . NET CORE 2.0
I’m using the Identity with aspnet core 2.0 and I needed to add the attribute nuCPF on the table Applicationuser. In the controller I am getting the user data as follows: [Controller:…
-
0
votes1
answer211
viewsHelp to write to USERS and Aspnetusers at once
Help please. I’ve spent my whole day redoing various parts of the system, trying a lot of different solutions but ended up without ideas. I have a solution with several applications. One of these…
-
0
votes0
answers322
viewsError: The Entity types 'Customrole' and 'Aspnetroles' cannot share table 'Aspnetroles'
People created the whole structure Identity to work with INT instead of GUID. Using Database First and included in the database, with a create script, the modified Identity tables (I only changed…
-
0
votes1
answer70
viewsLogoff after editing a User Role
I am working on an Asp.net-mvc project and would like to force the user logoff after editing a role belonging to the user, using Asp.net-Identity public async Task<ActionResult> Edit(string…
-
0
votes0
answers38
viewsNot getting the correct core.net User Id
I’m using ASP.NET CORE 2.0, and I need to get the logged in user id. This is my Account Controller: [Route("[controller]/[action]")] public class AccountController : Controller { private readonly…
-
0
votes0
answers42
viewsAutomatic log out in Asp.Net Core
I’m using Identity in an ASP.NET CORE project, but I’m having problems uploading the project into production. When making a POST it sends my information normally, but when changing page and sending…
-
0
votes1
answer206
viewsUsing Identity with Entity Framework to relate one-to-Many methods to other tables
In my scenario a user has several craft and a vessel has several notes. So I need to relate the user to the vessel so that this user can see these notes. I’m using the MVC 5 project’s default…
-
0
votes1
answer362
viewsHow to customize Asp.Net Core 2.1 login screen
With the following service settings below I can login to Twitter, Hotmail, Facebook. Noting that my project at the time of creation enabled the individual login option services.AddAuthentication()…
-
0
votes0
answers69
viewsAsp.Net Core making unexpected logout
I’m learning to work with Asp.Net Core, using version 2.1. After logging in, the system unexpectedly logs out, I could not find the reason, if it was error, wrong configuration... I’ve looked in…
-
0
votes1
answer54
viewsCustomize ASP.NET Identity
I still only use the FormsAuthentication but I’m looking to migrate to the ASP.NET Identity in MVC. In my current projects, I don’t work with roles of FormsAuthentication, and yes by permission of…
-
0
votes1
answer68
viewsError trying to Edit PK and UK on ASP . NET Core
I would like to know how to manipulate the Unique Keys and Primary Keys with Entity Framework. Whenever I try to edit an attribute and pass the same value it had before, it returns me an error: "The…
asp.net entity-framework asp.net-core asp.net-identity entity-framework-coreasked 5 years, 5 months ago Snyp 13 -
0
votes0
answers30
viewsWhy does the Identity mvc template ultilize async in controllers?
When creating a template ASP NET MVC 5 with Identity for example the Login method uses async not to lock the main thread. I did not understand what is the need to do this being that after the user…
-
0
votes0
answers506
viewsHow to set up IIS on the Windows Authentication server (via Active Directory) of an Aspnet Core C#?
Sirs, I have an application very similar to the visual studio 2019 ready template. There, through the 'Users.Identity.Name', I obtain the AD data of the authenticated user as below: public…
iis asp.net-identity deploy asp-net-core iis-web-deployasked 5 years, 4 months ago Arthur Gresele 1 -
0
votes1
answer116
viewsHow to find the user logged in to the Infra layer? (Using DDD with C# MVC EF)
I’m developing a feature for storing the history of screen record modifications. Example: I have a register of people, in this register of people, at each action performed (Insert, Edit, Delete) I…
-
0
votes0
answers38
viewsWhy is my application logging out after saving a record? - Asp.net MVC and Identity
When I first created my app (Asp.net core MVC) Identity was installed automatically. All login features, user records, among others, were created automatically. When I log in using my email,…
asp.net-mvc asp.net-mvc-5 asp.net-identity identity-serverasked 4 years, 7 months ago Master JR 1,853 -
0
votes1
answer33
viewsHow to create a Controller for the Applicationuser
Good Afternoon, I’m trying to create an administrator area to manage the database accounts, but I’m having difficulties, I have the Applicationuser class and the Loginviewmodel class: public class…
-
0
votes0
answers21
viewsSSO using Identity single login for various applications accessing the same database
Hi, hello, introduction: I have been trying to understand, I believe that the functionality of cookies may be the best alternative to help my need to log into only one web page and redirect to…
asp.net-core asp.net-web-api cookies asp.net-identity thatasked 4 years, 2 months ago Guilherme Ferreira 1 -
0
votes1
answer75
viewsProblem using Identity in API ASP . NET Core
Good afternoon, I’m trying to use Identity in my API, but I have some error that I believe is dependency injection. I made all the necessary configuration, connected with the bank, managed the…
-
0
votes0
answers21
viewsHow to disconnect a user at the end of a given process in ASP.NET Identity C#
Good morning guys, I’m developing a solution where in a certain process of buying in e-commerce the system will automatically login using the data of a default user. The whole process will be…
-
-1
votes1
answer31
viewsRole Default Value in a dropdown
I have in my index users, each user has a Dropdown with the Roles, when Get does not show the value that is by default in Dropdown Controller: public ActionResult IndexGestor(string roles) { //query…
-
-1
votes1
answer447
viewsAsp.net Identity Decrypt
You can decrypt the password generated by Asp.Net Identity?
-
-1
votes1
answer67
viewsClient Identity x Azure AD x ADFS integration
I have a database authentication application using OWIN and Identity. A client requested single Sign on with ADFS on premisse. I did it directly through OWIN, but the client requests a federation…
-
-1
votes1
answer372
viewsUser.Identity.Isauthenticated always returns false
I am implementing stunning and authentication with Identity using the concept of Claims, after I login, I am not able to save the authorization, the login returns 200 ok, but is not authorized…
-
-1
votes1
answer27
viewsHow to do one authentication for two different applications on MVC5?
Hey there, guys. I have two ASP.NET MVC5 applications on the same server on the same site. I’m trying to make one authentication valid for both projects. I have already set a cookie name for both…
asp.net-mvc asp.net asp.net-mvc-5 asp.net-identity identityasked 4 years, 4 months ago Gustavo Borges 19