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

使用Azure验证ColdFusion应用程序以创建联系人组,azure,coldfusion,azure-active-directory,Azure,Coldfusion,Azure Active Directory,我正在尝试将联系人组发布到Azure Active Directory中 我遵循的步骤: 在Azure中注册应用程序并获取租户ID和客户端ID 发送CFHTTP令牌请求(我需要这里的帮助) 发送令牌和其他参数(我在这里需要帮助)以发布联系人组 cfhttp(method="POST", charset="utf-8", url="https://login.microsoftonline.com/common/oauth2/v2.0/response_type=code", result="re

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

我遵循的步骤:

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

    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 ad访问令牌,请参阅如果您想要获取Azure ad访问令牌,请参阅