Closed
How to pass request Headers in userinfo endpoint
Hi,
Greetings. Hope you are well! I have a Oauth 2.0 authentication service and there is a need to pass a custom value to Accept request header. Anyone know how to pass this? I am using Pega Infinity 23.1.2
Regards,
Bharat
@KOMARINATo pass a custom
Acceptheader to theuserinfoendpoint in Pega Infinity 23.1.2, you can configure it in the OAuth 2.0 Provider or the Connect REST rule. In the OAuth Provider rule, add the header under the "Additional Headers" section (e.g.,Accept: application/custom-type). If you're using a Connect REST rule, open it, go to the "Request" tab, and add the header in the "HTTP Headers" section. For dynamic values, create an activity or data transform to populate thepyRequestHeaderspage, settingAcceptto the required value (e.g.,pyRequestHeaders.Accept = "application/custom-type"). Save and test your configuration using Tracer or a tool like Postman to confirm the header is sent correctly. This approach ensures the custom header is passed with your request seamlessly