aswinrajeev / blogly

Blogly is an open-source desktop application for bloggers and content writers
BSD 3-Clause "New" or "Revised" License
22 stars 2 forks source link

Can't login to blogger - This browser or app may not be secure #77

Open vvvlad opened 4 years ago

vvvlad commented 4 years ago

Version 1.0.0 Beta 1 MacOS Catalina 10.15.6

Login to google, after email screen get the following message:

Couldn't sign you in
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.

Tried to allow "less secure apps" in the google settings but didn't help

aswinrajeev commented 4 years ago

Thank you @vvvlad for bringing this to notice. I had been testing on macOS Catalina and have not encountered this issue yet.

However, I think that the issues would be due to a user-agent specification in the popup window for authentication.

I have tried to patch it. Would release the binaries in a while after a little more testing.

vvvlad commented 4 years ago

@aswinrajeev thanks for your reply. Any suggestion on a workaround in the meantime? Would really like to test but this keeps me from doing anything...

aswinrajeev commented 4 years ago

Hi, could you please try this patched version.

https://github.com/aswinrajeev/blogly/releases/tag/v1.0.0-beta.1-patch1

Since I was unable to replicate the issue, I could not verify if the fix is working.

vvvlad commented 4 years ago

Ok, passed the first step. Authentication worked, but after that shows: Redirecting to Blogo... and nothing....

aswinrajeev commented 4 years ago

Ok, passed the first step. Authentication worked, but after that shows: Redirecting to Blogo... and nothing....

Okay. Did you get a prompt initially to allow incoming connections?

aswinrajeev commented 4 years ago

Once the login is successful, Google API tries to send a signal back to the app. I think that would be getting blocked, either by the firewall or by the antivirus. Could you please check if that is the case.

vvvlad commented 4 years ago

@aswinrajeev I'll try to see if I can understand what blocks it, and if this is related to my setup.

vvvlad commented 4 years ago

Tested when not using VPN and it works, but each time I submit content goes through 3 clicks of google content approval. Not the best experience, but works. Unrelated issue - images are not uploaded correctly to blogger.

aswinrajeev commented 4 years ago

Tested when not using VPN and it works, but each time I submit content goes through 3 clicks of google content approval. Not the best experience, but works. Unrelated issue - images are not uploaded correctly to blogger.

Thank you so much @vvvlad for your continuous feedback and support.

Yes. I am working on using refresh tokens to avoid the pain of authorising every time. Will update the application soon.

I am aware of the issue with the images but could not find any ways to fix it. In fact,the problem is an issue with Google API where they do not provide any facilities to upload images to Blogger. I have tried to get support from Google developers through various mediums, all in vein.

The current implementation is a work-around by uploading the images to Google Drive of the user and sharing the media to have a permanent link. But this at the cost of a slight delay in loading the images in the blog. Also, these images doesn't work with crawlers. I am still trying my best to find a fix to this without relying on third-party vendors.

Also, thanks for pointing out the problem with VPN. I was not aware of this. Will get some solution as soon as possible.