We have a requirment where we need to send Authorization Header when opening a URL from Pega. Does Pega provide OOTB to do this or is there any way to do this?
@abdulr697 In Pega, when you are making a service call such as Service-REST, you can configure the Authorization header in the Service Package that the Service is attached to. This is defined by the first part of the Service-REST rule identifier. Pega needs to have authenticated the caller of the service before the Service Activity in your REST Service runs. If you are using “Basic” or “OAuth 2.0” authentication, the Authorization HTTP header - including a “Basic” label in the value - is the transport for “Basic” authentication.
If your Authorization header does not adopt the “Basic” scheme, and is some sort of ‘custom’ scheme, then you need to implement a custom Authentication Service and configure the Service Package to use an Authentication Type of “Custom”.
However, if you are trying to open a URL from a Pega application (like a link in a section), there is no OOTB way to send an Authorization Header. You might need to create a custom solution for this.
This is a GenAI-powered tool. All generated answers require validation against the provided references.
Service-Rest : How to make Servie-rest to authenticate using Authorization in H
Is there an OOTB action that allows accessing external web applications from Peg
My requirement was to open video link with authorization.Then went on to download the video string using Service Rest rule and viewd it
@MarijeSchillern Hi, We have a similar requirement. Can you please suggest some custom solution thats been used elsewhere? We are trying XHR request but with no luck. Appreciate your help!
However, if you are trying to open a URL from a Pega application (like a link in a section), there is no OOTB way to send an Authorization Header. You might need to create a custom solution for this.