AADSTS900144:请求主体必须包含以下参数:使用旧版Developer Portal时,“作用域" [英] AADSTS900144: The request body must contain the following parameter: 'scope' when using legacy Developer Portal

查看:132
本文介绍了AADSTS900144:请求主体必须包含以下参数:使用旧版Developer Portal时,“作用域"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图基于

您可以从

I was trying to implement AAD in my APIM instance based on this article and this article. Unfortunately when it came down to Developer console, right after I picked Authorization code as the Authorization method a popup showed up and showed me the following error:

AADSTS900144: The request body must contain the following parameter: 'scope'.

It failed on https://login.microsoftonline.com/{Directory (tenant) ID }/oauth2/v2.0/authorize?response_type=code&client_id={client id}&redirect_uri=https://{my-apim-instance}/docs/services/{authorization method}/console/oauth2/authorizationcode/callback&state={state}.

Since all of this is part of Azure Portal (at this point the legacy Developer Portal) I do not fill the scope parameter. How can you set that property? Or is the problem somewhere else?

解决方案

Since you are using V2 endpoints, you need to use the scope you created for the backend-app in the Default scope field.

You can find the scope from your webapi application.

这篇关于AADSTS900144:请求主体必须包含以下参数:使用旧版Developer Portal时,“作用域"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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