简体   繁体   English

如何从LinkedIn中删除/撤消访问令牌

[英]How to remove/revoke access token from the LinkedIn

I am using LinkedIn API. 我正在使用LinkedIn API。 I have done all process to retrieve access token. 我已经完成了检索访问令牌的所有过程。 but never show anywhere to remove/revoke access token from the LinkedIn. 但从未在任何地方显示从LinkedIn删除/撤销访问令牌。 Please Help.! 请帮忙。!

Once you store the secret in your DB simply delete it and the access will be revoked. 将密码存储在数据库中后,只需删除它,即可撤销访问权限。

I believe that if you wish for the user to revoke access to your app the user must to go linkedin and do it, much like Facebook. 我相信,如果您希望用户撤销对您的应用的访问权限,则用户必须转到linkedin并执行此操作,就像Facebook一样。

As confirmed here: http://developer.linkedin.com/forum/how-really-revoke-apps-oauth-access-token linkedin does not have a programmable API for what you wanna do. 正如在此确认的那样: http//developer.linkedin.com/forum/how-really-revoke-apps-oauth-access-token linkedin没有可编程的API用于您想做的事情。

But before you remove it from DB you can invalidate the token which is like an extra step to take by cURLing https://api.linkedin.com/uas/oauth/invalidateToken with your token I believe. 但是在你从数据库中删除它之前,你可以使令牌失效,这就像使用你的令牌cURLing https://api.linkedin.com/uas/oauth/invalidateToken采取的额外步骤一样。

Edit 编辑

As @Paul corrects, it is actually quite important to invalidate the tokens with LinkedIn. 正如@Paul纠正的那样,使用LinkedIn使令牌无效实际​​上非常重要。 So doing that and then removing from DB is, as he says, the correct way. 所以这样做,然后从DB中移除就像他说的那样,是正确的方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM