Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
In order to authenticate our users through Cognito, we‘re going to use the dash-cognito-auth package that Franck Spijkerman published a few years ago and to which I recently started contributing to keep it up to date.
With this theory out of the way, let‘s see how we can implement it. I have once again created a repository with a SAM-based app. The app deploys the required Cognito user pool and app client for authentication and grants the Frontend Lambda permission to describe the User Pool and retrieve some secrets at runtime so that they don‘t have to be hardcoded. Almost all the rest happens in the Lambda function.
Related posts
- Adding Basic Authentication to the Serverless Dash App
- Advanced Credential Rotation for IAM Users with a Grace Period
- Push-Down-Predicates in Parquet and how to use them to reduce IOPS while reading from S3
- The beating heart of SQS - of Heartbeats and Watchdogs
- Introduction to asynchronous interactions with the AWS API in Python