[SOLVED] Can we login to Gmail with TSNet or do we need OAuth?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Lagi Pittas
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 366
Joined: Mon Jun 10, 2013 1:32 pm

[SOLVED] Can we login to Gmail with TSNet or do we need OAuth?

Post by Lagi Pittas » Thu Apr 05, 2018 5:08 pm

Hi All,

Well the subject says it all.

I followed the tutorial here

http://lessons.livecode.com/m/4071/l/85 ... ap-account

And I get an

"Error connecting to server: tsneterr: (67) Login Denied"

What am I doing wrong - I am using the Business edition although indy edition gave the same error

Do I need to login using OAthe 2.0 and then use tsnet to do the clever bits? Do I need to somehow tell Gmail that I am a trusted program and if so how - Dropbox on the Iphone comes back and asks so I assume that is OAuth.

Regards Lagi
Last edited by Lagi Pittas on Fri Apr 06, 2018 4:59 pm, edited 1 time in total.

mrcoollion
Posts: 738
Joined: Thu Sep 11, 2014 1:49 pm

Re: Can we login to Gmail with TSNet or do we need OAuth?

Post by mrcoollion » Thu Apr 05, 2018 6:48 pm

Did you set up your GMAIL account correct?
If not it will not work.

see: https://www.lifewire.com/how-to-enable- ... ap-1170856

Hope this helps.

Regards,

Paul

Lagi Pittas
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 366
Joined: Mon Jun 10, 2013 1:32 pm

Re: Can we login to Gmail with TSNet or do we need OAuth?

Post by Lagi Pittas » Thu Apr 05, 2018 7:09 pm

Hiya

Yep it’s all set for imap
I have downloaded before from gmail using mailstore
And that worked

Lagi

ghettocottage
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 366
Joined: Tue Apr 10, 2012 9:18 am

Re: Can we login to Gmail with TSNet or do we need OAuth?

Post by ghettocottage » Thu Apr 05, 2018 7:37 pm

You will also need to enable "less secure apps" for your gmail account:
https://support.google.com/accounts/ans ... 0255?hl=en

Lagi Pittas
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 366
Joined: Mon Jun 10, 2013 1:32 pm

Re: Can we login to Gmail with TSNet or do we need OAuth?

Post by Lagi Pittas » Fri Apr 06, 2018 4:59 pm

Thanks GC

That worked a treat - thanks a lot.

Kindest Regards

Lagi

slylabs13
Posts: 14
Joined: Thu Jul 26, 2007 7:23 pm
Contact:

Re: [SOLVED] Can we login to Gmail with TSNet or do we need OAuth?

Post by slylabs13 » Thu Jun 05, 2025 4:24 pm

Bad news for anyone doing this, Gmail and Microsoft are abandoning support for less secure apps. Without OAuth support mail will not be retrievable I fear. I get this same error with office.com. I administer the mail domain, but I can no longer find a place to enter an app password. This is why I have preached for years, cloud based computing is not going to be advantageous for the clients, only for the software corporations.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: [SOLVED] Can we login to Gmail with TSNet or do we need OAuth?

Post by FourthWorld » Thu Jun 05, 2025 6:42 pm

slylabs13 wrote:
Thu Jun 05, 2025 4:24 pm
Bad news for anyone doing this, Gmail and Microsoft are abandoning support for less secure apps. Without OAuth support mail will not be retrievable I fear. I get this same error with office.com. I administer the mail domain, but I can no longer find a place to enter an app password. This is why I have preached for years, cloud based computing is not going to be advantageous for the clients, only for the software corporations.
Welcome back to this seven-year-old-thread.

Yes, OAuth is among the leading standards for allowing users to grant access to third-party app devs.

LC supports OAuth.

I share much of the sentiment in your last sentence, but improving security for end-users isn't on my own list of complaints.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply