2017-08-09 16 views
1

我想为此issue提供correlation id,但我不确定如何获取它。我认为它应该作为回应,对吗?它可能是客户端请求ID吗?图API响应中的相关ID在哪里?

HTTP响应

HTTP/1.1 403 Forbidden 
Cache-Control: no-cache 
Pragma: no-cache 
Content-Type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 
Expires: -1 
Server: Microsoft-IIS/8.5 
ocp-aad-diagnostics-server-name: CGa9FFPZASZM+usTGvTzaOZ4zSMxhpbWh2mO9+eJZWs= 
request-id: 6ddd7a86-02c9-4dcf-9932-b17afc976107 
client-request-id: 50478d75-542d-4e0e-96d9-de913d632471 
x-ms-dirapi-data-contract-version: 1.6 
ocp-aad-session-key: some-really-long-value 
X-Content-Type-Options: nosniff 
DataServiceVersion: 3.0; 
Strict-Transport-Security: max-age=31536000; includeSubDomains 
Access-Control-Allow-Origin: * 
X-AspNet-Version: 4.0.30319 
X-Powered-By: ASP.NET 
Duration: 782602 
X-Powered-By: ASP.NET 
Date: Wed, 09 Aug 2017 14:22:21 GMT 
Content-Length: 139 

{"odata.error":{"code":"Authorization_RequestDenied","message":{"lang":"en","value":"Insufficient privileges to complete the operation."}}} 

令牌请求响应

HTTP/1.1 200 OK 
Cache-Control: no-cache, no-store 
Pragma: no-cache 
Content-Type: application/json; charset=utf-8 
Expires: -1 
Server: Microsoft-IIS/8.5 
Strict-Transport-Security: max-age=31536000; includeSubDomains 
X-Content-Type-Options: nosniff 
client-request-id: 8c500700-b75c-403a-a2c9-c6dfa27049d3 
x-ms-request-id: 75627b63-fbd6-4fa8-95b5-b6a325d60900 
P3P: CP="DSP CUR OTPi IND OTRi ONL FIN" 
Set-Cookie: esctx=some-value; domain=.login.microsoftonline.com; path=/; secure; HttpOnly 
Set-Cookie: x-ms-gateway-slice=006; path=/; secure; HttpOnly 
Set-Cookie: stsservicecookie=ests; path=/; secure; HttpOnly 
X-Powered-By: ASP.NET 
Date: Wed, 09 Aug 2017 18:33:33 GMT 
Content-Length: 1437 

{"token_type":"Bearer","expires_in":"3599","ext_expires_in":"262800","expires_on":"1502307214","not_before":"1502303314","resource":"https://graph.windows.net/","access_token":"some-token-value"} 

回答

0

的相关ID(也称为客户请求-ID)可以在与所述天青AD服务交互被发现。

当您要求Azure AD端点获得标记时,紧接在此之前的请求将在响应中包含该标识。

https://login.microsoftonline.com/...

https://login.windows.net/...

+0

我已经添加了回应时,我获得的令牌。我仍然没有看到关联ID。 – spottedmahn

+1

@spottedmahn嘿我更新了答案。客户端请求标识符相当于! –

相关问题