youtube_desktop
youtube_desktop copied to clipboard
Bug: OAuth redirect net::ERR_CONNECTION_REFUSED
To reproduce:
1.A Signup for an OAuth keypair 1.B. Register the following origin/callbacks in the control panel
- Origin: http://localhost:5000
- Redirect URI: http://localhost:5000/oauth2callback
- Sign up for an API key
- Enter keys into
./config/api_key.js
following the format:
module.exports = {
publicDataKey: 'your public data key',
clientId: 'your client id',
clientSecret: 'your client secret'
};
- Start the Electron app via
npm start
- Click "signin" causing the OAuth popup
- open the Dev panel on that window and select "preserve logs"
- Sign In to Google and click "Allow" in the "Grant Access" view
- An error is thrown in the console (picture included):
localhost:5000/oauth2callback?code=<SECRET_STUFF>/m/auth/userinfo.profile%20https://www.googleapis.com/auth/userinfo.email:1 GET http://localhost:5000/oauth2callback?code=4/<SECRET_STUFF>auth/userinfo.profile%20https://www.googleapis.com/auth/userinfo.email net::ERR_CONNECTION_REFUSED

I'm not sure if this is related, but when I attempt to get the host
from window.location.host
in the console, it returns an empty string ""
. I'm not sure if there should be a secondary server being run or not to get this to work.