Quantcast
Channel: asp.net – Trailmax Tech
Browsing all 13 articles
Browse latest View live

ASP.NET Identity and CryptographicException when running your site on...

Last week I was updating one of applications I work on to ASP.NET Identity. For a specific reasons I could not deploy to Azure for a while. But I did run all the tests locally and everything worked...

View Article


Rename Authentication Cookie Name of Asp.Net Identity

When I’d like to find out about technologies used on the site, I look on HTTP header, then on cookies. Usually combination of these can give me a pretty detailed information about underlying technology...

View Article


AspNet Identity and Owin. Who is who.

Recently I have found an excellent question on Stackoverflow. The OP asks why does claim added to Idenetity after calling AuthenticationManager.SignIn still persist to the cookie. The sample code was...

View Article

AspNet Identity Cookie Format

I’ve been reached out by one of my readers with a list of questions about AspNet Identity. First I thought the questions will be easy and I’ll wing them, but turned out that every single question in...

View Article

CookieAuthenticationProvider and user session invalidation on change of...

Another question I’ve been asked about Identity. Part of Startup class for Owin can be this: public void ConfigureAuth(IAppBuilder app) { app.UseCookieAuthentication(new CookieAuthenticationOptions {...

View Article


OwinContext and why you can have many of them

One other reader did send yet another interesting question. The conversation started about AspNet Identity, but the question is actually about Owin and how it works. See this bit of code from...

View Article

AspNet Identity and IoC Container Registration

Warning: If you have no idea what Dependency Injection is or you don’t know why you need this, don’t waste your time on this article. This approach is not recommended for cases when you don’t need a...

View Article

Sending Emails in Asp.Net Identity using Dependency Injection, Sendgrid and...

Part 1: AspNet Identity and IoC Container Registration Sounds like I’m making a series of articles about ASP.Net Identity and how to use it with Depenency Injection. Part 1 have seen a lot of hits from...

View Article


Can’t find the valid AspnetCompilerPath

A note to myself, next time I try to do view compilation in msbulid and see exception Can’t find the valid AspnetCompilerPath I should either install VS2013 on my build server. Or choose a different...

View Article


Prevent Multiple Logins in Asp.Net Identity

I have seen a fair amount of questions on Stackoverflow asking how to prevent users sharing their password. Previously with MembershipProvider framework it was not a simple task. People went into all...

View Article

Using OWIN and Active Directory to authenticate users in ASP.Net MVC 5...

A while back I had to implement a login system that relied on in-house Active Directory. I did spend some time on figuring out how to work this in the nicest possible ways. One of the approaches I used...

View Article

Log all data in ASP.Net MVC POST Requests

Today for debugging purposes I had to capture all the information submitted by users in a specific controller. Turned out that there was nothing readily implemented or provided by framework that I...

View Article

Active Directory Authentication with OWIN in MVC5. Part 2: Roles and Corrections

My first blog post about AD authentication proven to be very popular – amount of visits to this post in the last month have beaten the previous all-popular post about HTTPS in MVC and even about...

View Article

Browsing all 13 articles
Browse latest View live