|
The easiest way you can do is to look at the chrome identity API. It will allow you to use a web OAuth flow using launchWebAuthFlow with a redirect to a URL of the form and then the actual redirect to the URL will be intercepted by Chrome and instead pass the data to the extension. You also have to work with the app ID of the extension for the URL to be consistent by providing a key field in the manifest and don't forget to also take a look at the docs to that effect because its about Google OAuth, which uses a different part of the chrome.identity API. I hope it helps.
|