unable to set sign on url and app Id url

末鹿安然 提交于 2019-12-25 16:45:49

问题


I have created an app using apps.dev.microsoft.com . This app shows up in my Azure AD but when I am trying to set the value of the sign on url and the app id url from manage.windowsazure.com and clicking on the save button the save fails with error message:

This request has a value that is not valid.

I am putting "http://localhost/crm" as the value for APP ID URI and "http://localhost/crm" as value for SIGN-ON URL. Where am I going wrong ?


回答1:


At present, the Azure AD v2.0 apps are managed separately from Azure portals. If you also want to manage these apps through Azure portal, you can submit the feedback from here.

Based on the description, it seems that you want to protect the web API using the Azure AD V2.0 app. To achieve the goal we can acquire the token using the application Id instead of app id Uri.

And here are two code sample for call the web API which protect by Azure AD V2.0 app from native app and web app.

Add sign-in to a Windows Desktop app

Calling a web API from a .NET web app



来源:https://stackoverflow.com/questions/41673901/unable-to-set-sign-on-url-and-app-id-url

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!