lemeaco 大佬有话说 : 2020-3-31 15:14:57
关于e5开发者订阅的一个疑问
本帖最后由 lemeaco 于 2020-3-31 15:30 编辑
刚才撸了一个开发者订阅,下载了官方给的django实例,然后登录回调之后就报错了,有没有大佬知道咋回事。
已经解决,密码填进去的时候多打了个字母。。。
Environment:
Request Method: GET
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
Django Version: 3.0
Python Version: 3.8.1
Installed Applications:
[‘django.contrib.admin’,
‘django.contrib.auth’,
‘django.contrib.contenttypes’,
‘django.contrib.sessions’,
‘django.contrib.messages’,
‘django.contrib.staticfiles’,
‘tutorial’]
Installed Middleware:
[‘django.middleware.security.SecurityMiddleware’,
‘django.contrib.sessions.middleware.SessionMiddleware’,
‘django.middleware.common.CommonMiddleware’,
‘django.middleware.csrf.CsrfViewMiddleware’,
‘django.contrib.auth.middleware.AuthenticationMiddleware’,
‘django.contrib.messages.middleware.MessageMiddleware’,
‘django.middleware.clickjacking.XFrameOptionsMiddleware’]
Traceback (most recent call last):
File "D:softpython3libsite-packagesdjangocorehandlersexception.py", line 34, in inner
response = get_response(request)
File "D:softpython3libsite-packagesdjangocorehandlersbase.py", line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File "D:softpython3libsite-packagesdjangocorehandlersbase.py", line 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "D:codegraph_tutorialtutorialviews.py", line 39, in callback
token = get_token_from_code(request.get_full_path(), expected_state)
File "D:codegraph_tutorialtutorialauth_helper.py", line 40, in get_token_from_code
token = aad_auth.fetch_token(token_url,
File "D:softpython3libsite-packagesrequests_oauthliboauth2_session.py", line 360, in fetch_token
self._client.parse_request_body_response(r.text, scope=self.scope)
File "D:softpython3libsite-packagesoauthliboauth2rfc6749clientsbase.py", line 415, in parse_request_body_response
self.token = parse_token_response(body, scope=scope)
File "D:softpython3libsite-packagesoauthliboauth2rfc6749parameters.py", line 425, in parse_token_response
validate_token_parameters(params)
File "D:softpython3libsite-packagesoauthliboauth2rfc6749parameters.py", line 432, in validate_token_parameters
raise_from_error(params.get(‘error’), params)
File "D:softpython3libsite-packagesoauthliboauth2rfc6749errors.py", line 405, in raise_from_error
raise cls(**kwargs)
Exception Type: InvalidClientError at /tutorial/callback
Exception Value: (invalid_client) AADSTS7000215: Invalid client secret is provided.
Trace ID: 0a2fd7e8-fdbe-4109-9384-eaa701840900
Correlation ID: a4c5b404-6c22-46b9-b7fa-9ad5fdd7636d
Timestamp: 2020-03-31 07:10:47Z
https://s1.ax1x.com/2020/03/31/GMsEf1.png
xiao 大佬有话说 : 2020-3-31 15:16:08
不太懂,但我签名可以:lol
我怎么知道啊,你问楼下吧
lemeaco 大佬有话说 : 2020-3-31 15:21:03
xiao 大佬有话说 : 2020-3-31 15:16
不太懂,但我签名可以
我怎么知道啊,你问楼下吧
(invalid_client) AADSTS7000215: Invalid client secret is provided
大佬知道这个报错是啥情况么
xiao 大佬有话说 : 2020-3-31 15:33:56
lemeaco 大佬有话说 : 2020-3-31 15:21
(invalid_client) AADSTS7000215: Invalid client secret is provided
大佬知道这个报错是啥情况么 …
没遇到过,你是想干什么
lemeaco 大佬有话说 : 2020-3-31 15:36:48
xiao 大佬有话说 : 2020-3-31 15:33
没遇到过,你是想干什么
感谢大佬,已经解决了