Open gurjotkaur20 opened 7 months ago
In the authorization handling, within godspeed.ts, if workflow response's GSStatus.success === true, then exitWithStatus is deleted from the GSSTatus. So the issue is within the workflow, it should return success false with code 503. Else auth flow will set code 403 by default..
Did not understand this. My authz workflow is returning success: false. See this in the authz workflow present in the issue description:
return new GSStatus(false, 403, undefined, errorData, undefined);
Why this output?
{"code":200,"success":true,"data":{"message":"Internal server error"}}
Version Information
@godspeedsystems/core: 2.4.7
Current Behavior
This is the yaml workflow:
This is the authz workflow:
An exception occurred in authz workflow which should have been set in
<% outputs.return_response.data %>
. authz exception:setAtPath exception:
outputs.return_response
Expected Behavior
outputs.return_response