1. Moshe Tangi
  2. PowerBuilder
  3. Tuesday, 6 October 2020 09:48 AM UTC

Hi all

 

I need to pass an IntegratedAuthrization username + password to a Rest api ( 2017 r3 )

1. Bolb(username + password , Encoding....)

2. Decoding64 ( blob)

3. httpcleint.SetReqeustHeader( "Authrization" , "Basic " + ( ....))

The system admin see my call but NO user name + passord .

Why ??

 

Thanks

Accepted Answer
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Tuesday, 6 October 2020 10:30 AM UTC
  2. PowerBuilder
  3. # Permalink

Hi Moshi, 

Maybe there's a spelling error:
In the few lines you've posted here, there are only 5 errors. Especially "Authrization" which should be "Authorization".
Maybe you should also Encode instead of Decode?

I'm surely not an expert on this and I'm probably not going to be very good at helping you since I haven't had the time/need to call any Rest API myself yet.

Here's an example which looks like what your are trying to do:
https://www.appeon.com/developers/get-help/knowledgebase/how-use-httpclient-or-restclient-call-api-basic-authentication.html

kind regards

 

Comment
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.