我正在使用带有omniauth 插件的Rails 通过LinkedIn 对我的应用程序进行身份验证。目前,如果用户成功授权应用程序,我存储omniauth返回的linkedin令牌:
oauth_token"=>"9dd623ad-1e21-2cec-9ede-107e1f8e9e18"
我也在使用linkedin插件来获取用户的Linkedin 信息。问题是; 该插件需要两个令牌,如下所示:
client.authorize_from_request(rtoken, rsecret, pin)
c.authorize_from_access("OU812", "8675309")
如何在linkedin插件中使用omniauth的令牌?任何想法?