- example: using bash (aws cli sdk)
- example: using php (aws php sdk v3.*)
- you need to add example.com as custom auth provider in aws console (cognito/federated)
- you need to add IAM policies ("cognito") to your aws access key/secret
- region: us-east-1
- poolId: us-east-1_XXXXXX
- jwks-uri: https://cognito-idp.us-east-1.amazonaws.com/{{poolId}}/.well-known/jwks.json
- note: algorithm RS256
- OpenId-Config-Uri: https://cognito-identity.amazonaws.com/.well-known/openid-configuration
contains link to ...
- jwks-uri: https://cognito-identity.amazonaws.com/.well-known/jwks_uri
- note: algorithm RS512
Thanks so much for this.