Authentication 在调试期间关闭单点登录

Authentication 在调试期间关闭单点登录,authentication,azure,azure-active-directory,Authentication,Azure,Azure Active Directory,我想知道是否可以在调试模式下关闭MVC项目的单点登录,并在发布网站时打开它 只需在web.config中注释“拒绝用户” <system.web> <authentication mode="None" /> <authorization> <!--<deny users="?" />--> </authorization> <compilation debug="true" targetFramework="4.

我想知道是否可以在调试模式下关闭MVC项目的单点登录,并在发布网站时打开它

只需在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>

如果没有Auth,您将无法在开发过程中在应用程序中执行许多场景。根据您的标记,假设这是一个Azure AD集成应用程序,您可以在Azure AD中向应用程序添加本地主机回复URL,并在开发模式和产品模式下启用SSO

如果您厌倦了一次又一次地输入凭据,我建议您使用roboform:)

希望有帮助