How - AWS Rest API Authentication

I am trying to create a Rest API using the AWS API Gateway, Lambda and DynamoDB.

I use java-script as my lambda language and I have already successfully created some resources. However, I do not understand how to make authenticated requests for my IP.

I need simple HTTP authentication.

Can someone explain how to make authenticated requests to the API gateway and Lambda?

+2
source share
2 answers

Here's a very good Repository of Http Lambda Http authentication examples. You can go through this example.

An example of an authentication service that is implemented without a serverless architecture, using AWS Lambda to host and execute code, and Amazon DynamoDB as persistent storage. This provides a cost-effective solution that is scalable and highly affordable.

+6
source

Another thing to keep in mind is that AWS just announced (February 11, 2016) custom request authorizers for the Gateway API: https://aws.amazon.com/about-aws/whats-new/2016/ 02 / amazon-api-gateway-supports-custom-request-authorizers

See an AWS example here: http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html

"This Lambda feature is used to implement various authorization strategies, such as checking the JTON Web Token (JWT) and the OAuth provider callout, to return IAM policies that allow the request."

+3
source

All Articles