我正在尝试使用 Postman 通过 Twitter 进行概念验证社交登录流程,遵循本指南: https: //developer.twitter.com/en/docs/twitter-for-websites/log-in-with- twitter/guides/implementing-sign-in-with-twitter
我陷入了步骤 3:将请求令牌转换为访问令牌
我正在使用 Postman 内置的 OAuth 1.0 授权,并为我的消费者密钥、消费者秘密、访问令牌和令牌秘密提供了值。
无论我尝试什么,我的回复POST都是:https://api.twitter.com/oauth/access_token401
Request token missing
Run Code Online (Sandbox Code Playgroud)
我将oauth_verifier第 2 步中的数据作为x-www-form-urlencoded数据包含在内。
我的项目是使用 Laravel 和 Socialite 开发的。我也尝试过在类getTokenCredentials上使用该方法League\OAuth1\Client\Server\Server并得到相同的Request token missing错误。
我的最终目标是使用userFromTokenAndSecretTwitter Socialite 驱动程序提供的方法来检索用户配置文件数据。
以前有人遇到过这个错误吗?