Re: 4D Web Application and SAML or OpenID Connect
Hi Thanks for all the responses. As always, there is more than one way to do it. Looks like OpenID Connect may be simpler. We've already got some OAuth code in use for external application interfaces. Best regards Keith White Synergist Express Ltd, UK. 4697775 ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: 4D Web Application and SAML or OpenID Connect
> On 5 Nov 2019, at 17:53, Narinder Chandi via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Has anyone done work on implementing either SAML or OpenID Connect protocol > in native 4D code for single sign-on in 4D Web Applications? I know about > 4D's work on single sign on using Active Directory and/or LDAP etc, but this > question is specifically for SAML or OpenID Connect. Hi Keith, Yes, I have experience with Open ID Connect. A customer of mine got the requirement to handle user authentication through an OpenID Connect provider. I think the customer was using Microsoft’s Azure Active Directory. So basically I had to replace the login screen of their desktop application with the login screen of the OpenID provider. If you are familiar with OAuth2, then it works quite the same. In a web area we show the provider’s login screen. Upon successful login, the 4D app receives a JSON Web Token (JWT), that contains the user’s information with a digital signature on it. This JWT then needed to be verified against X509 digital certificates in the JWKS format. That was a bit more of a technical challenge, but I developed this functionality for NTK Plugin. I do not remember the exact details because it is almost 2 years ago that I have developed this. But let me know if you have any questions or need help. Kind regards, - Rob Laveaux Pluggers Software Scholekstersingel 48 2496 MP Den Haag The Netherlands Email: rob.lave...@pluggers.nl Website: http://www.pluggers.nl ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
AW: 4D Web Application and SAML or OpenID Connect
Hi, we do something in this area. We use an Apache webserver in front of the 4D web server as a reverse proxy or gateway. There is an Apache module called mod_auth_openidc (https://github.com/zmartzone/mod_auth_openidc) which is configured to use an external identity provider (IP). In our case this is a Keycloak server (https://www.keycloak.org/). On the 4D side you have to check the additional headers delivered by the module only. Further questions regarding the configuration of the module I'm not able to answer, this were done by external colleagues. There is comprehensive documentation on the mentioned websites. Regards Lutz Epperlein ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: 4D Web Application and SAML or OpenID Connect
Keith, Hi. It looks like it would be a lot of work to do a native implementation of OIDC in 4D? Why not instead look at providing support for services such as OneLogin, Auth0, AWS Cognito instead? Certainly the former 2 of those appear to offer REST APIs to. Cognito doesn't offer a REST API but there is a PHP library (I did an integration with that last year, non-4D solution) but for your purposes you can avoid PHP I think by integrating with the aws-cli and LEP? Regards, Narinder Chandi, ToolBox Systems Ltd. https://toolbox.systems I am available for new consulting opportunities… http://4d.1045681.n5.nabble.com/ANN-4D-Developer-Available-td5765443.html -- -Original Message- From: 4D_Tech <4d_tech-boun...@lists.4d.com> on behalf of 4D Tech Mailing List <4d_tech@lists.4d.com> Reply-To: 4D Tech Mailing List <4d_tech@lists.4d.com> Date: Monday, 4 November 2019 at 18:01 To: 4D Tech Mailing List <4d_tech@lists.4d.com> Cc: Keith White Subject: 4D Web Application and SAML or OpenID Connect Hi Has anyone done work on implementing either SAML or OpenID Connect protocol in native 4D code for single sign-on in 4D Web Applications? I know about 4D's work on single sign on using Active Directory and/or LDAP etc, but this question is specifically for SAML or OpenID Connect. Services like https://www.onelogin.com/ support these protocols and we're being asked more about it. PHP is one way I suppose, but we currently don't use PHP and I'd prefer a native 4D solution. Many thanks. Best regards Keith White Synergist Express Ltd, UK. 4697775 ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com ** ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
4D Web Application and SAML or OpenID Connect
Hi Has anyone done work on implementing either SAML or OpenID Connect protocol in native 4D code for single sign-on in 4D Web Applications? I know about 4D's work on single sign on using Active Directory and/or LDAP etc, but this question is specifically for SAML or OpenID Connect. Services like https://www.onelogin.com/ support these protocols and we're being asked more about it. PHP is one way I suppose, but we currently don't use PHP and I'd prefer a native 4D solution. Many thanks. Best regards Keith White Synergist Express Ltd, UK. 4697775 ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
RE: Losing memory on 4D web application
Hi Dani, I am not using the Object Tools plug-in. The only plug-in I am using is 4D InternetCommands Thank you, Brad -Original Message- From: Dani Beaubien [mailto:dbeaub...@openroaddevelopment.com] Sent: Friday, June 08, 2018 2:35 PM To: 4D iNug Technical <4d_tech@lists.4d.com> Cc: Olson, Brad Subject: Re: Losing memory on 4D web application Email Security Warning: The following message was sent from an external e-mail address. Exercise caution when opening attachments, clicking links, or exchanging information. Hi Brad, Are you using ObjectTools? We have a similar setup and we were leaking mysteriously. I did a bunch of research and I landed on that ObjectTools was the issue. I switched everything away to C_OBJECTS (no other changes) and the memory issues went away. ObjectTools is pretty heavily used plugin so I as surprised. It might have to do with it running in a web process. Not sure. Regardless, my problem was solved by going to C_OBJECTs. Dani > On Jun 8, 2018, at 11:50 AM, Olson, Brad via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I have a large 4D web intranet application that, over the course of a week, > runs out of memory. It is running 4D Server 16R4 on Windows Server 2012, > with 16GB RAM, and no other applications are running on it. This application > does a lot of calls to a middleware server that returns large quantities of > data in XML format. The returned data is parsed using the XML DOM commands, > but in each case I am calling the DOM CLOSE XML command. > > I have checked that all blobs are being resized to 0, and I have included at > the bottom of each web page a wrapper that clears variables and reduces all > table selections to 0. > > jQuery ajax calls are used extensively in the web pages. The resulting data > from these ajax calls is passed back from 4D in html files that use 4D tags > and formats the data into JSON format. At the bottom of each of these files > I have also put the Clear Variables and Reduce Selection wrappers. > > What am I missing? Are there any tools or logs that will tell which methods > are not releasing memory? What else should I be checking? > > Thank you for any assistance, > > Brad > ** > 4D Internet Users Group (4D iNUG) > FAQ: > http://secure-web.cisco.com/1e7adGti34aX6bA3Zcd9eLpO9GXMcygzKRbLIod9ThKyqMQujtdtdPiysw_1bOr7ICbkcRgMeCDxEkGtZeJWqRSY_Wzerm0W3_J9D8agrymJSm5O2PsJUemF8onBMmWzllhM4COmwdd8YUj3Jq0TceB4Xef1SvglYBzWDY2lJCicmrNtM8N3sIvVL0SrlC-wADokcqh1AkCYRfV-1FzM-EqkMdZfJsRNnf-5GQtMtvLimKT9GVXMwJUJrbHT82l-Fvkva3TZiFqi5eSZRs_UyU_Oqq0AUq-XfQdvav6O7hl1L5D0WnTNhoj5wDqqrhRGE/http%3A%2F%2Flists.4d.com%2Ffaqnug.html > Archive: > http://secure-web.cisco.com/1vktuvllCJE-eyOTvrhuJBGudyeVnOwonltWre91H6VI2FwYTo4yny4UaXY73PQWdkbtlN2SpbIxwOkATlHFHyAkLrzqt1ZUCam_cChlLu4ueHJTK79nV8mHOGK0s5YU9HExIDj2CT8Sc0Z6X01L26dKtdt3u9zHngXY7bZgwFsI2MCxIBnNXc-eq5ctEJx5VKp_r_34aupJMXdgKi3AGjE3UbnS1eeigz0WK_kuHiennWS6mKNG4fWT8FlcfO0yK6iBkJTxtH3pXSArnUHOvrc6MqRfl7rVG-5c9lrHY11bpLICcnaJjD2WrhGdQDUb-/http%3A%2F%2Flists.4d.com%2Farchives.html > Options: > https://secure-web.cisco.com/1iIkS9EgAFppCHkuk7gnQ-KV4Xgy0UQ-JHJKH7Jsw-AqcSKxPq_sGCgNf1vDkZk3xFvGReLiYl9BrOmGd10B4VLSnZ48ZTOg_Au57QDjLGcSpiQLZMBClgg_WxkOaDjt5zDvXxuLPg0ofPREJpSbQcPX50xi_C-m_JM5XPOjSNwLvHLZsiOi_RLKdLRFn5_8eNGyj3zDorZHWghm6FdfLV1_FcqC8K9tPbsfCH4AfOT0045cQFqfHQDUKiS5Uspn8jZzjLRoTYVo9J1IYoFm2co9lQNorbkhr5tR4Vck5UxwTDhFZ_4HT-juuWbbTw-BU/https%3A%2F%2Flists.4d.com%2Fmailman%2Foptions%2F4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ** ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: Losing memory on 4D web application
Aparajita: We loved ObjectTools at Jonoke for well over a decade. We could not have done what we did without it. It was fantastic. Thanks for ObjectTools over all those years. We never had a memory leak from it while we used it. It is great having plug-in developers creating tools for us, while 4D concentrates its development efforts on other things. As developers we win. Yes, we now use 4D Objects. Adam wrote our own dot notation tool. Yes, we will likely discard that to the use of 4D’s in the next year, but again it is getting the job done, while 4D was getting other things done in 4D. Jody > On Jun 9, 2018, at 12:56 PM, Aparajita Fishman via 4D_Tech > <4d_tech@lists.4d.com> wrote: > >> Are you using ObjectTools? We have a similar setup and we were leaking >> mysteriously. I did a bunch of research and I landed on that ObjectTools >> was the issue. >> I switched everything away to C_OBJECTS (no other changes) and the memory >> issues went away. > > For the record, ObjectTools itself might be not leaking, rather there might > have been places in your code where you didn’t clear an object when finished > with it. > > Having said that, using C_OBJECT is of course preferable because you never > have to worry about memory leaks. I wrote ObjectTools in 1991. It only took > 4D 25 years to implement the equivalent. :-) > > - Aparajita ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: Losing memory on 4D web application
> On 10 Jun 2018, at 04:56 AEST, Aparajita Fishman via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > I wrote ObjectTools in 1991. It only took 4D 25 years to implement the > equivalent. :-) I hope you continue developing it even if there is something 4D did. Cheers Jörg ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: Losing memory on 4D web application
> Are you using ObjectTools? We have a similar setup and we were leaking > mysteriously. I did a bunch of research and I landed on that ObjectTools was > the issue. > I switched everything away to C_OBJECTS (no other changes) and the memory > issues went away. For the record, ObjectTools itself might be not leaking, rather there might have been places in your code where you didn’t clear an object when finished with it. Having said that, using C_OBJECT is of course preferable because you never have to worry about memory leaks. I wrote ObjectTools in 1991. It only took 4D 25 years to implement the equivalent. :-) - Aparajita ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: Losing memory on 4D web application
Hi Brad, Are you using ObjectTools? We have a similar setup and we were leaking mysteriously. I did a bunch of research and I landed on that ObjectTools was the issue. I switched everything away to C_OBJECTS (no other changes) and the memory issues went away. ObjectTools is pretty heavily used plugin so I as surprised. It might have to do with it running in a web process. Not sure. Regardless, my problem was solved by going to C_OBJECTs. Dani > On Jun 8, 2018, at 11:50 AM, Olson, Brad via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I have a large 4D web intranet application that, over the course of a week, > runs out of memory. It is running 4D Server 16R4 on Windows Server 2012, > with 16GB RAM, and no other applications are running on it. This application > does a lot of calls to a middleware server that returns large quantities of > data in XML format. The returned data is parsed using the XML DOM commands, > but in each case I am calling the DOM CLOSE XML command. > > I have checked that all blobs are being resized to 0, and I have included at > the bottom of each web page a wrapper that clears variables and reduces all > table selections to 0. > > jQuery ajax calls are used extensively in the web pages. The resulting data > from these ajax calls is passed back from 4D in html files that use 4D tags > and formats the data into JSON format. At the bottom of each of these files > I have also put the Clear Variables and Reduce Selection wrappers. > > What am I missing? Are there any tools or logs that will tell which methods > are not releasing memory? What else should I be checking? > > Thank you for any assistance, > > Brad > ** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: https://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ** ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Losing memory on 4D web application
I have a large 4D web intranet application that, over the course of a week, runs out of memory. It is running 4D Server 16R4 on Windows Server 2012, with 16GB RAM, and no other applications are running on it. This application does a lot of calls to a middleware server that returns large quantities of data in XML format. The returned data is parsed using the XML DOM commands, but in each case I am calling the DOM CLOSE XML command. I have checked that all blobs are being resized to 0, and I have included at the bottom of each web page a wrapper that clears variables and reduces all table selections to 0. jQuery ajax calls are used extensively in the web pages. The resulting data from these ajax calls is passed back from 4D in html files that use 4D tags and formats the data into JSON format. At the bottom of each of these files I have also put the Clear Variables and Reduce Selection wrappers. What am I missing? Are there any tools or logs that will tell which methods are not releasing memory? What else should I be checking? Thank you for any assistance, Brad ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
RE: 4D Web Application
That's correct. > It's worth noting that if you use the NTK solution you are still obliged to > purchase the web server license. If you want to serve web clients from 4D, you are supposed to have a Web Server license for 4D, even if you are using NTK to do the serving. Kind Regards, Tim PENNER ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
RE: 4D Web Application
Hi Ferdinando, > I can use 4D Web Application Expansion even with a stand alone compiled 4d > application? If it is not merged (double-clickable) then you could use the "4D Web Application Server" license: http://www.4d.com/products/4dv15/4dwebappserver.html ^ This license allows a 4D (single user) application to run in compiled mode with access to the 4D Web Server (unlimited connections) If you need it to run a merged (double-clickable) application then you need OEM Desktop: http://www.4d.com/products/4dv15/4doemdesktop.html Here is a comparison chart for deployment licenses: http://www.4d.com/products/4dv15/deployment.html -Tim ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
4D Web Application
Hi, I can use 4D Web Application Expansion even with a stand alone compiled 4d application? Thanks Ferdinando ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **