简体   繁体   中英

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. Can I create a service principal in AAD and use it for authentication of the non-Azure hosted application?

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.

But i dont think you can use service principal to talk to event hub, you will need to use connection string

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM