简体   繁体   English

我可以使用服务主体使用基于角色的访问控制来对不在Azure中托管的应用程序进行身份验证吗?

[英]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.

相关问题 如何创建基于Azure角色的访问控制规则,以授权用户调用天蓝色函数的能力? - How can I create an Azure Role-Based Access Control rule to authorize a user the ability to invoke an azure function? 如果使用 Azure 基于角色的访问控制,则无法在 Azure Key Vault 中创建机密 - Unable to create secrets in Azure Key Vault if using Azure role-based access control Azure 基于角色的访问控制用户找不到资源 - Azure role-based access control user cannot find resource 如何使用应用程序 ID(服务主体)的令牌向 Azure Devops 进行身份验证? - How to authenticate to Azure Devops by using token of an Application ID(service principal)? 如何使用服务主体和 Python SDK 对 Azure 进行身份验证? - How do I authenticate to Azure using a Service Principal and the Python SDK? 如何监视基于Azure角色的缓存使用了多少缓存内存 - How can I monitor how much cache memory is used with Azure role-based caching 如何使用基于证书的服务主体对 azure 容器注册表进行身份验证 - How to authenticate with azure container registry using cert-based service principal Azure App 服务上托管的 Node.js 应用程序需要使用 MSI 对 Azure App Config 进行身份验证 - Node.js application hosted on Azure App service need to use MSI to authenticate to Azure App Config 在 Azure 中存储服务主体凭据以使用 Python 对 Key Vault 进行身份验证 - Storing Service Principal Credentials in Azure to Authenticate Key Vault using Python 是否可以通过Java Azure SDK使用服务主体向CosmosDB进行身份验证? - Is it possible to authenticate to CosmosDB using a service principal with the Java Azure SDK?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM