小编Nic*_*ick的帖子

如何以编程方式指定 replyUrlsWithType

我想在 Azure AD 中replyUrlsWithType的应用程序清单上以编程方式设置。但是,用于更新清单的 REST API似乎只支持设置 replyUrls 属性,而不能设置 type 属性。是否有支持以replyUrlsWithType编程方式设置的方法?

我正在与之合作的团队使用 Fiddler 来查看 Azure 门户如何设置类型属性,并修改了以下内容以使其工作,但我们正在寻找一种受支持的方法(如果有的话):

$UpdateAppResponse = Invoke-WebRequest -Uri "https://graph.windows.net/myorganization/applications/$appId?api-version=2.0" `
    -Method "PATCH" `
    -Headers @{"Authorization"="$($Response.token_type) $($Response.access_token)"; "Accept"="*/*"; } `
    -ContentType "application/json" `
    -Body "{`"id`":`"$appId`",`"replyUrlsWithType`":[{`"url`":`"https://$HostName`",`"type`":`"Web`"},{`"url`":`"msauth://$ReversedHostName`",`"type`":`"InstalledClient`"}, {`"url`":`"msauth.$ReversedHostName://auth`",`"type`":`"InstalledClient`"}]}"
Run Code Online (Sandbox Code Playgroud)

azure-active-directory

2
推荐指数
1
解决办法
1358
查看次数

标签 统计

azure-active-directory ×1