ElectronPlayer icon indicating copy to clipboard operation
ElectronPlayer copied to clipboard

Cannot login to Google on Linux Mint - Secure storage issue

Open KieranChandler opened this issue 6 years ago • 24 comments

Just installed electron via Snap on linux mint and when i tried to log into youtube, got the following error. I know on my home pc (using ubuntu with i3) that I can log into Netflix and Youtube. image

KieranChandler avatar Aug 27 '19 11:08 KieranChandler

I don't know what is causing that issue for you. I am able to login to Youtube on my computer. Can you reproduce it on another computer? I am on a Mac could it be due to Linux? (I currently don't have a Linux computer but I will check this issue when I have one).

oscartbeaumont avatar Sep 01 '19 16:09 oscartbeaumont

the problem is two-factor authentication, I also have this error.

xMase avatar Dec 09 '19 23:12 xMase

I just tried logging in and it is working now. I didn't have 2FA enabled for my google account at the time, so I don't think it is related to 2FA

KieranChandler avatar Dec 13 '19 15:12 KieranChandler

I tried with 2 accounts, with and without 2FA. the account with 2FA has the problem. But if you get the error even if it doesn't have 2fa, it's some protection enabled in the google account settings.

xMase avatar Dec 13 '19 15:12 xMase

I can not login at google too. I am running electronplayer-2.0.7.dmg on OSX Catalina

It says:

This browser or app may not be secure. Learn more

Try using a different browser. If you’re already using a supported browser, you can refresh your screen and try again to sign in.

I was able to register new Google Account through electronplayer. Do not know yet will it let me login after logout.

retif avatar Jan 23 '20 10:01 retif

Can you try clicking Learn more (maybe send me the link) because I do not know what is causing this? Possibly it is user agent related but I am not sure.

oscartbeaumont avatar Feb 23 '20 13:02 oscartbeaumont

It redirects you to this page: https://support.google.com/accounts/answer/7675428

Saying

These and other browsers support JavaScript: Chrome Safari Firefox Opera Internet Explorer Edge

Aggravate avatar Apr 15 '20 08:04 Aggravate

yup still an issue. Same here. Ubunutu. Google. Can we not just fake the User Agent or something?

twobob avatar May 02 '20 21:05 twobob

its work thanks for the tips, add this in the config file:

"userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0"

xMase avatar May 06 '20 11:05 xMase

no worries. Hacky to help. ;)

twobob avatar May 07 '20 21:05 twobob

@oscartbeaumont any chance of? I feel a 🔐 coming on. And everyone likes a closed... You're not gonna make us poor plebs make pull for one line are you ;)

twobob avatar May 07 '20 21:05 twobob

I have already fixed the issue in version 3.0.0 but it hasn't been released or pushed to git because it's a complete rewrite of the app and is still missing functionality. I will finish it when I get some time and publish it.

oscartbeaumont avatar May 10 '20 09:05 oscartbeaumont

Where do I put the userAgent line? My config.json file looks like this and it does not work: { "version": "2.0.8", "services": [], "_do_not_edit___date_": 1592651896581, "userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0" }

jfrcom avatar Jun 20 '20 11:06 jfrcom

You can view the example config here which shows it is on a per service basis (specially Youtube TV which changes its user agent). In the next release of the app I think i'm going to default the user agent to be the default for a Chrome installation on your respective OS to prevent issues like these happening and hopefully add a GUI for settings to make it much easier and less confusing like it is now. Currently there is no global user agent modifier.

oscartbeaumont avatar Jun 23 '20 12:06 oscartbeaumont

Same issue on youtube (cannot connect to google) ubuntu 20.04, ElectronPlayer 2.0.7

config settings:

{ "version": "2.0.7", "services": [ { "name": "Netflix", "logo": "services/netflix.png", "url": "https://netflix.com/browse", "color": "#e50914", "style": {} }, { "name": "YouTube", "logo": "services/youtube.svg", "url": "https://youtube.com", "color": "#ff0000", "userAgent": "Mozilla/5.0 (SMART-TV; Linux; Tizen 4.0.0.2) AppleWebkit/605.1.15 (KHTML, like Gecko)", "style": {} }, { "name": "Twitch", "logo": "services/twitch.svg", "url": "https://twitch.tv", "color": "#6441a5", "style": {} }, { "name": "Floatplane", "logo": "services/floatplane.svg", "url": "https://floatplane.com/", "color": "#00aeef", "style": {} }, { "name": "Hulu", "logo": "services/hulu.svg", "url": "https://www.hulu.com/", "color": "#00aeef", "style": {} } ] }

