{"id":532524,"date":"2021-09-06T11:02:41","date_gmt":"2021-09-06T03:02:41","guid":{"rendered":"http:\/\/4563.org\/?p=532524"},"modified":"2021-09-06T11:02:41","modified_gmt":"2021-09-06T03:02:41","slug":"%e3%80%90%e6%95%99%e7%a8%8b%e3%80%91onedrive-index-cloudflare-worker%e8%8e%b7%e5%8f%96refresh_token%e5%a4%b1%e8%b4%a5bug%e4%bf%ae%e5%a4%8d","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=532524","title":{"rendered":"\u3010\u6559\u7a0b\u3011OneDrive-Index-Cloudflare-Worker\u83b7\u53d6refresh_token\u5931\u8d25BUG\u4fee\u590d"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>nnt<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u3010\u6559\u7a0b\u3011OneDrive-Index-Cloudflare-Worker\u83b7\u53d6refresh_token\u5931\u8d25BUG\u4fee\u590d<\/h3>\n<p>  \t\t\u539f\u6587\u5730\u5740\uff1ahttps:\/\/blog.1234234.xyz\/archives\/24\/<\/p>\n<p>  \u4ed3\u5e93\u5730\u5740\uff1ahttps:\/\/github.com\/heymind\/OneDrive-Index-Cloudflare-Worker<br \/>  \u5b89\u88c5\u8fc7\u7a0b\u8bf7\u770b\u4ed3\u5e93README\uff0c\u8fd9\u91cc\u4e0d\u505a\u8d58\u8ff0<\/p>\n<p>  \u7531\u4e8e\u524d\u6bb5\u65f6\u95f4\uff1add.1234234.xyz\u7684onedrive\u8282\u70b9\u7a81\u7136\u5f02\u5e38\uff0c\u8bbf\u95ee\u9650\u5236`Worker threw exception`\uff0c\u6211\u7b2c\u4e00\u65f6\u95f4\u8fd8\u4ee5\u4e3a\u662f\u8d26\u53f7\u51fa\u5565\u60c5\u51b5\u4e86\uff0c\u5728debug\u4e4b\u540e\u53d1\u73b0\u539f\u6765\u662f\u6709\u6bb5\u65f6\u95f4\u7531\u4e8e\u8be5\u8282\u70b9\u4e00\u76f4\u6ca1\u4eba\u8bbf\u95ee\uff0c\u5bfc\u81f4refresh_token\u8fc7\u671f\u5931\u6548\u4e86\uff0c\u62a5\u9519\u4fe1\u606f\u5982\u4e0b\uff1a<\/p>\n<p>  {&quot;error&quot;:&quot;invalid_grant&quot;,&quot;error_description&quot;:&quot;AADSTS700082: The refresh token has expired due to inactivity. The token was issued on 2021-04-09T20:24:13.7429736Z and was inactive for 90.00:00:00.rnTrace ID: fc3c1f0d-acf2-497c-ba0f-9d7087f63900rnCorrelation ID: 9ecc7d33-6640-4f96-979e-729c0081f737rnTimestamp: 2021-09-05 19:12:37Z&quot;,&quot;error_codes&quot;:,&quot;timestamp&quot;:&quot;2021-09-05 19:12:37Z&quot;,&quot;trace_id&quot;:&quot;fc3c1f0d-acf2-497c-ba0f-9d7087f63900&quot;,&quot;correlation_id&quot;:&quot;9ecc7d33-6640-4f96-979e-729c0081f737&quot;,&quot;error_uri&quot;:&quot;https:\/\/login.microsoftonline.com\/error?code=700082&quot;}<\/p>\n<p>  \u6545\u800c\u5c1d\u8bd5\u91cd\u65b0\u83b7\u53d6\u4e00\u4e2a\u65b0\u7684\u503c\uff0c\u5728\u8be5\u8fc7\u7a0b\u4e2d\u9047\u5230\u4e86\u5982\u4e0bBUG\uff1a<\/p>\n<p>  {&quot;error&quot;:&quot;invalid_request&quot;,&quot;error_description&quot;:&quot;AADSTS9002326: Cross-origin token redemption is permitted only for the &#8216;Single-Page Application&#8217; client-type.rnTrace ID: 5f4789ca-3de2-4dd1-8060-9bfff1d33b00rnCorrelation ID: b546ee9d-faf8-4b35-8a69-9a856521e566rnTimestamp: 2021-09-05 19:07:51Z&quot;,&quot;error_codes&quot;:,&quot;timestamp&quot;:&quot;2021-09-05 19:07:51Z&quot;,&quot;trace_id&quot;:&quot;5f4789ca-3de2-4dd1-8060-9bfff1d33b00&quot;,&quot;correlation_id&quot;:&quot;b546ee9d-faf8-4b35-8a69-9a856521e566&quot;,&quot;error_uri&quot;:&quot;https:\/\/login.microsoftonline.com\/error?code=9002326&quot;}<\/p>\n<p>  \u8fd9\u91cc\u8bb0\u5f55\u4e0b\u5982\u4f55\u89e3\u51b3\uff1a\u9996\u5148\u8fd8\u662f\u4e00\u6837\uff0c\u83b7\u53d6\u4e00\u4e2aCode\u503c\uff0c\u5728\u56fe\u4e2d\u7684client id\u586b\u5165\u5bf9\u5e94\u7684\u503c\u540e\u70b9\u51fbAuthorize\uff1a<br \/>  https:\/\/i.loli.net\/2021\/09\/06\/NFCrmpWdBxs6zjH.png<\/p>\n<p>  \u5728\u83b7\u53d6\u5230Code\u540e\u6211\u4eec\u4fbf\u5f00\u59cb\u83b7\u53d6refresh_token\uff0c\u586b\u5165\u6211\u4eec\u7684client_secret\uff1a<br \/>  https:\/\/i.loli.net\/2021\/09\/06\/lb1GAczI7R3Z2Wq.png<\/p>\n<p>  \u8fd9\u65f6\u5019\u5148\u522b\u6025\u7740\u70b9GET TOKEN\uff0c\u6211\u4eec\u6253\u5f00BurpSuite\uff08\u6293\u5305\u5de5\u5177\uff0c\u6b64\u5904\u53ef\u4ee5\u66ff\u6362\u4e3a\u5176\u4ed6\u8f6f\u4ef6\uff09\u8fdb\u884c\u6293\u5305\uff1a<br \/>  https:\/\/i.loli.net\/2021\/09\/06\/gAp1MXct829VJ3k.png<\/p>\n<p>  \u53f3\u952e\u5c06\u6570\u636e\u53d1\u9001\u5230repeater\u91cd\u590d\u6a21\u5757\uff1a<br \/>  https:\/\/i.loli.net\/2021\/09\/06\/vcKrzSNMUJgVHYW.png<\/p>\n<p>  \u5220\u9664\u5176\u4e2d\u7684origin\u5b57\u6bb5\u540e\u70b9\u51fbGo\uff1a<br \/>  https:\/\/i.loli.net\/2021\/09\/06\/7MLiUabHDoWdyCv.png<\/p>\n<p>  \u6210\u529f\u83b7\u53d6\uff1a<br \/>  https:\/\/i.loli.net\/2021\/09\/06\/7yashAeQ3KL9olZ.png\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>breakmyheart<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u7ed1\u5b9a\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>hjvn2211445<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\trefresh token\u5927\u6982\u662f3\u4e2a\u6708\u6709\u6548\uff0c\u6bcf\u6b21\u5237\u65b0access token\u4f1a\u540c\u65f6\u751f\u6210\u4e00\u4e2a\u65b0\u7684refresh token<\/p>\n<p>  \u4e4b\u524doneindex\u767d\u5c4f\u7684\u60c5\u51b5\u5c31\u662f\u6ca1\u6709\u628a\u65b0\u7684refresh token\u5199\u8fdb\u914d\u7f6e\uff0c<br \/>  \u5982\u679c\u6709\u7528oneindex\u7684\uff0c\u8bf7\u53c2\u8003\u8fd9\u6587\u7ae0<br \/>  \u89e3\u51b3oneindex\u663e\u793a\u7a7a\u767d\u9875\/\u767d\u5c4f\u95ee\u9898\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>nnt<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\thjvn2211445 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-9-6 03:44<br \/>  refresh token\u5927\u6982\u662f3\u4e2a\u6708\u6709\u6548\uff0c\u6bcf\u6b21\u5237\u65b0access token\u4f1a\u540c\u65f6\u751f\u6210\u4e00\u4e2a\u65b0\u7684refresh token<\/p>\n<p>  \u4e4b\u524doneindex\u767d\u5c4f &#8230;<\/p>\n<p> \u8fd9\u4e2aworker\u7248\u8c8c\u4f3c\u6ca1\u529e\u6cd5\u66f4\u65b0\uff0c\u9664\u975e\u5f97\u6539\u6539\uff0c\u4eceworker\u7684KV \u547d\u540d\u7a7a\u95f4\u83b7\u53d6refresh tokenhttps:\/\/cdn.jsdelivr.net\/gh\/master-of-forums\/master-of-forums\/public\/images\/patch.gif\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>hanweizhe<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6280\u672f\u8d34 \u5f53\u8d4f\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>sunete<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4e0d\u8bbf\u95ee\u5c31\u4f1a\u5931\u6548\uff0c\u52a0\u4e2a\u76d1\u63a7\u5c31\u597d\u4e86\u5427\uff1f\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>xjjmjj<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u77e5\u8bc6\u5e16\uff0c\u7ed1\u5b9a\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>CACss<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u597d\u7684\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>nnt \u5927\u4f6c\u6709\u8bdd\u8bf4 : \u3010\u6559\u7a0b\u3011O&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/532524"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=532524"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/532524\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=532524"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=532524"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=532524"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}