How to extend PEGA service to another consumer with different authentication?

PEGA Application exposed a service to one consumer with OAuth authentication. A new consumer wants to leverage the service with basic authentication.how can we do this?

@pundarit

Hi you can try in below ways

Option1: If we have a middleware like AWS API Gateway / APIGEE then that layer will handle this transformation. But, this adds a network latency.

Assumption: There is no middleware and clients are hitting the PEGA App directly.

Option2: Create a separate service package for the new consumer. This option adds overhead maintenance. For single service rest operation, we are maintaining two different service packages.

Option3: In this case, have a custom authentication service for the service package — then conditionally handle both authentications in the respective authentication activity. This option avoids network latency and overhead maintenance.

As per my opinion Option 3 is recommended.