1. Ricardo Colarina
  2. PowerBuilder
  3. Monday, 21 January 2019 00:32 AM UTC

Hi Guys,

I'm using PB 2017 R3 at the moment and have been trying-out HTTPClient.  Can someone please let me know how I can get it to use Windows Authentication for authorization/authentication?  An example code will be great.

Thanks.

Ricardo

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 22 January 2019 18:09 PM UTC
  2. PowerBuilder
  3. # 1

Hi Ricardo;

  Are you thinking of using the MS-Windows User's ID & Password with say the TLS 1.2 protocol but utilizing  encryption for this?

FYI: https://en.wikipedia.org/wiki/Digest_access_authentication

Regards ... Chris

Comment
There are no comments made yet.
Ricardo Colarina Accepted Answer Pending Moderation
  1. Wednesday, 23 January 2019 05:03 AM UTC
  2. PowerBuilder
  3. # 2

Hi Chris,

Thanks very much for your response.  I was just chatting with a workmate who's a SharePoint/.Net Developer, but no PowerBuilder background, and he says I should be using NTLM authentication, passing the credentials.  I've been Googling for examples on how to do this (using HTTPClient GET), passing an internal SharePoint URL http://demdgdocuments/1-111/Documents/2017, for example, but still no luck.  Can you please give me example codes on how I go about using NTLM authentication using the new PB objects like HTTPClient?  If I pass the current user's credentials, how do I properly get it from Windows.  When I use GetURL, I get no issues at all with the same URL.

Thanks.

Ricardo

Comment
  1. Ricardo Colarina
  2. Thursday, 24 January 2019 02:29 AM UTC
Thanks Chris. I guess I'll just abandon using HTTPClient on the functionality (for now) as it is working with no issues with GetURL. Hopefully someone can jump in with a solution.



Cheers, Ricardo
  1. Helpful
  1. Ricardo Colarina
  2. Friday, 25 January 2019 02:12 AM UTC
Thanks Chris. Will have a look.

Cheers Ricardo
  1. Helpful
There are no comments made yet.
Christophe Dufourmantelle Accepted Answer Pending Moderation
  1. Thursday, 31 January 2019 10:26 AM UTC
  2. PowerBuilder
  3. # 3

Hi Ricardo,

You can implement Windows Authentication for authorization/authentication by using Visual Guard : you will add a set of PBLs & dlls to your PB App. They include low-level functions, that will create a proxy and connect automatically to Active Directory, to identify users with their Windows account.

You can then choose whether users should provide their Windows credentials again before entering the application, or if they would be logged-in automatically (Single Sign-On )...

Regards,
Christophe

Comment
  1. Ricardo Colarina
  2. Thursday, 31 January 2019 20:39 PM UTC
Hi Christophe,

Thanks for your response. However, I'm not looking into implementing the solution using 3rd party tools. I'm just interested in using the new PB HTTPClient object for the exercise.

Cheers,

Ricardo
  1. Helpful
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 30 November 2022 02:56 AM UTC
  2. PowerBuilder
  3. # 4

Hi Ricardo, our plan is try to support Windows Authentication method for the HTTPClient object in PB 2022 R2.

Comment
  1. Shannon Axon
  2. Thursday, 20 April 2023 19:42 PM UTC
Hi Armeen, I'm wondering if you you have any idea when this might be addressed? I didn't see it in the list of bug fixes in the PowerBuilder 2022 MR (build 1900) that was just rolled out.
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Friday, 21 April 2023 01:40 AM UTC
Hi Shannon, As I mentioned above it is planned for PB 2022 R2. "R" is Revision. "MR" is maintenance release. We generally do not add any new features in an MR just bug fixes. PB 2022 R2 is scheduled to release in August. I would suggest to get head start by first upgrading to PB 2022 because the delta effort to migrate of 2022 to 2022 R2 should be negligible.
  1. Helpful
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.