How to use two Integration types in AWS API Gateway?

0

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 個回答
0

API Gateway allows two integrations types for HTTP endpoint HTTP proxy integration or the HTTP custom integration. You can use any of them. https://docs.aws.amazon.com/apigateway/latest/developerguide/setup-http-integrations.html

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.

https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-create-api-as-simple-proxy-for-http.html

AWS
支援工程師
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南