我可以从 PowerShell 为 publicClient 或 spa 设置 redirectUris 吗?
Can I set the redirectUris for publicClient or spa from PowerShell?
当使用命令 New-AzureADApplication
从 PowerShell 在 Azure 中创建新应用程序时,如果应用程序是 spa
或 publicClient
,我如何设置重定向 URI,而不使用Azure 门户?
您可以使用 Azure CLI(或其他能够发出休息请求的工具)并向 Microsoft Graph 发出 PATCH
请求以更新应用程序清单的特定部分:
az rest `
--method PATCH `
--uri 'https://graph.microsoft.com/v1.0/applications/{id}' `
--headers 'Content-Type=application/json' `
--body "{spa:{redirectUris:['http://localhost:3000']}}"
当使用命令 New-AzureADApplication
从 PowerShell 在 Azure 中创建新应用程序时,如果应用程序是 spa
或 publicClient
,我如何设置重定向 URI,而不使用Azure 门户?
您可以使用 Azure CLI(或其他能够发出休息请求的工具)并向 Microsoft Graph 发出 PATCH
请求以更新应用程序清单的特定部分:
az rest `
--method PATCH `
--uri 'https://graph.microsoft.com/v1.0/applications/{id}' `
--headers 'Content-Type=application/json' `
--body "{spa:{redirectUris:['http://localhost:3000']}}"