无需应用注册的 Azure AD 身份验证 [英] Azure AD authentication without app registration

本文介绍了无需应用注册的 Azure AD 身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用托管在我的服务器上的 Web 应用程序访问 Azure 目录和订阅,但我不想在 Active Directory 中注册我的应用程序,因为

I want to access Azure Directories and Subscriptions using my web app hosted on my server but i do not want to register my app in active directory because

  1. 我无权在 Active Directory 中注册我的应用
  2. 我也想对我的 Active Directory 之外的用户进行身份验证.

例如,以下站点可让您对任何 Azure AD 用户进行身份验证.

for example following sites let you authenticate any Azure AD user.

请帮助我从哪里开始.我尝试过 Azure AD 身份验证,但它要求您在 Azure AD 应用程序中注册您的应用程序.

Please help me to where to start. i have tried Azure AD authentication but it asks you to register your app in Azure AD Apps.

推荐答案

一种选择是在 https 注册您的应用程序://apps.dev.microsoft.com.(并使用 v2 端点)

One option is to register your app at https://apps.dev.microsoft.com. (And use the v2 endpoints)

此处的文档:https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-appmodel-v2-overview

您想要制作的是多租户应用程序.可以从任何 Azure AD 租户登录的应用程序.

What you want to make is known as a multi-tenant application. An application to which you can login from any Azure AD tenant.

第一个链接将引导您创建一个融合应用,该应用允许您使用 Microsoft 帐户以及 Azure AD 帐户登录.

The first link leads you to create a converged app which allows you to use Microsoft accounts as well as Azure AD accounts to sign in.

如果您只需要 Azure AD 帐户,您可以创建一个 Azure AD 并将应用程序注册为多租户应用程序.(并使用 v1 端点)

If you only want Azure AD accounts, you could just create an Azure AD and register the app there as a multi-tenant app. (And use the v1 endpoints)

这篇关于无需应用注册的 Azure AD 身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