Question
TCS
IN
Last activity: 10 Jan 2024 23:22 EST
Connect REST with oAuth 2.0 with authorization code - could not acquire fresh access token
I am working on Connecting to a REST service which have oAuth 2.0 with Authorization code. so i created a REST service and oAuth 2.0 client registration in Pega and i tested with Postman. Basically i tried grant types with authorization code, client credentials and password credentials in Postman. Everything worked fine. I created an authentication profile with authorization code grant type and called it in a Connect-REST rule. But when I tried to call the connect rest rule with in an activity, i am getting 'could not acquire fresh access token' error. i am getting same error when i used connect rest rule in datapage. Same Connect REST rules works fine with client credentials and password credentials grant types.
***Edited by Moderator Rupashree to add Capability tags***