Valid JavaScript API Domain for linkedIn to use in Chrome extension

前端 未结 1 1059
野趣味
野趣味 2021-01-23 22:44

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 e

相关标签:
1条回答
  • 2021-01-23 23:25

    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).

    0 讨论(0)
提交回复
热议问题