{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/15"},{"label":"Dynamic Content","url":"https://skillfed.io/packages/category/internet-www-http-dynamic-content/2"}],"enrichment":{"capability":"Flask-Cognito integrates AWS Cognito JWT authentication into Flask applications, allowing you to protect routes by validating tokens and mapping Cognito identities to your application's user model.","skillfed_tags":["aws-cognito","jwt-auth","flask-extension"],"use_cases":["Protect Flask API endpoints by requiring valid Cognito access or ID tokens in the Authorization header.","Map Cognito user identities to your application's user database for role-based or permission-based access control.","Enforce group membership restrictions on specific routes using the @cognito_group_permissions decorator.","Authenticate serverless Flask applications deployed on AWS Lambda that rely on Cognito for identity management.","Validate JWT tokens without implementing JWT parsing and cryptographic verification yourself."],"what_it_does":"Flask-Cognito is a Flask extension that plugs AWS Cognito JWT authentication into your application. It validates incoming JWT tokens from Cognito user pools, extracts user identity from the token payload, and provides decorators to protect routes and enforce group-based access control. The extension sits between your Flask routes and Cognito's identity service, handling token verification and making the authenticated user's claims available to your handlers via context variables.\n\nYou configure it with your Cognito region and user pool ID, then decorate routes with @cognito_auth_required to enforce authentication. The package also supports restricting access by Cognito group membership and lets you hook in a custom identity lookup function to map Cognito users to your own database records. It uses cognitojwt internally to handle JWT validation.","worth_installing":"Yes, if you are already committed to AWS Cognito and need straightforward JWT validation in Flask. The package is simple, permissive-licensed, and has no external runtime dependencies. However, maintenance is dormant (latest release 2024-04-13), so verify compatibility with your Flask version and check whether cognitojwt and Cognito's API have evolved. Not recommended if you need active support or are evaluating fresh authentication solutions."},"id":"flask-cognito","links":{"html":"https://skillfed.io/packages/flask-cognito","md":"https://skillfed.io/packages/flask-cognito.md","pypi":"https://pypi.org/project/flask-cognito/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2024-04-13","license_spdx":null,"license_treatment":"permissive","name":"Flask-Cognito","python_support":"unspecified","summary":"Authenticate users to Cognito user pool via JWT."},"popularity":{"monthly_downloads":240282,"position":8906,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.21"}
