1. Trevor Holyoak
  2. PowerBuilder
  3. Thursday, 15 March 2018 18:21 PM UTC

We are currently using MSXML (for Appeon clients) and the Chilkat ActiveX objects (for regular PB clients) to do http and https requests within our PB 11.5 application. It appears that we might be able to use the new HTTPClient object instead as we migrate to the newest version of PB, since it appears to support TLS 1.2. However, I don't see any mention of even Basic Authentication being supported. Is authentication supported at all, or is it planned in the near future?

René Ullrich Accepted Answer Pending Moderation
  1. Friday, 16 March 2018 07:50 AM UTC
  2. PowerBuilder
  3. # 1

I have not used new HTTPClient object, so I can't say what's the best method to use Basic Authentication using it.

But you may try to set the Basic Authentication in the request header.

ls_authentication = ls_username + ":" + ls_password

SetRequestHeader ("Authorization", "Basic " + Base64(ls_authentication))

You need a function to encode the Authentication string with Base64 (in example code the function Base64). You may use the Microsoft Crypto API. A Code example you may find here.

 

Comment
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Friday, 16 March 2018 17:50 PM UTC
  2. PowerBuilder
  3. # 2

OAuth support coming in PB 2017 R3, scheduled for July 31, 2018.

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.