Chrome Extension + Rails Doorkeeper, anyone knows what should be the callback on the extension?

160 Views Asked by At

I'm using Doorkeeper for my Rails provider. My Chrome extension should implement Oauth to my provider. When I generate a new application in the provider I need to give the callback URL, what is the Chrome extension URL for that callback?

Thanks.

1

There are 1 best solutions below

1
On

You might want to use chrome.identity API wherein getRedirectURL method generates a redirect URL to be used in launchWebAuthFlow method.

The generated URLs match the pattern https://<app-id>.chromiumapp.org/*.

This thread might also help.