使用 Azure 验证 ColdFusion 应用程序以创建联系人组

问题描述 投票:0回答:1

我正在尝试将联系人组发布到 Azure Active Directory 中。

我遵循的步骤:

  1. 在 Azure 中注册应用程序并获取租户 ID 和客户端 ID。
  2. 发送 CFHTTP 令牌请求(我在这里需要帮助)
  3. 发送令牌和其他参数(我在这里需要帮助)来发布联系人组

    cfhttp(method="POST", charset="utf-8", url="https://login.microsoftonline.com/common/oauth2/v2.0/response_type=code", result="result") {
        cfhttpparam(name="Content-Type", type="header", value="application/x-www-form-urlencoded");
        cfhttpparam(name="client_id", type="formfield", value="28d5e75-a762-45a2-9504-e9bbaa3294af");
        cfhttpparam(name="grant_type", type="formfield", value="authorization_code");
        cfhttpparam(name="mimetype", type="header", value="application/xml");
    }
    

回应:

Header  HTTP/1.1 404 Not Found Cache-Control: private Strict-Transport-Security: max-age=31536000; includeSubDomains X-Content-Type-Options: nosniff x-ms-request-id: caeef2f8-71a0-45f6-8820-63d880f02700 x-ms-ests-server: 2.1.10244.21 - WST ProdSlices P3P: CP="DSP CUR OTPi IND OTRi ONL FIN" Set-Cookie: x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly Date: Mon, 23 Mar 2020 18:20:59 GMT Connection: close Content-Length: 0
    Mimetype    Unable to determine MIME type of file.
azure coldfusion azure-active-directory
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.