按照此过程: https ://docs.microsoft.com/en-us/graph/auth-v2-user
我正在尝试从这个 microsoft 端点获取刷新令牌: https : //login.microsoftonline.com/ {tenantId}/oauth2/v2.0/authorize
使用来自 nuget (asp.net core 2.2) 库的System.Net.Http.HttpClient类的 PostAsync 方法,我可以得到一个带有此错误的响应:“AADSTS90102:'redirect_uri' 值必须是有效的绝对 Uri。 " :

我尝试在 Azure 门户中设置一些重定向 url,包括:
https://automation.legroupeti.com/Configurations/GetRefreshToken/
https://automation.legroupeti.com/Configurations/GetRefreshToken
https://automation.legroupeti.com/
https://automation.legroupeti.com
发布请求如下(使用来自 nuget 的System.Net.Http.HttpClient类的 PostAsync 方法(asp.net core 2.2)):

以下是 Azure 门户中注册的应用程序配置的重定向 url:

我期望端点的有效响应。如何将 redirect_uri 配置为有效?
编辑 1
我修复了 redirect_uri 参数。