1. Berit Sandvik
  2. PowerBuilder
  3. Wednesday, 29 May 2024 08:24 AM UTC

Hi all,

We have a challenge which I hope someone can help us with.

From our PowerBuilder desktop application, we are sending data using REST API to an external company. This requires authentication by logging on to the company's website done by sending an authentication request. This request contains a redirect URI telling where the user will be redirected to when the authentication is accepted.

The question is: What should the redirect URI be and how can our application detect the redirect event? Or is there another way for the application to detect that the authentication is completed so that it can proceed?

Thank you in advance.

Berit Sandvik

 

 

Berit Sandvik Accepted Answer Pending Moderation
  1. Friday, 31 May 2024 08:26 AM UTC
  2. PowerBuilder
  3. # 1

Hi Logan,

Thank you for your answer which was really helpful. The next question is what to enter in the Redirect_uri parameter. Should it be localhost? How should it look like?

 

Thank you.

Comment
  1. Logan Liu @Appeon
  2. Friday, 31 May 2024 09:38 AM UTC
He Berit,

You can add some PowerScript in that event to show the Redirect_uri parameter. It comes from the third-party site you are logging into.

Regards, Logan
  1. Helpful 1
  1. Berit Sandvik
  2. Friday, 31 May 2024 10:15 AM UTC
Thank you!
  1. Helpful
There are no comments made yet.
Berit Sandvik Accepted Answer Pending Moderation
  1. Thursday, 30 May 2024 12:53 PM UTC
  2. PowerBuilder
  3. # 2

Thank you Logan, your answer gave us a breakthrough!

Comment
There are no comments made yet.
Logan Liu @Appeon Accepted Answer Pending Moderation
  1. Thursday, 30 May 2024 01:56 AM UTC
  2. PowerBuilder
  3. # 3

Hi Berit,

If you use WebBrowser to log on to the company's website, please add code to the ResourceRedirect event to handle the redirecturl argument.

ResourceRedirect - - PowerScript Reference (appeon.com)

Regards, Logan

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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.