I have set my user pools to use other user pools as an OIDC IdP. I have get Endpoint from https://cognito-idp.(Region).amazonaws.com/(Pool_Id)/.well-known/openid-configuration. I have set callback url to https://www.google.com. But when I use Hosted UI to login use other user pools I get error redirect_mismatch.
For AWS Hosted UI use:
https://<your_user_pool_domain>/oauth2/authorize?response_type=code&client_id=<your_client_id>&redirect_uri=https://www.example.com