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 Risposta
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
TECNICO DI SUPPORTO
con risposta un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande