刚才撸了一个开发者订阅,下载了官方给的django实例,然后登录回调之后就报错了,有没有大佬知道咋回事。

已经解决,密码填进去的时候多打了个字母。。。

  1. Environment:
  2. Request Method: GET
  3. 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&state=vByJhthhAatDgtcU9qXisazwAnr0WC&session_state=f3cc9daa-85ab-4170-8a76-a4133ffe496f
  4. Django Version: 3.0
  5. Python Version: 3.8.1
  6. Installed Applications:
  7. ['django.contrib.admin',
  8. 'django.contrib.auth',
  9. 'django.contrib.contenttypes',
  10. 'django.contrib.sessions',
  11. 'django.contrib.messages',
  12. 'django.contrib.staticfiles',
  13. 'tutorial']
  14. Installed Middleware:
  15. ['django.middleware.security.SecurityMiddleware',
  16. 'django.contrib.sessions.middleware.SessionMiddleware',
  17. 'django.middleware.common.CommonMiddleware',
  18. 'django.middleware.csrf.CsrfViewMiddleware',
  19. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  20. 'django.contrib.messages.middleware.MessageMiddleware',
  21. 'django.middleware.clickjacking.XFrameOptionsMiddleware']
  22. Traceback (most recent call last):
  23. File "D:\soft\python3\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  24. response = get_response(request)
  25. File "D:\soft\python3\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  26. response = self.process_exception_by_middleware(e, request)
  27. File "D:\soft\python3\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  28. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  29. File "D:\code\graph_tutorial\tutorial\views.py", line 39, in callback
  30. token = get_token_from_code(request.get_full_path(), expected_state)
  31. File "D:\code\graph_tutorial\tutorial\auth_helper.py", line 40, in get_token_from_code
  32. token = aad_auth.fetch_token(token_url,
  33. File "D:\soft\python3\lib\site-packages\requests_oauthlib\oauth2_session.py", line 360, in fetch_token
  34. self._client.parse_request_body_response(r.text, scope=self.scope)
  35. File "D:\soft\python3\lib\site-packages\oauthlib\oauth2\rfc6749\clients\base.py", line 415, in parse_request_body_response
  36. self.token = parse_token_response(body, scope=scope)
  37. File "D:\soft\python3\lib\site-packages\oauthlib\oauth2\rfc6749\parameters.py", line 425, in parse_token_response
  38. validate_token_parameters(params)
  39. File "D:\soft\python3\lib\site-packages\oauthlib\oauth2\rfc6749\parameters.py", line 432, in validate_token_parameters
  40. raise_from_error(params.get('error'), params)
  41. File "D:\soft\python3\lib\site-packages\oauthlib\oauth2\rfc6749\errors.py", line 405, in raise_from_error
  42. raise cls(**kwargs)
  43. Exception Type: InvalidClientError at /tutorial/callback
  44. Exception Value: (invalid_client) AADSTS7000215: Invalid client secret is provided.
  45. Trace ID: 0a2fd7e8-fdbe-4109-9384-eaa701840900
  46. Correlation ID: a4c5b404-6c22-46b9-b7fa-9ad5fdd7636d
  47. Timestamp: 2020-03-31 07:10:47Z

复制代码

关于e5开发者订阅的一个疑问插图

4 对 “关于e5开发者订阅的一个疑问”的想法;

  1. xiao 发表于 2020-3-31 15:16
    不太懂,但我签名可以
    我怎么知道啊,你问楼下吧

    (invalid_client) AADSTS7000215: Invalid client secret is provided
    大佬知道这个报错是啥情况么

  2. lemeaco 发表于 2020-3-31 15:21
    (invalid_client) AADSTS7000215: Invalid client secret is provided
    大佬知道这个报错是啥情况么 ...

    没遇到过,你是想干什么

评论被关闭。