Re: Gmail, LSA, and OAuth

2020-03-22 Thread Randy Kaempen via 4D_Tech
Alexander, > On Mar 22, 2020, at 6:02 AM, Herr Alexander Heintz > wrote: > > I just looked into accessing GMail through OAuth2. > From the technical point it is not a problem, I can easily adapt the tools I > have for MS OAuth2 to work with Google. > The process for app registration however is

Re: Gmail, LSA, and OAuth

2020-03-22 Thread Herr Alexander Heintz via 4D_Tech
I just looked into accessing GMail through OAuth2. From the technical point it is not a problem, I can easily adapt the tools I have for MS OAuth2 to work with Google. The process for app registration however is much more complicated than with MS… You need to submit you application to Google for v

Re: Gmail, LSA, and OAuth

2020-03-19 Thread Tom Benedict via 4D_Tech
I support a 4D app which currently uses Twilio sendgrid.net send all outbound email. While our email volume is modest Iaven’t run into any issues with it. Seems stable. Tom Benedict > On Mar 19, 2020, at 13:50, Chuck Miller via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > what relay would you

Re: Gmail, LSA, and OAuth

2020-03-19 Thread Chuck Miller via 4D_Tech
what relay would you propose. Regards Chuck Chuck Miller Voice: (617) 739-0306 Informed Solutions, Inc. Fax: (617) 232-1064 mailto:cjmillerinformed-solutions.com Brookline, MA 02446 USA R

Re: Gmail, LSA, and OAuth

2020-03-19 Thread Mike Kerner via 4D_Tech
t; > On Mar 18, 2020, at 3:59 PM, Randy Kaempen via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > > > Since the 4D Internet Commands are something that many companies use, it > seems like it would be a good idea for us as a group to work on a way to > move forward, either addin

Re: Gmail, LSA, and OAuth

2020-03-18 Thread Guy Algot via 4D_Tech
er adding a framework which adds the OAuth around those commands > or replacing them entirely. An approach which handles to Google situation as > well as other email systems would be useful to everyone going forward. > > > Randy Kaempen > Intellex Corporation > Late

Re: Gmail, LSA, and OAuth

2020-03-18 Thread Keisuke Miyako via 4D_Tech
less-secure-app is basically synonymous to SMTP. you need to think about sending email without SMTP. --- you can send Gmail (OAuth) with simple HTTP requests. OAuth meaning, you authenticate the account and authorise the app via a trusted browser. https://github.com/4D-JP/4d-tips-google-mail

Re: Gmail, LSA, and OAuth

2020-03-18 Thread Randy Kaempen via 4D_Tech
gt; authentication to bearer authentication where you send a token. > It sadly requires interaction by the user from time to time, no idea if > Google has any system for Admin impersonation in place like MS Azure does. > > I might release component in the near future that does MS OAuth

Re: Gmail, LSA, and OAuth

2020-03-18 Thread UKVetDerm via 4D_Tech
in impersonation in place like MS Azure does. I might release component in the near future that does MS OAuth against Azure. As for Google and others, I will have to find the time to get into that. Cheers Alex

Re: Gmail, LSA, and OAuth

2020-03-18 Thread Herr Alexander Heintz via 4D_Tech
I might release component in the near future that does MS OAuth against Azure. As for Google and others, I will have to find the time to get into that. Cheers Alex ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/arch

Gmail, LSA, and OAuth

2020-03-18 Thread David Rose via 4D_Tech
ry 15, 2021, you will begin receiving an error message that your username-password combination is incorrect." "If you are using [a third-party] email client, re-add your Google Account and configure it to use IMAP with OAuth." How is this done in 4D in conjunction with the 4D SMTP c

Re: OAuth

2019-03-15 Thread Ed Glassgow via 4D_Tech
Thanks Peter... I will be interested in what you accomplish and how you do it. I have a project going where I collect a bunch of sensor data using a Raspberry Pi and post it to a Google Sheet. I have that working fine. What. I would like to do from here is to use 4D to suck up that data and

Re: OAuth

2019-03-15 Thread Jeremy Roussak via 4D_Tech
Peter, I’ve now managed one step more, in that I have created a dummy user and obtained liability information. I’m hoping to do some more work on it this weekend. I’ll feed back as well. Jeremy > On 15 Mar 2019, at 09:59, Peter Jakobsson via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > >

