1. Juan Pedro Sanz Diez
  2. PowerServer 2020 or older (Obsolete)
  3. Thursday, 29 August 2019 11:57 AM UTC

 

Hello.

We are in the migration proccess from server-client to powerserver Web. We have a new necessity for our application that is calling an API using Auth 2.0

We have look out the help reference and we have seen that there are two example ways for implement it:

1º (Recommended) Using OAuthClient.

In this example, following objects are used

OAuthClient
TokenRequest
TokenResponse
OAuthRequest
ResourceResponse

None of them are powerserver Web supported.

2º (using HTTPClient)

Following objects are used

HttpClient
CoderObject
Jsonpackage

Neither CoderObject, nor Jsonpackage are Web supported. For Jsonpackage we can use supoorted JsonGenerator and JsonParser.

But for CoderObject, ¿Is there any altenative in powerserver WEB?

I have seen in some post, that CoderObject will be a priority in the next major version (2021 I think). Until that date, could we use any alternative to calling an API using Auth 2.0.?, Which one?

 

Thanks in advance.

 

Juan Pedro Sanz Díez

 

Julie Jiang @Appeon Accepted Answer Pending Moderation
  1. Friday, 30 August 2019 01:11 AM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 1

Hi Juan, 

We are adding these objects (OAuthClient, HTTPClient, JSONPackage, etc.) to PowerServer Web. Yes you can expect them in the coming PowerServer major version that will come out around the end of this year.

Note that we do need some time to sync the features from PowerBuilder to PowerServer.

Best regards... Julie

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 29 August 2019 15:19 PM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 2

Hi Juan;

  FWIW: To support oAuth 2.0, JSON, Encode/Decode, etc functionality in PowerServer Apps today (for both Web & Mobile) - I would create a Web Service to "broker" these missing pieces of functionality. Then it would work for   any client App type. Food for thought.

Regards ... Chris

Comment
There are no comments made yet.
mike S Accepted Answer Pending Moderation
  1. Thursday, 29 August 2019 13:19 PM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 3

I don't know why they didn't include all the objects for web apis in PS2019.   they only gave us half of what we need.

 

in the meantime you can use rolands api calls:

http://www.topwizprogramming.com/freecode_bcrypt.html

 

this is  ONLY for web calls, it won't work for mobile

Comment
  1. Marco Meoni
  2. Friday, 30 August 2019 16:05 PM UTC
Mike,

this takes time to trickle through as new PB features need to be also implemented in PowerServer target languages.

And, honestly, recently Appeon have delivered *a lot* of them. :-)

Best,

m
  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.