1. Bernard Ceulemans
  2. PowerBuilder
  3. Wednesday, 16 October 2024 15:56 PM UTC

Hello,

We need to identify on an Oauth server using the grant_type ‘authorization_code’.

To do this, we've taken the example of using the webbrowser.

ls_Url_code = "https://auth.beta.isabel.be/auth/realms/isabel/protocol/openid-connect/auth?client_id=" + ls_id + "&redirect_uri=" + ls_redirect +"&response_type=code&scope=" + ls_Scope + "&state='ZZZ'&ui_locales='fr'"
OpenWithParm (w_webbrowser, ls_Url_code) //via the WebBrowser control
ls_code = Message.Stringparm

The problem is that to connect to the server, we need to install an add-on in our browser.

The add-on has been installed in Chrome and Edge and it works fine if I run the url directly in these browsers.

When we use the webbrowser in our Powerbuilder application, we get the following error message: 

Is it possible to install an add-on on Microsoft Edge WebView2?

Is there another way of recovering the authorization code in Powerbuilder?

Thank you for your help,

 

 

Kai Zhao @Appeon Accepted Answer Pending Moderation
  1. Thursday, 17 October 2024 02:10 AM UTC
  2. PowerBuilder
  3. # 1

Hi Bernard,

Though WebView2 already supports add-on, PB WebBrowser control doesn’t support add-on yet. Sorry that there is no way to work around it. We will record it as a new enhancement/requirement request and transfer it to our product team for consideration.

Regards,
Kai

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.