Re: OAuth

2019-03-15 Thread Peter Jakobsson via 4D_Tech
> On 10 Mar 2019, at 09:51, Jeremy Roussak via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > The server I’m hoping to talk to is the Value Added Tax server at HMRC in > England (in a couple of months’ time, entering figures for VAT returns will > have to be done by software rather than online,

Re: Re: OAuth

2019-03-11 Thread Bruno LEGAY via 4D_Tech
Hi, > curl -X POST --data \ > 'client_secret=[YOUR-CLIENT-SECRET]&client_id=[YOUR-CLIENT-ID]&grant_type=authorization_code&redirect_uri=[YOUR-REDIRECT-URI]&code=[AUTHORIZATION-CODE]' > \ > https://test-api.service.hmrc.gov.uk/oauth/token > >

Re: OAuth

2019-03-10 Thread Jeremy Roussak via 4D_Tech
/api-documentation/docs/authorisation/user-restricted-endpoints#installed-applications) > says to do this: > > curl -X POST --data \ > 'client_secret=[YOUR-CLIENT-SECRET]&client_id=[YOUR-CLIENT-ID]&grant_type=authorization_code&redirect_uri=[YOUR-REDIRECT-URI]&code=[A

Re: OAuth

2019-03-10 Thread Jeremy Roussak via 4D_Tech
mp;grant_type=authorization_code&redirect_uri=[YOUR-REDIRECT-URI]&code=[AUTHORIZATION-CODE]' \ https://test-api.service.hmrc.gov.uk/oauth/token I’ve tried this: $url:="https://test-api.service.hmrc.gov.uk/oauth/token"; $body:="grant_type=authorization_code"+\ "&

Re: OAuth

2019-03-10 Thread Keisuke Miyako via 4D_Tech
so the first thing to do is Google the docs with the keyword "urn:ietf:wg:oauth:2.0:oob" https://www.google.com/search?client=safari&rls=en&q=site:developer.service.hmrc.gov.uk+urn:ietf:wg:oauth:2.0:oob&ie=UTF-8&oe=UTF-8 > oob callbacks ***

Re: OAuth

2019-03-10 Thread Keisuke Miyako via 4D_Tech
provider) the user will be redirected to a web page that says something to the effect of, "type this code in your desktop application". OAuth is primarily designed for web applications, that prefer to delegate authorisation and authentication to a trusted account agent, so it assume

OAuth

