我在我的网站中使用 Yahoo OAuth 2.0。测试中一切正常,localhost
但是当我在我的 上使用此登录名时server
,"Session verification failed"
尝试交换令牌时出错。我使用 trik 从我的本地主机登录,使用客户端 ID、秘密 ID 和服务器应用程序的重定向 uri,它工作正常。所以我不知道服务器中发生了什么。
兑换代币参数:
URL: https://api.login.yahoo.com/oauth2/get_token
Method: POST
Header:
User-Agent: *
Content-Type: application/x-www-form-urlencoded
Host: api.login.yahoo.com
Content-Length: *
Request body:
client_id=My_id&client_secret=My_secret&redirect_uri=My_uri&grant_type=authorization_code&code=TheCode