Modifying the authentication template

The Issuer URI of authorization server must be provided so that the PowerServer Web APIs can use it to validate the token passed from the client. And if validation is successful, it can get data from the database.

Get the Issuer URI from API setting of Okta: https://dev-02923419.okta.com/oauth2/default.

You can also modify the "Authentication:Authority" which is https://${yourOktaDomain}/oauth2/default. Get yourOktaDomain from General setting of Okta: dev-02923419.okta.com.

Open the Authentication.json file, and specify the Issuer URI of authorization server in the "Authentication:Authority" key. For example:

"Authentication:Authority": "https://dev-02923419.okta.com/oauth2/default"


Note

The authentication template will be restored if the "Auth Template" option is changed and the PowerServer C# solution is re-built from the PowerBuilder IDE. Therefore, do not change the "Auth Template" option if you have made changes to the template in the solution (otherwise changes will be lost).