简体   繁体   English

是否需要通过https://apps.dev.microsoft.com注册新应用?

[英]Is registering a new app through https://apps.dev.microsoft.com necessary?

do I have to register a new app with my MS Account via https://apps.dev.microsoft.com 我必须通过https://apps.dev.microsoft.com用我的MS帐户注册一个新应用程序

- or - - 要么 -

can I add simply a new application to my Azure Active Directory? 可以仅将一个新应用程序添加到我的Azure Active Directory中吗?

I'd like to use the OAuth2 Implicit flow to use Single Sign On with Microsoft Graph . 我想使用OAuth2隐式流程将“单点登录”与Microsoft Graph结合使用 I have created a new application via the Azure Portal in our Active Directory, enabled implicit flow "oauth2AllowImplicitFlow": true, in the manifest and enabled multi-tenant environment . 我已经通过Active Directory中的Azure门户创建了一个新应用程序 "oauth2AllowImplicitFlow": true,并在清单中启用了隐式流 "oauth2AllowImplicitFlow": true,启用了多租户环境 The goal is to enable Single Sign On for Personal and Organizational accounts, essentially everyone with an MS account. 目标是为个人和组织帐户(基本上是每个拥有MS帐户的人)启用单一登录。 To authenticate and request new tokens I am using the common endpoint: 为了验证和请求新令牌,我使用了公共端点:

public const string AuthorizationEndPoint = "https://login.microsoftonline.com/common/oauth2/v2.0/authorize";

public const string TokenEndpoint = "https://login.microsoftonline.com/common/oauth2/v2.0/token";

However I receive following error message: 但是,我收到以下错误消息:

https://login.live.com/err.srf?lc=1033#error=unauthorized_client&error_description=The+client+does+not+exist.+If+you+are+the+application+developer%2c+configure+a+new+application+through+the+application+management+site+at+https://apps.dev.microsoft.com/.&state=ABC...EFG https://login.live.com/err.srf?lc=1033#error=unauthorized_client&error_description=该+客户端+不存在+不存在+如果+您+是+该+应用程序+开发人员%2c +配置+ a通过+ https://apps.dev.microsoft.com/++++++++++++++++++++++

In the Azure Portal I do see the failed sign-ins with following message. 在Azure门户中,我确实看到带有以下消息的登录失败。

FAILURE REASON The application named X was not found in the tenant named Y. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have sent your authentication request to the wrong tenant.

If the app registration credentials are being used, I can successfully authenticate. 如果正在使用应用程序注册凭据,则可以成功进行身份验证。 I'd prefer to have everything to be administrated and maintained through the Azure Portal. 我希望所有内容都可以通过Azure门户进行管理和维护。

Short Answer 简短答案

Yes, as you're using v2.0 endpoints you have to register your app on the App Registration Portal . 是的,当您使用v2.0端点时,必须在App Registration Portal上注册您的应用程序

Long Answer 长答案

The answer depends on what type of endpoint you're trying to use and thus which accounts you want to support. 答案取决于您要使用的端点类型,以及要支持的帐户。 Apps registered in the Azure Portal are v1.0 apps, whereas apps registered in the App Registration Portal are v2.0 apps. Azure门户中注册的应用是v1.0应用,而在应用注册门户中注册的应用是v2.0应用。

Here's a great doc that compares the two endpoints. 是比较两个端点的出色文档。 tl;dr below. tl; dr以下。

v1.0: Supports sign in with Azure AD accounts. v1.0:支持使用Azure AD帐户登录。 Works with ADAL libraries. 与ADAL库一起使用。 Can call the Microsoft Graph, other Microsoft resources, your own web API (w/ Access or ID tokens), and has generally supports more scenarios. 可以调用Microsoft Graph,其他Microsoft资源,您自己的Web API(带有Access或ID令牌),并且通常支持更多方案。

Docs Here Docs Here

v2.0: Supports sign in with Azure AD & Microsoft Accounts (outlook, hotmail, etc.). v2.0:支持使用Azure AD和Microsoft帐户(outlook,hotmail等)登录。 Works with MSAL & most 3rd party oAuth/OIDC libraries. 与MSAL和大多数第三方oAuth / OIDC库一起使用。 Can call the Microsoft Graph, and your own web API with ID tokens. 可以使用ID令牌调用Microsoft Graph和您自己的Web API。 More scenarios actively being added. 积极添加了更多方案。

Docs Here Docs Here

If you want to sign in users with both Azure AD and Microsoft Personal Accounts, you need to register an application at https://apps.dev.microsoft.com/ . 如果要使用Azure AD和Microsoft个人帐户登录用户,则需要在https://apps.dev.microsoft.com/上注册应用程序。

The applications created in this new developer portal are V2 applications, which natively support both types of user accounts. 在这个新的开发人员门户中创建的应用程序是V2应用程序,其本身支持两种类型的用户帐户。 Learn more about the V2 app model here . 在此处了解有关V2应用程序模型的更多信息。 As of today, the apps created in the Azure Portal will not be able to do this, and will only work for Azure AD accounts. 从今天开始,在Azure门户中创建的应用将无法执行此操作,并且仅适用于Azure AD帐户。

Today, applications created in the App Registration Portal cannot be managed in the Azure Portal, but it is good feedback that you want to manage all your apps in a single spot. 如今,无法在Azure门户中管理在“应用程序注册门户”中创建的应用程序,但是很好的反馈是您希望在一个位置上管理所有应用程序。

Try following our guided walkthroughs which should help you get an app up and running from start to finish: 尝试遵循我们的指导性演练,这将帮助您从头到尾启动并运行应用程序:

https://docs.microsoft.com/en-us/azure/active-directory/develop/guidedsetups/active-directory-windesktop https://docs.microsoft.com/zh-cn/azure/active-directory/develop/guidedsetups/active-directory-windesktop

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么默认情况下为何默认情况下允许“允许隐式流程”选项已在https://apps.dev.microsoft.com上签入应用程序注册 - Why Allow Implicit Flow option by default checked in app registration at https://apps.dev.microsoft.com 应用程序在AAD和apps.dev.microsoft.com中注册 - App registers in AAD and apps.dev.microsoft.com 在https://dev.botframework.com/上注册Azure Bot - Registering an Azure Bot on https://dev.botframework.com/ Azure 地图模糊搜索 API (https://atlas.microsoft.com/search/fuzzy/json?) 适用于 Postman 但在逻辑应用程序上失败 - Azure Maps Fuzzy Search API (https://atlas.microsoft.com/search/fuzzy/json?) works on Postman but fails on Logic Apps 是否可以获取资源或范围为https://graph.microsoft.com/的Azure AD的仅应用程序令牌? - Is it possible to get app only token for Azure AD where the resource or scope is https://graph.microsoft.com/? 如何阻止Outlook.com(Microsoft帐户)通过我的Azure AD应用程序登录 - How to block Outlook.com (Microsoft accounts) to login through my Azure AD App 为我的应用获取访问令牌时出现“范围 https://graph.microsoft.com/Calendars.Read 无效”错误 - "The scope https://graph.microsoft.com/Calendars.Read is not valid" error while getting access token for my app 无需注册应用即可进行Microsoft-Graph API调用 - Make Microsoft-Graph API calls without registering the app 将应用程序上传到 Azure 广告而不注册新应用程序 - Upload App to Azure Ad without registering new app Microsoft Graph 安全 API - https://graph.microsoft.com/beta/security/tiIndicators 的问题 - Microsoft Graph Security API - Issue with https://graph.microsoft.com/beta/security/tiIndicators
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM