Skip to content

Commit

Permalink
Updated varibles to be in sync
Browse files Browse the repository at this point in the history
  • Loading branch information
amitkr-22 committed Jun 11, 2024
1 parent 035a20d commit cc7492f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</FormParams>
</Set>
</Request>
<Response>GPCAuthResponse</Response>
<Response>GPCPFSAuthResponse</Response>
<HTTPTargetConnection>
<SSLInfo>
<Enabled>true</Enabled>
Expand Down
2 changes: 1 addition & 1 deletion proxies/live/apiproxy/resources/jsc/GetGPCAuthCode.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function json_tryparse(raw) {
}
}

var respContent=context.getVariable('GPCAuthResponse.content');
var respContent=context.getVariable('GPCPFSAuthResponse.content');
const respObject=json_tryparse(respContent);

context.setVariable("request.header.Authorization", "Bearer " + respObject["access_token"]);
2 changes: 1 addition & 1 deletion proxies/live/apiproxy/targets/target.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
<Step>
<Name>AssignMessage.GPCAuthErrorResponse</Name>
</Step>
<Condition>GPCAuthResponse.status.code=="500"</Condition>
<Condition>GPCPFSAuthResponse.status.code=="500"</Condition>
</FaultRule>
</FaultRules>
<!--
Expand Down

0 comments on commit cc7492f

Please sign in to comment.