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.

preguntada hace un año630 visualizaciones
1 Respuesta
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
INGENIERO DE SOPORTE
respondido hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas