[英]Can I use Service Principal to authenticate an application that is not hosted in Azure using role-based access control?
I've created an event hub that I want to call from an app hosted outside of Azure. 我已经创建了一个事件中心,我想从Azure外部托管的应用中调用它。 Can I create a service principal in AAD and use it for authentication of the non-Azure hosted application? 我可以在AAD中创建服务主体并将其用于非Azure托管应用程序的身份验证吗?
Yes, it doesnt matter if the application is hosted in Azure or not, service principal is used to auth, it doesnt check where you are hosting the app. 是的,应用程序是否托管在Azure中都没有关系,服务主体用于身份验证,它不检查您在哪里托管应用程序。
But i dont think you can use service principal to talk to event hub, you will need to use connection string 但是我不认为您可以使用服务主体与事件中心进行对话,您将需要使用连接字符串
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.