Skip to content

Magenaut

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

asp.net-identity

How to access User in a service context in web API?

August 29, 2022 by Magenaut

If you are in a controller context, you can access the current authenticated User. Take an article such as Get the current user, within an ApiController action, without passing the userID as a parameter .

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

Why is ASP.NET Identity 2.0 using a GUID/string as user id?

August 29, 2022 by Magenaut

As the title says, I wonder, why ASP.NET Identity 2.0 uses a string with a GUID as primary clustered key for the user table. Does this have any advantages to an integer id? I see only the problem, that a GUID isn’t the best choice for a clustered index.

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

Why does this violate the type constraint?

August 29, 2022 by Magenaut

I’m trying to customise ASP.NET Identity 3 so that it uses integer keys:

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

Alternative to use HttpContext in System.Web for Owin

August 29, 2022 by Magenaut

ASP.NET authentication is now based on OWIN middleware that can be used on any OWIN-based host. ASP.NET Identity does not have any dependency on System.Web.

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

How to add MVC 5 authentication to Unity IoC?

August 29, 2022 by Magenaut

I’m currently working on implementing the new ASP.NET MVC 5 out-of-the box authentication into my application. However when using Unity as my IoC, I cannot use any portion of the AccountController because I’m given the error:

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

What is the use of Normalized Email & UserName in .NET core IdentityUser Model?

August 29, 2022 by Magenaut

When I use IdentityUser model in Asp.Net Identity with EntityFramework, it creates some standard fields in the database. All the fields are self explanatory except for the below two fields.

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

ASP.NET MVC 5 Identity 2 Login redirect based on user role

August 29, 2022 by Magenaut

I am trying to redirect user to page based on their role,

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

Revoke token generated by UserTokenProvider in ASP.NET Identity 2.0

August 29, 2022 by Magenaut

Is there a way to revoke for example an email conformation token generated by an usermanager in ASP NET Identity 2.0?

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

Microsoft ASP.NET Identity – Multiple Users with the same name

August 29, 2022 by Magenaut

I’m trying something quite exotic I believe and I’m facing a few problems, which I hope can be solved with the help of the users here on StackOverflow.

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

Asp.Net Identity and cookie names

August 29, 2022 by Magenaut

We have 2 applications that are both using Asp.Net Identity for security.

Categories ASP.NET, Q&A Tags asp.net, asp.net-identity, cookies Leave a comment
Older posts
Newer posts
← Previous Page1 … Page7 Page8 Page9 … 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