[英]PHP - How to authenticate with active directory when server is in cloud
I have a laravel 5.1 app and I have implemented active directory authentication. 我有一个laravel 5.1应用程序,并且已经实现了活动目录身份验证。 This works on localhost when I connect the network cable of the company to my computer.
当我将公司的网络电缆连接到计算机时,这在localhost上有效。 However, the production server is on Microsoft Azure and not on the company server.
但是,生产服务器位于Microsoft Azure上,而不位于公司服务器上。 How can I make the authentication work in such a case?
在这种情况下如何进行身份验证?
To authenticate with on-premises Active Directory in your Azure app , you could : 若要使用Azure应用中的本地Active Directory进行身份验证,可以:
1.Authenticate through Azure Active Directory 1.通过Azure Active Directory进行身份验证
An Azure Active Directory tenant can be directory-synced with an on-premises AD. 可以将Azure Active Directory租户与本地AD进行目录同步。 This approach enables AD users to access your App from the internet and authenticate using their on-premises credentials.
这种方法使AD用户可以从Internet访问您的App并使用其本地凭据进行身份验证。 Azure Active Directory tenant can be synced with your on-premise Active Directory to create a single sign-on experience for workers that are on-premises and remote.
可以将Azure Active Directory租户与本地Active Directory同步,以为本地和远程工作人员创建单点登录体验。
2.Authenticate through an on-premises STS 2.通过本地STS进行身份验证
If you have an on-premises secure token service (STS) like Active Directory Federation Services (AD FS), you can use that to federate authentication for your Azure app/ 如果您拥有本地安全令牌服务(STS)(例如Active Directory联合身份验证服务(AD FS)),则可以使用该令牌联合身份验证Azure应用/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.