首页 文章

linkedin oauth请求访问令牌

提问于
浏览
1

尝试从linkedin oauth api获取oauth_token和oauth_token_sceret时遇到问题 . 我可以获取requestToken(第一个请求),但是在回调页面中(在用户批准应用程序之后)我'm trying to get the token and the secret but I always get 401 and it says the signature is invalid. I' m将以下值发布到https://api.linkedin.com/uas/oauth/accessToken: - oauth_consumer_key - oauth_nonce - oauth_signature_method - oauth_timestamp - oauth_token - oauth_verifier - oauth_version

作为附注,我不明白为什么我得到验证者(我不需要PIN,因为它在浏览器中运行) . 我能够获得令牌和秘密的唯一方法是当我发布第一次请求时收到的“oauth_token_secret”(当我要求requestToken时) . 但我无法在回调页面中获得此oauth_token_secret .

我发现你需要将第一次请求requestToken(第一次请求)时得到的秘密令牌传递给访问令牌并且它正在工作 .

1 回答

  • 0

    完成第一阶段并获得请求令牌后,您应该已经将请求令牌和验证者传回去:

    https://developer.linkedin.com/documents/oauth-overview

    然后,将请求令牌与验证程序一起传递回来,方法与请求令牌(签署请求等)相同,然后您应该收到访问令牌 .

相关问题