2019-03-10 Thread Jeremy Roussak via 4D_Tech
I’m trying to get an OAuth 2.0 access token. I’m confused about the redirect uri and how to implement it in 4D. The server I’m hoping to talk to is the Value Added Tax server at HMRC in England (in a couple of months’ time, entering figures for VAT returns will have to be done by software

Re: OAuth Code Library

2017-12-06 Thread Sannyasin Siddhanathaswami via 4D_Tech
Thanks Miyako! I’ll look at these carefully. Sannyasin Siddhanathaswami On Dec 6, 2017, 2:27 PM -1000, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com>, wrote: OAuth 1.0a and 2.0 work very differently (2.0 is way way easier) 2.0 Examples https://github.com/miyako/4d-component-goog

Re: OAuth Code Library

2017-12-06 Thread Keisuke Miyako via 4D_Tech
OAuth 1.0a and 2.0 work very differently (2.0 is way way easier) 2.0 Examples https://github.com/miyako/4d-component-google-api https://github.com/4D-JP/4d-tips-google-mail https://github.com/miyako/4d-tips-facebook-integration https://github.com/miyako/4d-tips-quickbook-integration 1.0 and 2.0

OAuth Code Library

2017-12-06 Thread Sannyasin Siddhanathaswami via 4D_Tech
Aloha, Does anyone have an OAuth code library they would be willing to share? I’ve gone through the process of manually getting tokens via curl, but it’s going to be a pain reinventing the wheel to get that working and debugged in 4D. Thanks in advance! Sannyasin Siddhanathaswami

[OFF] I need an OAuth tutor

2017-05-11 Thread Kirk Brooks via 4D_Tech
I have a project that requires having 4D connect via OAuth. I know this totally doable but I just keep getting stuck. So, I'd like to hire someone who knows this stuff to tutor me for an hour or two. I'm thinking we do a Teamviewer session or similar. Contact me off line if you

Re: Need help setting up oAuth with cURL

2016-10-28 Thread Spencer Hinsdale
Thanks! I will have a look. I now remember needing to add cert separately for curl.exe, prior to OAuth plugin (non-blocking!). Thanks again. > On Oct 28, 2016, at 12:03 AM, Keisuke Miyako wrote: > > please study the method "HTTPS_DEBUG" provided with the plugin&#

Re: Need help setting up oAuth with cURL

2016-10-28 Thread Keisuke Miyako
please study the method "HTTPS_DEBUG" provided with the plugin's sample database. C_BLOB($in;$out) C_LONGINT($err) ARRAY LONGINT($tNomOption;0) ARRAY TEXT($tValOption;0) APPEND TO ARRAY($tNomOption;CURLOPT_SSL_VERIFYHOST) APPEND TO ARRAY($tValOption;"1") APPEND TO ARRAY($tNomOption;CURLOPT_SSL_V

Re: Need help setting up oAuth with cURL

2016-10-26 Thread Spencer Hinsdale
Hi Miyako, I recently tried replacing OAuth.bundle (10/10/14) with cURL.bundle (9/30/16) and ran into a problem with Error 60: Peer certificate cannot be authenticated with known CA certificates. I found that I could work around the problem by setting CURLOPT_SSL_VERIFYPEER to zero, which didn

Re: Need help setting up oAuth with cURL

2016-10-26 Thread Keisuke Miyako
ah, you got me there, it's called "Get unixtime" in common-crypto. unix time is the time passed since 1 January 1970 https://en.wikipedia.org/wiki/Unix_time > 2016/10/27 1:08、Kirk Brooks のメール: > I notice there's one method that's been deleted: SYSTEM Get unixtime > Easy enough, but does it need

Re: Need help setting up oAuth with cURL

2016-10-26 Thread Kirk Brooks
Miyako, Thanks for the reply. I found the presentation you did at the '12 Summit where you used cURL & oAuth2 to connect to google. I'm working through that since it details the steps. I removed the deprecated oAUTH plugin and installed the new cURL and common crypto. I notice ther

Re: Need help setting up oAuth with cURL

2016-10-26 Thread Keisuke Miyako
the command names are exactly the same, nothing has changed other than the name of the 2 plugins (the plugin has been split). code written for the old plugin will work "as is" with the "curl" and "common-crypto" plugins. > 2016/10/26 22:31、Kirk Brooks のメール

Need help setting up oAuth with cURL

2016-10-26 Thread Kirk Brooks
Hi folks, It turns out to have been a while since I set up something new like this. I want to use Miyako's cURL plugin to establish a connection using oAuth. I see the oAuth plugin is deprecated in favor of cUrl - but I don't see how to set the headers properly. Or is there a bet

Re: OAuth Tips

2016-08-25 Thread Keisuke Miyako
you are right, though most OAuth servers are design for inter-web app integration, an "out of bounds" scheme is generally provided as an alternative for desktop apps that with to connect. if the service provider specifically mentions that they only target web apps, chances are that

Re: OAuth Tips

2016-08-25 Thread Sannyasin Siddhanathaswami
Aloha Miyako, I don’t quite understand what "urn:ietf:wg:oauth:2.0:oob" means, but I suspect you are referring to the Desktop app process of OAuth mentioned here: https://developers.google.com/identity/protocols/OAuth2InstalledApp It basically does the request and response in 1

Re: OAuth Tips

2016-08-25 Thread Keisuke Miyako
it depends on whether the service provider supports "urn:ietf:wg:oauth:2.0:oob" > 2016/08/25 6:09、Sannyasin Siddhanathaswami のメール: > > My concept of how this would work: > Create a webarea > Request authorization from within that area > The user clicks “accept” > Have the redirect_uri be the http

OAuth Tips

2016-08-24 Thread Sannyasin Siddhanathaswami
Aloha, I’m hoping to connect to an API that uses OAuth (https://apidocs.sky.blackbaud.com/docs/authorization/implicit-flow/). I think I understand how it works but wanted some tips on how to implement it in 4D Client/Server. Mainly I wonder how to do the redirect_uri part. My concept of how