Posts

Showing posts from August, 2020

Pega SSO using OpenID connect authentication service

Image
We can create a new OpenID Connect authentication service in Pega using google as the OpenID Identity provider and how we can log in Pega using the google credentials.Pega supports OpenID authentication service in versions 7.4 & above. Sequence of steps in this implementation: 1) User tries to login into a Pega application using Google login credentials 2) Pega application sends an auth request to Google(OpenID Identity Provider) 3) A Google login screen appears and allows the user to enter id/pwd to pass the credentials to Identity Provider 4) Google generates an auth code and sends it back to Pega app 5) After receiving the auth code, Pega requests for an access token and receives it from the Identity Provider 6) After getting the token, Pega sends a request and retrieves the user info necessary for authentication To work on the above steps, we need to login into google's developer portal: https://console.developers.google.com/project?pli=1 and  1) Create a new project:PegaPr...

Is it possible to enable SSL on localhost running on Tomcat?

Image
 The answer is YES.  Enabling of SSL on PegaV82 running on Tomcat and is possible with the help of infrastructure work. To do this simple exercise, here are the simple steps to follow. 1) First, we need to create a keystore.jks file and here is the java command to run the keystore.exe tool from our java path.  2) Second, copy this jks file in our /tomcat/config path and update the <Connector> configuration from server.xml file present in the same path: /tomcat/config.  3) Finally, reboot the tomcat server after making the xml file changes and we can try with  https://localhost:8443/prweb/ PRServlet   to launch Pega and login with our id/pwd References:  1) google.com 2) community.pega.com 3) Pega developer help

Can we call a JavaScript function from Pega activity/DataTransform?

Image
The answer is YES but there is no OOTB feature provided by Pega to fulfil this. There mught be various options to achieve this functionality but I am exlaining here to crack it by using java code written in a simple Pega function. This Pega function would act like a wrapper to cover the java logic and can be called in not only just activity/DT call but wherever we have a possibility. Java has a package called "javax.script.*" where we have all the invocation methods to run the JS code. This code is tested in Pega V7.x and V8.x but I am not 100% sure about prior versions of Pega. The idea behind this tiny exercise is like we call a js file (SampleJS.js) from the server path (eg:/tomcat/lib)and execute the JS function within the server to get the o/p value from the function logic.  Here are the simple steps to be followed in implementing this work.   1) Create a Pega function(eg:RunJSFunction) having a parameter of js file location (/tomcat/lib/misc/SampleJS.js)  2) Call th...

AWS S3 integration from Pega V8

Image
Brief idea on AWS S3: Amazon S3 or Amazon Simple Storage Service is a service offered by Amazon Web Services (AWS) that provides object storage through a web service interface.Amazon S3 uses the same scalable storage infrastructure that Amazon.com uses to run its global e-commerce network.Amazon S3 can be employed to store any type of object which allows for uses like storage for Internet applications, backup and recovery, disaster recovery, data archives, data lakes for analytics, and hybrid cloud storage. The basic storage units of Amazon S3 are objects which are organized into buckets. Each object is identified by a unique, user-assigned key.Buckets can be managed using either the console provided by Amazon S3, programmatically using the AWS SDK, or with the Amazon S3 REST application programming interface (API). Objects can be managed using the AWS SDK or with the Amazon S3 REST API.Amazon S3 provides an API for developers.The AWS console provides tools for managing and uploadi...

Azure Storage Acct. integration from Pega V8

Image
Brief idea on Storage acct. An Azure storage account contains all of your Azure Storage data objects: blobs, files, queues, tables, and disks. The storage account provides a unique namespace for your Azure Storage data that is accessible from anywhere in the world over HTTP or HTTPS. Data in your Azure storage account is durable and highly available, secure, and massively scalable.  You're billed for Azure Storage based on your storage account usage. All objects in a storage account are billed together as a group.  Storage costs are calculated according to the following factors:  Region, Account type,  Access tier,  Capacity,  Replication, Transactions For more details, you can refer Microsoft site. Here are the steps to be followed while implementing the sample exercise to store/export the Pega RAP file into Azure Storage acct. Also, we can import/upload the RAP file from the same Storage acct. Note that this exercise is an alternative way to store the...