linkedIn在Chrome扩展中使用的有效JavaScript API域 [英] Valid JavaScript API Domain for linkedIn to use in Chrome extension

查看:87
本文介绍了linkedIn在Chrome扩展中使用的有效JavaScript API域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在尝试在我的Chrome中实现LinkedIn Oauth扩展和困惑,因为铬扩展它完全不同于简单的Web应用程序的环境。不要使用回调函数。

如果有人已经将Oauth与Chrome扩展相关联,那么请分享您的经验。

解决方案

如果您使用 chrome.identity API 来处理OAuth,那么您可以指定

 的https://<扩展-ID> .chromiumapp.org /<任何-此处> 

作为您的回叫网址。请注意,没有网络请求会实际转到该地址 - 它会在您的分机中自动截取。请参阅文档中的非Google帐户身份验证指南。






请注意,这可能涉及将您的秘密API密钥放入扩展名中。如果你想避免这种情况,你需要设置你自己的服务器来为你处理(而不是使用 chrome.identity )。


What should be a better way to specify a valid SDK domain for LinkedIn Oauth while using it in your Chrome extension?

I am trying implement LinkedIn Oauth in my chrome extension and got confused because chrome extension it completely different environment than a simple web application. Don't what should be callbacks functions.

If anyone has done linked Oauth with Chrome extension then please share your experience.

解决方案

If you're using chrome.identity API to handle OAuth, then you can specify

https://<extension-id>.chromiumapp.org/<anything-here>

as your callback URL. Note that no network request will actually go to that address - it'll be automatically intercepted in your extension. See the Non-Google account authentication guide in the docs.


Note that this potentially involves putting your secret API keys inside the extension. If you want to avoid that, you'll need to set up your own server to handle it for you (and not use chrome.identity).

这篇关于linkedIn在Chrome扩展中使用的有效JavaScript API域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