Purpose – PB Docs 2022
Purpose In this section, we will modify the PowerBuilder application source code and the PowerServer project settings to achieve the following results: Gets the user credential from the application login window, then authenticates it with the Amazon Cognito User Pools and gets an identity token. Uses the identity token to access data from the PowerServer…
Installing ASP.NET Core Hosting Bundle – PB Docs 2022
Installing ASP.NET Core Hosting Bundle ASP.NET Core Hosting Bundle is required if you want the IIS process manager to automatically launch the ASP.NET Core application (such as PowerServer Web APIs) deployed to the IIS website. Download and install ASP.NET Core Hosting Bundle 6.0. The version of hosting bundle must match with the version of .NET…
Configuring and deploying the PowerServer project – PB Docs 2022
Configuring and deploying the PowerServer project Let’s directly use the sample PowerServer project for the two demo applications and deploy them one by one. For Example Sales App (SalesDemo), you can locate the salesdemo_cloud project file in salesdemo.pbl, and double click to open it in the painter. For Example Graph App, you can locate the…
Modify and re-deploy the PowerServer project – PB Docs 2022
Modify and re-deploy the PowerServer project Step 1: Add the INI file CloudSetting.ini to the Files preloaded in uncompressed format section under the Application page. Step 2: Select RESTClient Support and WebBrowser Support (Used for scenario 3) under the Runtime files group in the Application page > Advanced tab. Step 3: Double check that Use…
Integrating with Jenkins – PB Docs 2022
Integrating with Jenkins The PBAutoBuild220 command can integrate with Jenkins to automate the build and deployment process for PowerServer projects. Refer to the Jenkins user documentations for how to use Jenkins. Following gives a few examples on how to integrate the PBAutoBuild220 and dotnet commands with Jenkins. Example 1: to execute the PBAutoBuild220 command and…
Installing Apache HTTP Server – PB Docs 2022
Installing Apache HTTP Server Step 1: Select a binary package provider for Apache for Windows from https://httpd.apache.org/docs/current/platform/windows.html#down. Step 2: In this tutorial, select Apache Lounge, and then download the following packages from https://www.apachelounge.com/download/. Visual C++ Redistributable for Visual Studio 2015 – 2019: https://aka.ms/vs/16/release/VC_redist.x64.exe Apache 2.4.47 Win64: https://www.apachelounge.com/download/VS16/binaries/httpd-2.4.47-win64-VS16.zip Step 3: Double click VC_redist.x64.exe to install the…
Modifying the Web API URL – PB Docs 2022
Modifying the Web API URL You must modify the Web API URL to point to the Apache reverse proxy server. Step 1: Go to the [appname] folder (for example, “salesdemo_cloud”) on the web server and open the apprun.json file in a text editor. The web server and the Apache reverse proxy server can reside in…
Installing Web Server (IIS) – PB Docs 2022
Installing Web Server (IIS) Step 1: In Windows Server 2019, open Server Manager, and then select Add roles and features. Step 2: In the Add Roles and Features Wizard, click Next several times until the Server Roles section displays. Step 3: Click the check box of Web Server (IIS); and then click Add Features when…
Modifying the authentication template – PB Docs 2022
Modifying the authentication template The Azure AD B2C server address 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. Note The authentication template will be restored if the “Auth Template” option is…
PowerServer components – PB Docs 2022
PowerServer components PowerServer is comprised of two parts: PowerServer Toolkit — Provides utilities for 1) Creating and managing PowerServer projects; 2) Analyzing and compiling the application; 3) Generating and deploying the application web files (PBD files and supporting files); 4) Generating the PowerServer Web APIs C# solution; 5) Compiling and running the PowerServer Web APIs…