{"id":54956,"date":"2020-04-01T18:43:11","date_gmt":"2020-04-01T10:43:11","guid":{"rendered":"http:\/\/4563.org\/?p=54956"},"modified":"2020-04-01T18:43:11","modified_gmt":"2020-04-01T10:43:11","slug":"%e5%85%b3%e4%ba%8ee5%e5%bc%80%e5%8f%91%e8%80%85%e8%ae%a2%e9%98%85%e7%9a%84%e4%b8%80%e4%b8%aa%e7%96%91%e9%97%ae","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=54956","title":{"rendered":"\u5173\u4e8ee5\u5f00\u53d1\u8005\u8ba2\u9605\u7684\u4e00\u4e2a\u7591\u95ee"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>lemeaco<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-31 15:14:57\t<\/p>\n<h3>\u5173\u4e8ee5\u5f00\u53d1\u8005\u8ba2\u9605\u7684\u4e00\u4e2a\u7591\u95ee<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 lemeaco \u4e8e 2020-3-31 15:30 \u7f16\u8f91 <\/p>\n<p> \u521a\u624d\u64b8\u4e86\u4e00\u4e2a\u5f00\u53d1\u8005\u8ba2\u9605\uff0c\u4e0b\u8f7d\u4e86\u5b98\u65b9\u7ed9\u7684django\u5b9e\u4f8b\uff0c\u7136\u540e\u767b\u5f55\u56de\u8c03\u4e4b\u540e\u5c31\u62a5\u9519\u4e86\uff0c\u6709\u6ca1\u6709\u5927\u4f6c\u77e5\u9053\u548b\u56de\u4e8b\u3002<\/p>\n<p>  \u5df2\u7ecf\u89e3\u51b3\uff0c\u5bc6\u7801\u586b\u8fdb\u53bb\u7684\u65f6\u5019\u591a\u6253\u4e86\u4e2a\u5b57\u6bcd\u3002\u3002\u3002<\/p>\n<p>  Environment:<\/p>\n<p>  Request Method: GET<br \/>  Request URL: http:\/\/localhost:8000\/tutorial\/callback?code=OAQABAAIAAAAm-06blBE1TpVMil8KPQ41AidGQiB-mibASfm-C380PsOQPawFb9fl1SAIZ5mJHUZ44RF_uB5jQ1zjF54yTezYzU3nw8lX4bP0qtkPzetC4Rx0weHJQjM98WXtJoy5m7uYPu4nydnYSFw2oPzhH9fFLJEpJUR5ycTXNAvzQwP8UOTymP1hvicxiSGX_NCrLUrq-jQerV1y2PfKngUZCIgAwSU-zFVLIOV54N4qqiFUdqdWSXdzBN4EA8GACkI-nRpr2BkNbIPrxjGEJcYUPRqGK0yXcAbhnHG5zetnGCl7wRG**1XwcfRHRA9lDyMOHVvir34JbMn0VI3RwhgTLIYgEIcVJVz9thyKcCvRdJre3_YCENzrMlP42o9WE4Ktb8IBxVV5T4LunY4J0lJxrqI_G41zmgLOV8X3zCR5geDqQDNaRE2QtP4z3zv7EPTYrTvChuGMHGMcVRm0qt0ZG3joXPZ2dqdyV8bQLQaqGca5anoQW2tvI9-o07Nnzvu_SrcAeW3VSOh9NHZrSpemzZaOwC7P2BeDYmYl5ZYYc-TuAOixWDKtyT2AL2XRnpLZGPSipLr0xD7jbKnl0TXZsycRRnRlDai9KgApbkgy_1qJMxTIivedv41oULIFyRAALt7xGFUmGdRxv8x3gbaD7npRmEZSWymoKLihQgw-0ssIbSu8goGmyailJWC8HqiZi4gAA&amp;state=vByJhthhAatDgtcU9qXisazwAnr0WC&amp;session_state=f3cc9daa-85ab-4170-8a76-a4133ffe496f<\/p>\n<p>  Django Version: 3.0<br \/>  Python Version: 3.8.1<br \/>  Installed Applications:<br \/>  [&#8216;django.contrib.admin&#8217;,<br \/>   &#8216;django.contrib.auth&#8217;,<br \/>   &#8216;django.contrib.contenttypes&#8217;,<br \/>   &#8216;django.contrib.sessions&#8217;,<br \/>   &#8216;django.contrib.messages&#8217;,<br \/>   &#8216;django.contrib.staticfiles&#8217;,<br \/>   &#8216;tutorial&#8217;]<br \/>  Installed Middleware:<br \/>  [&#8216;django.middleware.security.SecurityMiddleware&#8217;,<br \/>   &#8216;django.contrib.sessions.middleware.SessionMiddleware&#8217;,<br \/>   &#8216;django.middleware.common.CommonMiddleware&#8217;,<br \/>   &#8216;django.middleware.csrf.CsrfViewMiddleware&#8217;,<br \/>   &#8216;django.contrib.auth.middleware.AuthenticationMiddleware&#8217;,<br \/>   &#8216;django.contrib.messages.middleware.MessageMiddleware&#8217;,<br \/>   &#8216;django.middleware.clickjacking.XFrameOptionsMiddleware&#8217;]<\/p>\n<p>  Traceback (most recent call last):<br \/>  File &quot;D:softpython3libsite-packagesdjangocorehandlersexception.py&quot;, line 34, in inner<br \/>  &nbsp; &nbsp; response = get_response(request)<br \/>  File &quot;D:softpython3libsite-packagesdjangocorehandlersbase.py&quot;, line 115, in _get_response<br \/>  &nbsp; &nbsp; response = self.process_exception_by_middleware(e, request)<br \/>  File &quot;D:softpython3libsite-packagesdjangocorehandlersbase.py&quot;, line 113, in _get_response<br \/>  &nbsp; &nbsp; response = wrapped_callback(request, *callback_args, **callback_kwargs)<br \/>  File &quot;D:codegraph_tutorialtutorialviews.py&quot;, line 39, in callback<br \/>  &nbsp; &nbsp; token = get_token_from_code(request.get_full_path(), expected_state)<br \/>  File &quot;D:codegraph_tutorialtutorialauth_helper.py&quot;, line 40, in get_token_from_code<br \/>  &nbsp; &nbsp; token = aad_auth.fetch_token(token_url,<br \/>  File &quot;D:softpython3libsite-packagesrequests_oauthliboauth2_session.py&quot;, line 360, in fetch_token<br \/>  &nbsp; &nbsp; self._client.parse_request_body_response(r.text, scope=self.scope)<br \/>  File &quot;D:softpython3libsite-packagesoauthliboauth2rfc6749clientsbase.py&quot;, line 415, in parse_request_body_response<br \/>  &nbsp; &nbsp; self.token = parse_token_response(body, scope=scope)<br \/>  File &quot;D:softpython3libsite-packagesoauthliboauth2rfc6749parameters.py&quot;, line 425, in parse_token_response<br \/>  &nbsp; &nbsp; validate_token_parameters(params)<br \/>  File &quot;D:softpython3libsite-packagesoauthliboauth2rfc6749parameters.py&quot;, line 432, in validate_token_parameters<br \/>  &nbsp; &nbsp; raise_from_error(params.get(&#8216;error&#8217;), params)<br \/>  File &quot;D:softpython3libsite-packagesoauthliboauth2rfc6749errors.py&quot;, line 405, in raise_from_error<br \/>  &nbsp; &nbsp; raise cls(**kwargs)<\/p>\n<p>  Exception Type: InvalidClientError at \/tutorial\/callback<br \/>  Exception Value: (invalid_client) AADSTS7000215: Invalid client secret is provided.<br \/>  Trace ID: 0a2fd7e8-fdbe-4109-9384-eaa701840900<br \/>  Correlation ID: a4c5b404-6c22-46b9-b7fa-9ad5fdd7636d<br \/>  Timestamp: 2020-03-31 07:10:47Z<\/p>\n<p>  https:\/\/s1.ax1x.com\/2020\/03\/31\/GMsEf1.png\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>xiao<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-31 15:16:08\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4e0d\u592a\u61c2\uff0c\u4f46\u6211\u7b7e\u540d\u53ef\u4ee5:lol<br \/>  \u6211\u600e\u4e48\u77e5\u9053\u554a\uff0c\u4f60\u95ee\u697c\u4e0b\u5427\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>lemeaco<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-31 15:21:03\t<\/p>\n<h3><\/h3>\n<p>  \t\txiao \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-31 15:16<br \/>  \u4e0d\u592a\u61c2\uff0c\u4f46\u6211\u7b7e\u540d\u53ef\u4ee5<br \/>  \u6211\u600e\u4e48\u77e5\u9053\u554a\uff0c\u4f60\u95ee\u697c\u4e0b\u5427<\/p>\n<p> (invalid_client) AADSTS7000215: Invalid client secret is provided<br \/>  \u5927\u4f6c\u77e5\u9053\u8fd9\u4e2a\u62a5\u9519\u662f\u5565\u60c5\u51b5\u4e48\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>xiao<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-31 15:33:56\t<\/p>\n<h3><\/h3>\n<p>  \t\tlemeaco \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-31 15:21<br \/>  (invalid_client) AADSTS7000215: Invalid client secret is provided<br \/>  \u5927\u4f6c\u77e5\u9053\u8fd9\u4e2a\u62a5\u9519\u662f\u5565\u60c5\u51b5\u4e48 &#8230;<\/p>\n<p> \u6ca1\u9047\u5230\u8fc7\uff0c\u4f60\u662f\u60f3\u5e72\u4ec0\u4e48\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>lemeaco<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-31 15:36:48\t<\/p>\n<h3><\/h3>\n<p>  \t\txiao \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-31 15:33<br \/>  \u6ca1\u9047\u5230\u8fc7\uff0c\u4f60\u662f\u60f3\u5e72\u4ec0\u4e48<\/p>\n<p> \u611f\u8c22\u5927\u4f6c\uff0c\u5df2\u7ecf\u89e3\u51b3\u4e86\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>lemeaco \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2&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\/54956"}],"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=54956"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/54956\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=54956"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=54956"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=54956"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}