I have created a federated identities which contains:
- Identity pool ID us-west-2:XXXX-XXXXXXX-XXXX-XXXX-XXXX
- User Pool ID us-west-2_XXXXXXXXX
- App client ID XXXXXX
When I try with Identity pool ID to connect to: https://cognito-idp.us-west-2.amazonaws.com/us-west-2:XXXX-XXXXXXX-XXXX-XXXX-XXXX/.well-known/jwks.json
I get:
{"message":"1 validation error detected: Value 'us-west-2:XXXX-XXXXXXX-XXXX-XXXX-XXXX' at 'userPoolId' failed to satisfy constraint: Member must satisfy regular expression pattern: [\\w-]+_[0-9a-zA-Z]+"}
If I try with User Pool ID us-west-2_XXXXXXXXX https://cognito-idp.us-west-2.amazonaws.com/us-west-2_xxxxxxxxxxxxxxx/.well-known/jwks.json
{"message":"User pool us-west-2_ does not exist."}
How can I fix this?