Securing API access

To begin securing API access, go to API Gateway console, choose the RESTful API that we built in the previous chapters, and click on Authorizers from the navigation bar:

Click on the Create New Authorizer button and select Cognito. Then, select the user pool that we created earlier and set the token source field to Authorization. This defines the name of the incoming request header containing the API caller's identity token for Authorization:

Once the form has been filled in, click on Create to integrate the Cognito User ...

Get Hands-On Serverless Applications with Go now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.