python/example_code/cognito/README.md
Shows how to use the AWS SDK for Python (Boto3) to work with Amazon Cognito Identity Provider.
<!--custom.overview.start--> <!--custom.overview.end-->Amazon Cognito Identity Provider handles user authentication and authorization for your web and mobile apps.
For prerequisites, see the README in the python folder.
Install the packages required by these examples by running the following in a virtual environment:
python -m pip install -r requirements.txt
ListUserPools)Code excerpts that show you how to call individual service functions.
Code examples that show you how to accomplish a specific task by calling multiple functions within the same service.
<!--custom.examples.start--> <!--custom.examples.end-->This example shows you how to get started using Amazon Cognito Identity Provider.
python hello/hello_cognito.py
This example shows you how to do the following:
This scenario requires the following resources:
To create these resources, run the AWS CloudFormation script in the resources/cdk/cognito_scenario_user_pool_with_mfa folder. This script outputs a user pool ID and a client ID that you can use to run the scenario.
<!--custom.scenario_prereqs.cognito-identity-provider_Scenario_SignUpUserWithMfa.end-->Start the example by running the following at a command prompt:
python cognito_idp_actions.py
This example shows you how to create a web-based demo application that demonstrates identity pools authentication flows.
<!--custom.scenario_prereqs.cross_CognitoFlows.start--> <!--custom.scenario_prereqs.cross_CognitoFlows.end--> <!--custom.scenarios.cross_CognitoFlows.start--> <!--custom.scenarios.cross_CognitoFlows.end-->⚠ Running tests might result in charges to your AWS account.
To find instructions for running these tests, see the README
in the python folder.
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0