How to integrate in PowerServer ?

Author: admin 41 views

Pre-Requisites

  • PowerBuilder
  • Power Server
  • Visual-Guard Identity server
  • .Net Core 3.1

Steps to Configure Visual Guard for Power Server

Create and configure the PowerServer Project as described in the Powerbuilder documentation.

In the above step, it will create the PowerServer Project. Open the project in Visual Studio. Add the reference of Novalys.VisualGuard.Security.PowerServer and configure Visual Guard in Startup file.

Configure Visual Guard Power Server configuration in AppConfig file. Here you can add all actions to be excluded, points Visual Guard Identity Server, enables trace and much more.

Now in Visual Guard Console, add your Power Server application in the repository and create the desired permissions with Power Server security.

Click on Power Server Security and assign the CRUD operation accordingly to each data window or table and save it.

You can also map each PB component to new or added table. Right click on the VG application and click “Map PB Components”. Click on Save and Close.

In case new PB components are added to the application, you can refresh the same by right clicking on VG application and click “Reload all components for PB application”.

Assign the permission to role and to user or group accordingly.

Now, in PowerBuilder application login form, authenticate the user via Visual Guard Identity Server. Call the Visual Guard Identity Server and on success, sets the Bearer Token.

Now on each request to Power Server, Visual Guard Token will be passed as Bearer as Authorization Request Header and will permit the user as per the rights assigned.