How to disable Identity Server in Sitecore 9 and onwards

I was working on the free version of azure and there I have got only one domain name which I added in Sitecore 9 sites. But we all know what it is very necessary for Sitecore 9 to use the Identity server. Somehow, I was not able to resolve that issue and according to my client, we cannot use another domain. That site, we used only for a demo purpose. I am pretty much sure that this block will help all of the people who want Sitecore available for the public in a few hours.

First step:

I have created VM in azure.

Second step:

After that, I allowed 80 and 443 in both inbound and outbound Networking which will serve all the CSS and JS requests along with Sitecore content request.

Third Step:

I have to find out “Sitecore.Owin.Authentication.Disabler.config.example” from Sitecore application. Normally, you will get it in “{host path}\App_Config\Include\Examples”. You have to enable them and you can change the location if you want as it is in examples. Do the same thing for “Sitecore.Owin.Authentication.IdentityServer.Disabler.config.example”. Both file looks like the below –

  • Owin.Authentication.Disabler.config
  • Owin.Authentication.IdentityServer.Disabler.config

Now, we can stop the identity server if we want.
Happy Sitecore Development.