MVC ASP.NET Identity OWIN Authentication Not Working for IE

Background

We have a MVC App which uses ASP.NET Identity, which uses OWIN.

We test the login authentication using 3 browsers:

  • Google Chrome
  • Firefox
  • IE 11

It works fine for all browsers in our local workstations using IIS Express and localhost.

Problem

However, when we deployed it to a test environment, IE fails to authentication while Chrome and Firefox succeeded.

The test environment is using IIS 8.

Cause

It turns out that IE does not like domain name with underscore and we were using a URL like “dev_myapp.xxxx.com”.  IE fails to cookies.

Solution

We use a different subdomain name without underscore.

Reference:

https://support.microsoft.com/en-us/kb/316112

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s