We are using AWS API Gateway custom authorize lambda function call to authorize the user call. Its returns policy (if authored) or else returns 401.Its working good. But we are visioning that custom authorize lambda function call should return a new header attribute(flag- true/false) , along with policy . So that we can use that header attribute in ECS API call for distinguish API logic for authored call & Non Authored API.
Can you please advice is this possible to set header parameter , if we make a call to lambda in Custom Authorizes level.
Thanks -