我正试图为星人创建一个监控服务。当我尝试使用以下请求获得de令牌时:
consumer = oauth2.Consumer(app_key, app_secret)
client = oauth2.Client(consumer)
...
params = {
"client_id": app_key,
"client_secret": app_secret,
"redirect_uri": app_callback_url,
"code": code,
"grant_type": "authorization_code",
}
_, content = client.request(access_token_url, "POST", body=urllib.parse.urlencode(params))我得到以下答复:
{“错误”:“无效_客户端”,“错误_描述”:“未找到或禁用客户端{CLIENT_ID}”,“错误_详细_键”:‘E 20109’,'error_uri':'https://dev.xing.com/docs/error_responses'}‘
我怎么才能修好它?
发布于 2022-04-12 11:06:32
我通过从参数中删除"client_secret“并添加"code_verifier”来修正它
https://stackoverflow.com/questions/71586859
复制相似问题