NetTalk Central

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Tim

Pages: [1]
1
Web Server - Ask For Help / Re: WebServer Single Sign On (SSO) SAML Request
« on: September 03, 2020, 05:26:16 AM »
A JavaScript function (my first) did the trick. Thank you Bruce!

2
Web Server - Ask For Help / Re: Session Timer expiration
« on: August 28, 2020, 07:10:07 AM »
This doesn't solve your problem directly, but this may be a helpful alternative.

I use a "Saved" column that is populated = 1 when the user saves the record (and all else is validated). Browses have a Saved = 1 included in the filter/select statement. If a user begins to create a record and walks away without saving: the Session is timed-out, the browser is directed to the login page, and the partial record is never seen by the user b/c the Saved column was not populated with a 1.

Of course, this affects the users if they spent a lot of effort filling-in information, walk away, and the record is "lost". I haven't had any difficulties in this regard, but my timeout is longer than 15 minutes.

3
Hi Bruce,

Thank you for your reply. Just to make sure that I understand, and to provide more info...

I am building some XML, encoding the XML, placing the encoded XML in the below SAMLResponse field, and POSTing the below to the vendor's site:

POST [vendor's URL] HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Accept-Language: en
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.16) Gecko/20110319 Firefox/3.6.16 ( .NET CLR 3.5.30729; .NET4.0C)
Host: [vendor's site]
Content-Length: 5427
Connection: Keep-Alive

SAMLResponse=[a bunch of characters like this:PHNhbWxwOlJlc3B, not XML]&RelayState=[vendor's URL]

After sending the above, the vendor's site responds with their logged-in page that should display on the user's browser. When I've done SOAP in the past, I simply receive data and handle it accordingly. This time, I am trying to send the below and simultaneously have the user link to the vendor's page. Sorry if this doesn't make sense or does not give you sufficient info; this is the best I know how to explain it.

Are you suggesting that the JavaScript function handle building and encoding the XML?

Thank you again,

Tim

4
Web Server - Ask For Help / WebServer Single Sign On (SSO) SAML Request
« on: August 27, 2020, 08:04:12 AM »
I have a NetTalk Web Server site that should pass authenticated users to a vendor site via a SSO SAML request. I can successfully send the request and login to the vendor's site using a NetWebClient post (I see the successful login pages being received in the PageReceived method). However, I cannot link-up, post, send, redirect, whatever, the received pages to the user's browser.

Is there a web server method which links/posts to another party's site x-www-form-urlencoded content type AND have the user's browser follow?

I tried a p_web.script p_web.windowopen on the URL after login. It didn't work. I'm pretty sure it doesn't work because cookies aren't being sent.

Does anyone have any ideas? Thanks in advance.

Clarion 11
NetTalk 11.29

5
The Rest - Ask For Help / Re: SSL SOAP Request - Certificates but No Key
« on: November 25, 2014, 10:17:06 AM »
All is good now.

BTW, for those that may need this in the future, in my case I had to add the following too:
Web.SSLMethod = NET:SSLMethodSSLv23

Thank you for your help.

6
The Rest - Ask For Help / Re: SSL SOAP Request - Certificates but No Key
« on: November 20, 2014, 04:57:09 AM »
Hi Bruce,

Thank you for the reply.

I saw CA_Roots.pem commented in the example, but the host did not provide a file with a .pem extension. I only have files with .cer extensions: Their URL .cer, RootCA.cer, and Chain.cer.

I did try:
(1) renaming the RootCA.cer file to CA_Roots.pem
(2) changed code to Web.SSLCertificateOptions.CARootFile = 'CA_Roots.pem'
(3) Kept as-is:
Web.SSLCertificateOptions.DontVerifyRemoteCertificateCommonName = 0
Web.SSLCertificateOptions.DontVerifyRemoteCertificateWithCARoot = 0

The above didn't work. SSL Error 11.

Any other ideas please.

Thanks,

Tim

7
The Rest - Ask For Help / SSL SOAP Request - Certificates but No Key
« on: November 19, 2014, 12:56:30 PM »
I am writing a SOAP request to a server which requires SSL. I receive this error when posting the request: error number -53 which means Open Timeout or Failure error - [SSL Error = 11]. I gather there is an SSL authentication issue.

We are connected to the host via a VPN. My counterpart at the host site said there is no cert key. But that we have to have the certs loaded to the keystore on the server. She provided 3 certificate files: 1 file with the URL.cer, RootCA.cer, and Chain.cer. She also said there is a root certificate, and an intermediate certificate, the Root certificate is required, at a minimum; however, depending on my system the URL cert may also need to be installed.

The following is my SSL code. However, I tried every permuation of the following settings that I can think of.

    Web.SSL = 1
    Web.SSLCertificateOptions.CertificateFile = ''
    Web.SSLCertificateOptions.PrivateKeyFile = ''   
    Web.SSLCertificateOptions.DontVerifyRemoteCertificateCommonName = 0
    Web.SSLCertificateOptions.DontVerifyRemoteCertificateWithCARoot = 0
    Web.SSLCertificateOptions.CARootFile = '.\RootCA.cer'

Any help would be greatly appreciated.

Pages: [1]