如何使用 Android 使用 authrequest 在 LinkedIn 中注销?
我开发了一款与 linkedIn 集成的应用程序..! 我使用 OAuth 服务在 linkedIn 中进行登录身份验证来发布网络更新..但现在如何自动注销(取消身份验证)到 LinkedIn?
感谢在广告..
i developed one app integrated with linkedIn..!
i do SignIn authentication in linkedIn using OAuth Service to post the Network Update..but now how to sign out (de-authenticate) to the LinkedIn automatically?
Thanks in adv..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
根据官方博客
现在您可以使应用程序的 OAuth 令牌失效。只需将 OAuth 签名的 GET 请求发送至:
200 响应表示令牌已成功无效。
但是,根据此:
总之:截至撰写本文之日,Linked In 不向第三方应用程序提供此支持
As per the official blog
Now you can invalidate an OAuth token for your application. Just send an OAuth signed GET request to:
A 200 response indicates that the token was successfully invalidated.
However as per this :
So In conclusion : as of this date of writing, Linked In does not give this support to 3rd Party Applications
阅读您的问题后,我也尝试找到解决方案,并与先生进行了交谈。 Nabeel Siddiqui - linkedin-j API 的作者,
当我询问是否可以使用 linkedin-j api 注销时,这是他的回复。
嗨,马尤尔
有一个方法 LinkedInOAuthService#invalidateAccessToken 应该使您的访问令牌无效。它被社区使用得不多,所以我不确定它是否按预期工作。请尝试一下,如果有问题请告诉我。
问候
Nabeel Mukhtar
所以在我的活动中我尝试使用这种方式。
请尝试一次这种方法,然后告诉我是否可以解决您的问题。
因为我还下载并看到了 linkedin-j API 的源代码以及
LinkedInOAuthServiceImpl.java
他们已经给出了该函数,并且如果我们在文件中编写相同的代码,该函数也可以工作。
那是,
Reading your question i have also tried to find solution and also talked to Mr. Nabeel Siddiqui - Author of linkedin-j API
and this was his reply when i asked if it's possible to sign out using linkedin-j api?
Hi Mayur
There is a method LinkedInOAuthService#invalidateAccessToken that is supposed to invalidate your access token. Its not used much by the community so I am not sure if it works as expected or not. Do try it and let me know if there are problems.
Regards
Nabeel Mukhtar
so in my activity i tried it using this way.
Please, Try this way once and tell me if it solves your problem.
cause I have also donwloaded and seen the SourceCode for linkedin-j API and in
LinkedInOAuthServiceImpl.java
they have given the function and that function also works if we write the same code in our file.
that is,