Use OAuth2 with Omnis 10.1?

Louis Kirouac lkirouac at gmail.com
Sun Dec 20 15:08:27 EST 2020


Hi

With Studio 10.1 I was able to make a Oauth2 form, using this example
https://github.com/OmnisStudio/Omnis-OAuth2
and get a token from a gmail account.

But I was not able to send an email with the tokens I got, and I gave up
trying when I found that if you set a gmail account more secure, and also
with 2 step authentication,
you can create an application password. In my applications the smtp ow3 can
send emails with this password.

I have set up all my clients to use this password.


Louis Kirouac


On Fri, 18 Dec 2020 at 20:04, Andrew Stolarz <stolarz at gmail.com> wrote:

> We integrated with Amazon SES  (https://aws.amazon.com/ses/) many years
> ago, and has been rock solid.
>
> Price: 0.10/per 1000 emails. + 0.12 per GB of data.
>
> Most of our emails are transactional based, so we rarely use any exta data.
>
> We also have it setup so clients can add their own domain for sending (it
> does require them to authenticate the domain via. a one time DNS entry).
>
> We send a lot of emails....hundreds of thousands
>
>
> It's very little effort to set up even for basic smtp sending.
>
>
> Andrew
>
>
> On Fri, Dec 18, 2020 at 6:24 PM Doug Easterbrook <doug at artsman.com> wrote:
>
> > yes.  mailgun acts as your SMTP server for the purposes of your
> > applicaiton .. and you can do smtp send
> >
> >
> > I just looked at their price calculator, — it looks like they changed
> > their terms a bit ..   it used to be 10,000 free per month and cheap
> after
> > that.  now its is:
> > • 5000 free emails per month for first three months,
> > •.then pay for what you send.
> >
> > the pay for what you send is.  $0.80 per 1000 emails.     so if you end
> up
> > paying under $1.00 per month for a decent eblast server… thats not bad.
> >
> >
> >
> > In the three years we’ve been encouraging customers over to it that have
> > had problems … ours have gone away.   and I think Theatre Manager did
> > something like 2,000,000 emails  one month with no problems.
> >
> >
> >
> > there are other services that purport to be similar to mailgun.   you can
> > google looking for them.
> >
> >
> >
> > we’ve just heard good thing about mail gun and have not been
> > disappointed.         that do what they need to ensure deliverablity to
> all
> > the other mail services out there - so they will handle the crap that
> > happens sending to people in yahoo, gmail or 365 accounts.
> >
> >
> >
> >
> >
> >
> > https://www.mailgun.com/pricing/ <https://www.mailgun.com/pricing/>
> >
> >
> >
> > Doug Easterbrook
> > Arts Management Systems Ltd.
> > mailto:doug at artsman.com
> > http://www.artsman.com
> > Phone (403) 650-1978
> >
> > > On December 18, 2020, at 1:52 PM, Das Goravani <goravanis at gmail.com>
> > wrote:
> > >
> > >
> > > My monthly amount of emails is very low.. its like a few per day.. so
> > mailgun is like Google in that I could set them up as my relay host.. I
> > dont know the terms.. it’s a type of proxy that you go through so that
> your
> > mail gets delivered.. because I use Blind Carbon Copy to send to my
> mailing
> > list, I send about 50 per email sometimes.. for a total of a couple
> > thousands, this is rare.. only when I have an upgrade.. once every six
> > months say.. do I do that.. otherwise the amount is really low.. so I
> could
> > set them up as my relay host (dont know the term) and my mail would be
> > delivered?  This is very good news.  When I set it up as gmail I only
> know
> > I needed SOMEBODY to use.. any reliable mail outfit.. I didn’t know of
> > any.. this may be just the thing for me.. then I could continue to use
> > SMPTSend in Omnis.. and it would work.. this is really good news.
> > >
> > >> On Dec 18, 2020, at 1:47 PM, Doug Easterbrook <doug at artsman.com>
> wrote:
> > >>
> > >> hi Das.
> > >>
> > >> I don’t know how many emails you plan on sending monthly ….    this
> > might be a solution for you  — mailgun.     (mailgun.com <
> > http://mailgun.com/>)
> > >>
> > >> they allow 10,000 free emails per month and charge very little beyond
> > that.
> > >>
> > >>
> > >>
> > >> we allow people to have their own mail services with our product.
> >  The amount of time we spent trying to help with customers that chose
> gmail
> > or office 365 (google/microsoft) was abysmal.     As you point out,. its
> > truly frustrating they kind of stranglehold they have and the rules that
> > they impose .   only xx emails ber minute , yy per day and zz per month,
> > but only if you stand on your head and sing a song.
> > >>
> > >>
> > >> in the end, way too much time supporting those kinds of companies that
> > are using limited features to keep you tied within their orbit.
> > >>
> > >>
> > >>
> > >> so, when customers have issues, we just put them on mailgun.       our
> > problems stop.   so do theirs.
> > >>
> > >>
> > >>
> > >> Doug Easterbrook
> > >> Arts Management Systems Ltd.
> > >> mailto:doug at artsman.com
> > >> http://www.artsman.com
> > >> Phone (403) 650-1978
> > >>
> > >>> On December 18, 2020, at 9:32 AM, Das's <goravanis at gmail.com> wrote:
> > >>>
> > >>>
> > >>> I just want to send emails.. is there not a solution that is
> > relatively simple?  I dont know WHY I had to set my google setting to
> Less
> > Secure Apps.. I think it was because I have my own mail server and my
> > emails weren’t getting through, so we had to set up Google as our proxy
> or
> > whatever.. as if we’re sending from Google.. then my emails would get
> > through otherwise ISP’s blocked them.. I think that’s what it was.. my
> God,
> > what a mess.. you’d think you’d be able to send emails without all this
> > fuss.
> > >>>
> > >>>
> > >>>
> > >>>> On Dec 18, 2020, at 9:28 AM, Phil (OmnisList) via omnisdev-en <
> > omnisdev-en at lists.omnis-dev.com> wrote:
> > >>>>
> > >>>> Hi Das,
> > >>>>
> > >>>> firstly note, OAuth is not Oauth2.
> > >>>>
> > >>>> As Mike says, not easily.
> > >>>>
> > >>>> I've done it previously externally in Python code, to google
> > calendar, and now recently had to look at it against Xero.
> > >>>>
> > >>>> Not straight forward at first, but achievable.
> > >>>>
> > >>>> now in 10.2, there is an Oauth2 option in the OW3 set of
> functions...
> > >>>>
> > >>>> I believe that is what Mike used for his UK Govt tax website, and I
> > intend to look into what is involved connecting to gmail, which Bob said
> > they have done.
> > >>>>
> > >>>> It may be a resolution for other Oauth2 connections... but as for
> > now, I have not looked at it at all.
> > >>>>
> > >>>> Oauth2 is the solution that Google for example will open a web page
> > asking for permission to use such and such service...
> > >>>> you receive some token back, which you can then use for your direct
> > interaction with the service.
> > >>>> That permission may last a long time, or a short time, and when it
> > runs out, you have to log back in and regain permission.
> > >>>>
> > >>>> The google solution seemed to work well in Python, Xero less so!
> > >>>>
> > >>>> regards
> > >>>> Phil Potter
> > >>>> Based in Chester in the UK.
> > >>>>
> > >>>> On 18/12/2020 15:47, Das Goravani wrote:
> > >>>>> How do you use OAuth?
> > >>>>>
> > >>>>>
> > >>>>> _____________________________________________________________
> > >>>>> Manage your list subscriptions at http://lists.omnis-dev.com
> > >>>>> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
> > >>>> _____________________________________________________________
> > >>>> Manage your list subscriptions at http://lists.omnis-dev.com
> > >>>> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
> > >>>
> > >>> _____________________________________________________________
> > >>> Manage your list subscriptions at http://lists.omnis-dev.com
> > >>> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
> > >>
> > >> _____________________________________________________________
> > >> Manage your list subscriptions at http://lists.omnis-dev.com
> > >> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
> > >
> > > _____________________________________________________________
> > > Manage your list subscriptions at http://lists.omnis-dev.com
> > > Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
> >
> > _____________________________________________________________
> > Manage your list subscriptions at http://lists.omnis-dev.com
> > Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
> >
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
>


More information about the omnisdev-en mailing list