Protect Public Restful APIs with API Gateway and oauth2.0


I am working on Airbnb like project. There are Public RESTful APIs that need to be secured with API Gateway and oauth 2.0 I want a solution to secure the public RESTful APIs with OAuth 2.0. Thanks

1 Answer
Accepted Answer

Hi zeeshan.

First of all you need to decide whether you are gonna use an API Gateway of type REST or HTTP.

This is because they provide different security mechanisms:

You can check the possibilities above, but in general, in terms of Oauth2 support you should look into Lambda Authorizer (max level of control), Cognito pools and JWT Authorizers.

Other security mechanisms to be taken into account are about adoption of WAF (Web Application Firewall). Even in that case, it will depend on Rest vs Http. In general, you can attach a WAF directly to an API GW of type REST, while for HTTP you can achieve only if you have CloudFront in front of the api (as edge-optimized api) or an Application Load balancer.

Finally you should consider different levels of protections and possibly Packet Inspection and/or Detection. See a reference here which leverages Gateway Load Balancers to perform IPS scanning for internet ingress traffic.

Hope it helps ;)

profile picture
answered 16 days 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