Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use this within a Chrome extension? #77

Open
thromera opened this issue May 18, 2018 · 1 comment
Open

How to use this within a Chrome extension? #77

thromera opened this issue May 18, 2018 · 1 comment

Comments

@thromera
Copy link

thromera commented May 18, 2018

We have a Chrome extension that adds an IFrame on some specific pages to enhance the webpage functionnalities.

To notify the Extension that something new happened, the redirect URL HAS to be something like https://[LONG_ID].chromiumapp.org where LONG_ID is the ID of the Chrome Extension in the store.

Gotcha: This URL can be pinged ONLY in the context of the Chrome Extension. To give you an example, Chrome.identity.launchWebAuthFlow (https://developer.chrome.com/apps/identity#method-launchWebAuthFlow) implement the OAuth exchange in a popup, redirecting works properly but they do not do any caching (that's why I'm looking after JSO).

Do you have any idea how we could achieve the matter?

Thanks.

@vyasbhavin
Copy link

Chrome Extension allows you to do that without using this library. This is what we used successfully. More details here: https://developer.chrome.com/apps/tut_oauth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants