AWS Cognito integration

Hello people,
I am considering replacing the AWS API Gateway with haproxy, but I need to continue to provide API authentication with Cognito (token based).
My google search on this was unsuccessful.
Has anyone already implemented this and would be willing to share the knowledge?
Thanks in advance
Arne