Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Laravel Twitter OAuth访问令牌错误:缺少请求令牌_Laravel_Twitter_Postman_Twitter Oauth_Laravel Socialite - Fatal编程技术网

Laravel Twitter OAuth访问令牌错误:缺少请求令牌

Laravel Twitter OAuth访问令牌错误:缺少请求令牌,laravel,twitter,postman,twitter-oauth,laravel-socialite,Laravel,Twitter,Postman,Twitter Oauth,Laravel Socialite,我正在尝试使用Postman通过Twitter运行一个概念验证社交登录流,遵循以下指南: 我陷入了第3步:将请求令牌转换为访问令牌 我正在使用Postman针对OAuth 1.0的内置授权,并为我的使用者密钥、使用者机密、访问令牌和令牌机密提供了值 无论我尝试什么,我的帖子对https://api.twitter.com/oauth/access_token是一个401: Request token missing 我将第2步中的oauth\u验证器作为x-www-form-urlencode

我正在尝试使用Postman通过Twitter运行一个概念验证社交登录流,遵循以下指南:

我陷入了第3步:将请求令牌转换为访问令牌

我正在使用Postman针对OAuth 1.0的内置授权,并为我的使用者密钥、使用者机密、访问令牌和令牌机密提供了值

无论我尝试什么,我的
帖子
https://api.twitter.com/oauth/access_token
是一个
401

Request token missing
我将第2步中的
oauth\u验证器
作为
x-www-form-urlencoded
数据

我的项目正在与Laravel和Socialite一起开发。我还尝试在
League\OAuth1\Client\Server\Server
类上使用
getTokenCredentials
方法,并得到相同的
请求令牌缺失
错误

我的最终目标是使用Twitter社交名流驱动程序提供的
userFromTokenAndSecret
方法来检索用户配置文件数据


以前有人遇到过这个错误吗?

我没有意识到每一步令牌也会改变。使用正确的令牌后,我能够成功地通过Twitter进行身份验证。

您确定发送的令牌正确吗?对于
https://api.twitter.com/oauth/access_token
,您必须使用从步骤2获得的令牌<代码>https://yourWhitelistedCallbackUrl.com?oauth_token=NPcudxy0yU5T3tBzho7iCotZ3cnetKwcTIRlX0iwRl0&oauth_verifier=uw7NjWHT6OJ1MpJOXsHfNxoAhPKpgI8BlYDhxEjIBY啊,是的,我没有意识到令牌每一步都会改变。谢谢我有完全相同的问题,但是。。。在上面链接的示例中,请求令牌在所有步骤中都保持不变?(在步骤2和3中,它是oauth_令牌=NPcudxy0yU5T3tBzho7iCotZ3cnetKwcTIRlX0iwRl0)。完全迷路了。。。