Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

asp.net-identity

Why is Asp.Net Identity IdentityDbContext a Black-Box?

September 2, 2022 by Magenaut

There is a lot of confusion it seems around IdentityDbContext.

Categories ASP.NET, Q&A Tags asp.net, asp.net-identity, asp.net-mvc, c#, entity-framework Leave a comment

Change User Id type to int in ASP.NET Identity in VS2015

September 2, 2022 by Magenaut

By default ASP.NET Identity in VS 2015 uses a string as a primary key for AspNet*** tables. I wanted to to use int-typed id’s instead. After some research it turned out that different typed id’s are supported by the framework out of the box. In the answer below I will show what changes to make to achieve that.

Categories ASP.NET, Q&A Tags asp.net, asp.net-identity, asp.net-mvc Leave a comment

ASP.NET Identity reset password

September 2, 2022 by Magenaut

How can I get the password of a user in the new ASP.NET Identity system? Or how can I reset without knowing the current one (user forgot password)?

Categories ASP.NET, Q&A Tags asp.net, asp.net-identity Leave a comment

Disable User in ASPNET identity 2.0

September 2, 2022 by Magenaut

I am looking for a way to disable the user instead of deleting them from the system, this is to keep the data integrity of the related data. But seems ASPNET identity only offers Delete Acccount.

Categories ASP.NET, Q&A Tags asp.net, asp.net-identity Leave a comment

“Context cannot be used while the model is being created” exception with ASP.NET Identity

September 2, 2022 by Magenaut

Why is this happening when we make a call to the AccountApiController.Register() method?

Categories ASP.NET, Q&A Tags asp.net, asp.net-identity, c#, entity-framework, multithreading Leave a comment

Get UserID of logged-in user in Asp.Net MVC 5

September 1, 2022 by Magenaut

I’m relatively new to ASP.Net MVC and try to use the built-in user login functionality now. I’m able to register an user in the registration view. If I try to login with the created user this also works. I’m redirected to the master page.

Categories ASP.NET, Q&A Tags asp.net, asp.net-identity, asp.net-mvc, asp.net-mvc-5, c# Leave a comment

Configure Unity DI for ASP.NET Identity

September 1, 2022 by Magenaut

I’m using Unity successfully for all regular constructor injection such as repositories etc., but I can’t get it working with the ASP.NET Identity classes. The setup is this:

Categories ASP.NET, Q&A Tags asp.net, asp.net-identity, c#, dependency-injection, unity-container Leave a comment

Get the current user, within an ApiController action, without passing the userID as a parameter

September 1, 2022 by Magenaut

How do we get the current user, within an secure ApiController action, without passing the userName or userId as a parameter?

Categories ASP.NET, Q&A Tags asp.net, asp.net-identity, asp.net-web-api, c# Leave a comment

ASP.NET Identity check user roles is not working

September 1, 2022 by Magenaut

I have an ASP.NET MVC 5 application. I’m using the standard ASP.NET Identity provider for user and role management. It is important that I’m using the IdentityUser from an own repository project, but this seems ok. I can register, login, edit users, and manage their roles.

Categories ASP.NET, Q&A Tags asp.net, asp.net-identity, asp.net-mvc, c# Leave a comment

Why do the ASP.NET Identity interfaces use strings for primary and foreign keys?

September 1, 2022 by Magenaut

I’m looking at the interfaces on the new ASP.NET Identity classes and the database it creates using Entity Framework Code First. I’m using the Visual Studio 2013 RC.

Categories ASP.NET, Q&A Tags asp.net, asp.net-identity Leave a comment
Older posts
Newer posts
← Previous Page1 … Page3 Page4 Page5 … Page14 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress