{"id":18495065,"url":"https://github.com/cgauge/flask-awscognito","last_synced_at":"2025-07-19T19:34:17.399Z","repository":{"id":52414931,"uuid":"209790775","full_name":"cgauge/Flask-AWSCognito","owner":"cgauge","description":"Extension for Flask that adds support for AWSCognito into your application","archived":false,"fork":false,"pushed_at":"2021-04-29T21:00:47.000Z","size":393,"stargazers_count":28,"open_issues_count":11,"forks_count":27,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-05-10T08:04:58.085Z","etag":null,"topics":["aws-cognito","flask","python"],"latest_commit_sha":null,"homepage":"https://flask-awscognito.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cgauge.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-20T12:56:01.000Z","updated_at":"2024-01-01T22:39:32.000Z","dependencies_parsed_at":"2022-08-24T12:11:11.402Z","dependency_job_id":null,"html_url":"https://github.com/cgauge/Flask-AWSCognito","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cgauge/Flask-AWSCognito","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cgauge%2FFlask-AWSCognito","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cgauge%2FFlask-AWSCognito/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cgauge%2FFlask-AWSCognito/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cgauge%2FFlask-AWSCognito/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cgauge","download_url":"https://codeload.github.com/cgauge/Flask-AWSCognito/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cgauge%2FFlask-AWSCognito/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265999050,"owners_count":23862219,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws-cognito","flask","python"],"created_at":"2024-11-06T13:23:17.463Z","updated_at":"2025-07-19T19:34:17.383Z","avatar_url":"https://github.com/cgauge.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/cgauge/Flask-AWSCognito.svg?branch=master)](https://travis-ci.org/cgauge/Flask-AWSCognito)\n[![Documentation Status](https://readthedocs.org/projects/flask-awscognito/badge/?version=latest)](https://flask-awscognito.readthedocs.io/en/latest/?badge=latest)\n\n# AWS Cognito for authentication in Flask\n\nDocumentation https://flask-awscognito.readthedocs.io\n\n## Maintainer(s) Needed\n\nThis project is in search for new maintainer(s). Please see [Issue #13](https://github.com/cgauge/Flask-AWSCognito/issues/13) for details.\n\n## Example App\n\n```python\nfrom flask import Flask, redirect, request, jsonify\nfrom flask_awscognito import AWSCognitoAuthentication\napp = Flask(__name__)\n\napp.config['AWS_DEFAULT_REGION'] = 'eu-west-1'\napp.config['AWS_COGNITO_DOMAIN'] = 'domain.com'\napp.config['AWS_COGNITO_USER_POOL_ID'] = 'eu-west-1_XXX'\napp.config['AWS_COGNITO_USER_POOL_CLIENT_ID'] = 'YYY'\napp.config['AWS_COGNITO_USER_POOL_CLIENT_SECRET'] = 'ZZZZ'\napp.config['AWS_COGNITO_REDIRECT_URL'] = 'http://localhost:5000/aws_cognito_redirect'\n\n\naws_auth = AWSCognitoAuthentication(app)\n\n\n@app.route('/')\n@aws_auth.authentication_required\ndef index():\n    claims = aws_auth.claims # also available through g.cognito_claims\n    return jsonify({'claims': claims})\n\n\n@app.route('/aws_cognito_redirect')\ndef aws_cognito_redirect():\n    access_token = aws_auth.get_access_token(request.args)\n    return jsonify({'access_token': access_token})\n\n\n@app.route('/sign_in')\ndef sign_in():\n    return redirect(aws_auth.get_sign_in_url())\n\n\nif __name__ == '__main__':\n    app.run(debug=True)\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcgauge%2Fflask-awscognito","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcgauge%2Fflask-awscognito","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcgauge%2Fflask-awscognito/lists"}