How to use two Integration types in AWS API Gateway?


Hi, I want to call a HTTP endpoint from my AWS API gateway and that endpoint is secured with Oauth 2.0. So, is there any way to implement Oauth 2.0 using HTTP integration type in AWS API Gateway (API Creation Wizard)?

Also, if lambda is the only option, any examples will be appreciated.

1 Answer

API Gateway allows two integrations types for HTTP endpoint HTTP proxy integration or the HTTP custom integration. You can use any of them.

If your use case requires only a token to be sent to backend HTTP endpoint, with proxy integration API Gateway passes the client-submitted method request to the backend. The request data that is passed through includes the request headers, query string parameters, URL path variables, and payload.

If you have a specific requirement to modify client submitted data, you can achieve your use case with HTTP custom integration as well as with a Lambda function in between to send requests to backend.

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions