Question

I was wondering whether its possible to turn off Single-Sign for my MVC project during the debug mode and turn it on when we publish the website ?

Was it helpful?

Solution

Without Auth you won't be able to exercise many scenarios in your app while development. Assuming from your tag that this is an Azure AD integrated app, you could add a localhost reply URL to the application in Azure AD and enable SSO in dev mode as well as prod mode.

If instead you're sick of typing the credentials again and again, I recommend roboform :).

Hope that helps.

OTHER TIPS

Just need to comment "Deny users" in web.config

<system.web>
<authentication mode="None" />
<authorization>
  <!--<deny users="?" />-->
</authorization>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" requestValidationMode="4.5" />
</system.web>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top