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

Can't Sign In - App classed as 'not secure' by Google #11

Open
glowmango opened this issue Jan 2, 2020 · 14 comments
Open

Can't Sign In - App classed as 'not secure' by Google #11

glowmango opened this issue Jan 2, 2020 · 14 comments

Comments

@glowmango
Copy link

Incredibly excited by the existence of this app. However, the app will not sign in as Google is classing it as 'insecure'.

Screenshot here:
Screenshot 2020-01-02 at 21 06 08

@thynctank
Copy link

I've not worked with Electron before, but I am excited enough about this (Keep is one of my main go-to apps on Android for so many reasons!) that I hope to tinker and see if I can solve this issue. I imagine it's a common theme for Electron/Cordova/etc so I think it shouldn't be too hard to track down.

Cheers on the app altogether though, @tmcinerney! If I can integrate Keep with OS X keyboard shortcuts I'll be over the moon. Yes, I am a 200-year-old hipster who uses those hep cat thoughtwords, you crazy kids, you! (actually, I just never sleep and so am deliriously firing off messages into the void, but it's six of one and half a dozen of the other, right?)

@carmensandoval
Copy link

I believe this issue is still ongoing - I am not able to log in and get the same message as in the screenshot above from @glowmango.

@tmcinerney
Copy link
Owner

Hey @carmensandoval I don't actually use Google Keep anymore, but I thought a dependency bump might help.

I wasn't able to reproduce the issue y'all had, but would be able to test this beta release before I merge the code and release the updated application?

https://github.com/tmcinerney/keep/releases/tag/v2.0.0beta

@tmcinerney
Copy link
Owner

FYI ^^ @glowmango

@purirohan
Copy link

@tmcinerney tried your beta release as I'm seeing the same issue - no luck unfortunately. Same error as above.

@purirohan
Copy link

Is it related too this?

@purirohan
Copy link

works now - not sure what changed!

@davisstu
Copy link

Doesn't work for me, I still get the above error on a brand new install of 2.0.0 beta

@carmensandoval
Copy link

Same here!

@WillzyxandOnandOn
Copy link

WillzyxandOnandOn commented Jun 24, 2020 via email

@tmcinerney
Copy link
Owner

tmcinerney commented Jun 24, 2020

I've still not been able to replicate this. The Stack Overflow post linked above indicates an issue with the user agent.

Looking at the docs from menubar, it seems I can set the user agent for the load options, as described here.

I've updated the dependency bump PR to include the setting of the user agent.

I've built an updated version of the app and updated the beta release I linked before: https://github.com/tmcinerney/keep/releases/tag/v2.0.0beta

I tested the change using this site which displays the user agent.

I can see the following when simply setting it to Chrome (which isn't a real user agent, and least when I look at the latest user agents as defined here).

Screen Shot 2020-06-24 at 7 37 26 AM

The current version of Chrome on MacOS looks more like:

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36

When navigating to the user agent test page in Keep I can see mentions of Electron and the like:

Screen Shot 2020-06-24 at 7 37 46 AM

@fossifus
Copy link

fossifus commented Jul 9, 2020

  • Installed keep from Homebrew, encountered the same issue reported here.
  • Built from the beta release you linked above, encountered same issue.
  • From this reddit thread, added line loadUrlOptions: {userAgent: 'Chrome'} in your main.js in the const keep = menubar([...]) bit starting on line 6 and it's working now (for me).

Iunno anything about electron or javascript tho so ymmv.

@oipablodias
Copy link

Just added the useragent attribute in index.html webview tag and it's working for me now:

Line 10:
<webview autosize partition="persist:keep" src="https://keep.google.com" useragent="Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; AS; rv:11.0) like Gecko">

oipablodias pushed a commit to oipablodias/keep that referenced this issue Sep 27, 2020
Added the useragent attribute in index.html webview tag to fix the issue tmcinerney#11
@anothershubham
Copy link

anothershubham commented Nov 28, 2020

@tmcinerney
Please change the application code in main.js to
const keep = menubar({
browserWindow: {
alwaysOnTop: true,
frame: true,
height: 700,
movable: true,
resizable: true,
width: 500
},
icon: path.join(__dirname, 'assets', 'IconTemplate.png'),
index: 'https://keep.google.com',
preloadWindow: true,
showDockIcon: true,
showOnAllWorkspaces: true,
tooltip: 'Keep'
});
keep.setOption('loadUrlOptions',{userAgent: 'Chrome'})

And rebuild the app.

Everything should work now. I have changed 'frame' option to true for ease in movability of application.
If anyone wants to
If anyone want then this is the app with changes written above: https://drive.google.com/file/d/1CJs2r15TC_6RnGDyLEfIW3eoOebh1mr8/view?usp=sharing

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

10 participants