使用离线 Azure Active Directory 进行开发
Development with offline Azure Active Directory
我们正在开发一个 HTML5/Angular Web 应用程序,其服务器后端将托管在 MS Azure 中,该应用程序还将通过 Azure Active Directory 进行身份验证。然而,在开发过程中,偶尔会需要离线工作并断开与互联网的连接。发生这种情况时,无法调试和测试应用程序,因为无法访问 Active Directory 进行身份验证。
是否可以在 VirtualBox 中创建包含所有必要 AD 功能的本地虚拟机,然后切换软件以在开发模式下使用该本地 VM,然后在发布模式下使用 Azure AD?
如果是,需要在我的本地服务器 VM 中安装什么 steps/roles 等。
非常感谢
艾伦
不,在没有互联网连接的情况下无法使用 Azure AD 提供的功能。
It is possible to create a local Virtual Machine in VirtualBox with all the necessary AD functionality included and then switch the software to use that local VM in development mode but then Azure AD in release mode?
如果您想使用身份验证,您可能需要在离线工作时设置您自己的身份提供程序服务器。有很多开源库可以帮助设置身份提供者服务器,例如 IndentyServer,
AspNet.Security.OpenIdConnect.Server等
我们正在开发一个 HTML5/Angular Web 应用程序,其服务器后端将托管在 MS Azure 中,该应用程序还将通过 Azure Active Directory 进行身份验证。然而,在开发过程中,偶尔会需要离线工作并断开与互联网的连接。发生这种情况时,无法调试和测试应用程序,因为无法访问 Active Directory 进行身份验证。
是否可以在 VirtualBox 中创建包含所有必要 AD 功能的本地虚拟机,然后切换软件以在开发模式下使用该本地 VM,然后在发布模式下使用 Azure AD?
如果是,需要在我的本地服务器 VM 中安装什么 steps/roles 等。
非常感谢
艾伦
不,在没有互联网连接的情况下无法使用 Azure AD 提供的功能。
It is possible to create a local Virtual Machine in VirtualBox with all the necessary AD functionality included and then switch the software to use that local VM in development mode but then Azure AD in release mode?
如果您想使用身份验证,您可能需要在离线工作时设置您自己的身份提供程序服务器。有很多开源库可以帮助设置身份提供者服务器,例如 IndentyServer, AspNet.Security.OpenIdConnect.Server等