do you know what is the problem ? Thank you !

jcsekinger avatar Aug 13 '20 20:08 jcsekinger

@jcsekinger you've put a different userAgent than the one suggested.

xMase suggested

"userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0"

but you put

"userAgent": "Mozilla/5.0 (SMART-TV; Linux; Tizen 4.0.0.2) AppleWebkit/605.1.15 (KHTML, like Gecko)".

Note: you don't need to put the configs for all sites, just the ones where you've made changes are enough, i.e.

"services": [
    {
        "name": "YouTube",
        "logo": "services/youtube.svg",
        "url": "https://youtube.com/",
        "color": "#ff0000",
        "userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0",
        "style": {},
        "permissions": []
    }
],

Syndamia avatar Aug 16 '20 08:08 Syndamia

@Syndamia @oscartbeaumont it doesn’t work either – and I tried several user agents without success «navigateur non sécurisé» any idea ?

jcsekinger avatar Aug 16 '20 11:08 jcsekinger

Maybe try adding the following as a service and open it to login, then you could probably remove it.

{
    name: 'Google Login',
    logo: 'services/youtube.svg',
    url: 'https://accounts.google.com',
    color: '#ff0000',
    style: {},
    userAgent: "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84",
    permissions: []
},

Please report back if this works as I have not tested it.

oscartbeaumont avatar Aug 16 '20 11:08 oscartbeaumont

@jcsekinger I also wanna mention that you are on an older version of the app, 2.0.7 (which is more than an year old) as opposed to the newest one, 2.0.8, from a couple of months ago.

I don't know if that makes a difference for this problem though.

Syndamia avatar Aug 16 '20 11:08 Syndamia

@oscartbeaumont same issue… doesn’t understand any other idea ? :) thank you

jcsekinger avatar Aug 16 '20 11:08 jcsekinger

@oscartbeaumont @Syndamia Do you have a complete exemple of the settings for the 2.0.8 (I have an appimage) ? for now, the settings are just : { "version": "2.0.8", "services": [], "do_not_edit___date": 1597601659436 }

jcsekinger avatar Aug 16 '20 18:08 jcsekinger

@oscartbeaumont this is my configuration file (without some other settings I have set up)

{
        "version": "2.0.8",
        "services": [
                {
                        "name": "YouTube",
                        "logo": "services/youtube.svg",
                        "url": "https://youtube.com/",
                        "color": "#ff0000",
                        "userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0",
                        "style": {},
                        "permissions": []
                }
        ],
        "_do_not_edit__date": 1597565793597,
        "options": {},
        "relaunch": {}
}

Syndamia avatar Aug 17 '20 06:08 Syndamia

@oscartbeaumont this is my configuration file (without some other settings I have set up)

{
        "version": "2.0.8",
        "services": [
                {
                        "name": "YouTube",
                        "logo": "services/youtube.svg",
                        "url": "https://youtube.com/",
                        "color": "#ff0000",
                        "userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0",
                        "style": {},
                        "permissions": []
                }
        ],
        "_do_not_edit__date": 1597565793597,
        "options": {},
        "relaunch": {}
}

ça marche !!! (j’en oublie l’anglais) It works ! Thank you !

jcsekinger avatar Aug 17 '20 08:08 jcsekinger

@oscartbeaumont this is my configuration file (without some other settings I have set up)

{
        "version": "2.0.8",
        "services": [
                {
                        "name": "YouTube",
                        "logo": "services/youtube.svg",
                        "url": "https://youtube.com/",
                        "color": "#ff0000",
                        "userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0",
                        "style": {},
                        "permissions": []
                }
        ],
        "_do_not_edit__date": 1597565793597,
        "options": {},
        "relaunch": {}
}

i cant seam to get this to stay it just reverts back to the defalt config file is thare a way to stop this?

nagaisa-zz avatar Dec 18 '20 02:12 nagaisa-zz