opserver / Opserver

Stack Exchange's Monitoring System
https://opserver.github.io/Opserver/
MIT License
4.5k stars 827 forks source link

CSS doesn't load properly before first sign in (or when using incognito browsing) #334

Open gdoddsy opened 5 years ago

gdoddsy commented 5 years ago

When you connect for the first time, the css doesn't load for the login page.

This can also be reproduced by opening in incognito mode in chrome.

Before: before

After logging in and logging out again:

after

NickCraver commented 5 years ago

How is your IIS instance configured? It sounds like even the login resources are behind auth at the IIS (not application) level.

gdoddsy commented 5 years ago

Sorry Nick, not sure what you're asking. I had assumed the login page itself worked because the controller has AlsoAllow(Roles.Anonymous). I just tried running in incognito from Visual Studio (IIS Express) and it renders the css, so I agree it probably is my IIS settings.

I just deployed the Opserver project using the Visual Studio publish command (profile is copy files to UNC path) to copy the files to a Windows 2016 server (IIS 10).

The IIS website was a brand new site I added, everything is just default settings. Authentication in Opserver is setup as Active Directory.

NickCraver commented 5 years ago

In IIS there's a section for authentication settings...seems you don't have defaults there, so it's gating everything. Check which authentication options are enabled there and I can help more :)

gdoddsy commented 5 years ago

Nick - Anonymous Authentication and Forms Authentication are both enabled. That was the default that IIS setup.

image

gagandeepp commented 5 years ago

@gdoddsy This is working fine I have tested it on my end on firefox,chrome,edge and IE