Azure AD应用程序未出现在Azure Web应用程序的现有AD App列表中

问题描述:

我刚刚经历了一个演练,在其中我创建了一个Azure AD应用程序以将其用作Azure Web应用程序中的授权/身份验证.

I was just going through some walkthrough where I created an Azure AD App to use it as an authorization/authentication in my Azure web application.

现在,当我为我的Azure网站(应用程序服务)选择现有的AD应用程序时,它不会出现在我的Azure AD应用程序列表中.

添加现有AD应用程序的路径为应用程序服务> MyAzureApp>身份验证/授权> Auzre Active Directory> Express>选择现有AD应用程序"

The path to add existing AD app is "App Services > MyAzureApp > Authentication/Authorization > Auzre Active Directory > Express > Select existing AD App"

我为Azure AD应用程序使用了以下设置:

I have used following settings for my Azure AD app:

登录URL:
https://login.windows.net

回复网址:
https://msmanaged-na.consent.azure-apim.net/redirect

所需的权限:
Azure服务管理API>以组织用户身份访问Azure服务管理

Required permissions:
Azure Service Management API > Access Azure Service Management as organization users

键:
添加了一个密钥并将其到期日期设置为1年

Keys:
Added a key and set it's expiration date to 1 year

请帮助.

更新(@dstrockis):
我将其粘贴到浏览器中 https://login.microsoftonline.com/(tenantname) ).onmicrosoft.com/oauth2/authorize?client_id =(API Acces-Keys-GeneratedKey)=& redirect_uri =(

Update (@dstrockis):
I pasted this in the browser https://login.microsoftonline.com/(tenantname).onmicrosoft.com/oauth2/authorize?client_id=(API Acces-Keys-GeneratedKey)=&redirect_uri=(https://azuresitename.azurewebsites.net/.auth/login/aad/callback)&response_mode=query&response_type=code+id_token&scope=openid&nonce=12345

我有一个不好的要求.见下图

And I got a bad request. See image below

如果要为应用程序配置身份验证,请遵循

If you want to configure authentication for your application, please follow the Manual approach mentioned here. I have done this to my App service and its working fine.