-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
44c6f20
commit 2009ab7
Showing
3 changed files
with
34 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,25 @@ | ||
``` | ||
aws --endpoint-url=http://localhost:52007 cognito-idp create-user-pool --pool-name "localcloud" | ||
aws --endpoint-url=http://localhost:52007 cognito-idp list-user-pools --max-results 20 | ||
``` | ||
**Tag: #Cognito** | ||
|
||
Execute `POST http://localhost:52009/moto-api/seed?a=42` to ensure the resulting state will always be the same. | ||
|
||
Copy user pool id | ||
|
||
``` | ||
aws --endpoint-url=http://localhost:52007 cognito-idp create-user-pool-client --user-pool-id "ap-southeast-2_366f47d5c8fd1bbefcf3afec577af68d09ebfa7d5" --client-name msnotification --generate-secret | ||
``` | ||
aws --endpoint-url=http://localhost:52009 cognito-idp create-user-pool --pool-name "LocalDev" | ||
aws --endpoint-url=http://localhost:52009 cognito-idp create-user-pool-client --user-pool-id "ap-southeast-2_366f47d5c8fd1bbefcf3afec577af68d09ebfa7d5" --client-name msnotification --generate-secret | ||
Copy Client Id | ||
aws --endpoint-url=http://localhost:52009 cognito-idp admin-create-user --user-pool-id "ap-southeast-2_366f47d5c8fd1bbefcf3afec577af68d09ebfa7d5" --username "testuser" | ||
aws --endpoint-url=http://localhost:52009 cognito-idp admin-set-user-password --user-pool-id "ap-southeast-2_366f47d5c8fd1bbefcf3afec577af68d09ebfa7d5" --username "testuser" --password "L0c4lD3v" --permanent | ||
aws --endpoint-url=http://localhost:52009 cognito-idp initiate-auth --auth-flow USER_PASSWORD_AUTH --auth-parameters USERNAME=testuser,PASSWORD=L0c4lD3v --client-id 71hfe86y5r215dew1zcyqesh0a --region ap-southeast-2 | ||
``` | ||
aws --endpoint-url=http://localhost:52007 cognito-idp admin-create-user --user-pool-id "ap-southeast-2_366f47d5c8fd1bbefcf3afec577af68d09ebfa7d5" --username "testuser" | ||
|
||
aws --endpoint-url=http://localhost:52007 cognito-idp admin-set-user-password --user-pool-id "ap-southeast-2_366f47d5c8fd1bbefcf3afec577af68d09ebfa7d5" --username "testuser" --password "Hum4nF0rc3!" --permanent | ||
|
||
aws --endpoint-url=http://localhost:52007 cognito-idp initiate-auth --auth-flow USER_PASSWORD_AUTH --auth-parameters USERNAME=testuser,PASSWORD=Hum4nF0rc3! --client-id {INSERT_NEW_CLIENTID} --region ap-southeast-2 | ||
``` | ||
### Troubleshoot | ||
|
||
``` | ||
aws --endpoint-url=http://localhost:52009 cognito-idp list-user-pools | ||
aws --endpoint-url=http://localhost:52009 cognito-idp list-user-pool-clients --user-pool-id ap-southeast-2_366f47d5c8fd1bbefcf3afec577af68d09ebfa7d5 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
[Recorder](https://docs.getmoto.org/en/latest/docs/configuration/recorder/index.html) | ||
[Run using Docker](http://docs.getmoto.org/en/latest/docs/server_mode.html#run-using-docker) | ||
|
||
#Docker container: https://hub.docker.com/r/motoserver/moto | ||
|
||
`docker run -p 52009:3000 -e MOTO_COGNITO_IDP_USER_POOL_ID_STRATEGY=HASH -e MOTO_ENABLE_RECORDING=True motoserver/moto:latest` | ||
|
||
|
||
#Cognito http://docs.getmoto.org/en/latest/docs/services/cognito-idp.html |