1. Aimee Stephens
  2. PowerBuilder
  3. Monday, 28 August 2023 20:50 PM UTC

We're using PB 2022 R2 and our cient needs us to use Okta for authentication.  I couldn't find any examples on Code Exchange and the documentation covers PowerServer. I set up an app with Okta and have the url, client id and client secret but when I make the call a generic Okta window opens instead of a login window.  I thought I could use the same code I used for authenticating through Google (using Appeon documentation) and just changed the url and all other required fields.  Does anyone have PowerClient code that uses Okta for authentication?

Bruce Armstrong Accepted Answer Pending Moderation
  1. Tuesday, 29 August 2023 15:56 PM UTC
  2. PowerBuilder
  3. # 1

Mostly likely the method you're using with Okta is OpenID rather than OAuth.  For OpenID, you need to have the PowerBuilder application open a window that listens on a port to receive the auth code back from Okta.  See:  https://devforum.okta.com/t/oauth2-authentication-by-okta-for-desktop-application-e-g-powerbuilder/20019

I did a session for Elevate 2022 where I demonstrated how to use OpenID:  https://www.youtube.com/watch?v=RwjxH2yHXlE

The sample code for that session is on CodeXchange.

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.