In this Lab we will:
You completed this lab if you:
Why is this important?
Nearly every API needs some sort of authentication for users or other services. With AWS Cognito this tasks becomes easy. You can integrate with ApiGateway with nearly no effort and can take advantage of AWS’ Amplify Client library to authenticate your web or mobile clients.
At the end of this lab the url shortener will consist of the following components.
Setting up a Cognito User Pool can be a bit tricky. In order to make it work, you need to:
AllowHeadersyou defined earlier
In order to connect the frontend with Cognito and allow sign-in / sign-up, we need to:
Authorizationheader with request that need to authorize (example)
signUpin order to show the correct widget