Amazon Cognito: an error occur while trying logout

855 Views Asked by At

this the request uri

https://mydomain.auth.us-east-1.amazoncognito.com/?response_type=code&client_id=<client_id>' + '&redirect_uri=http://localhost:8080/'

it redirect to this uri with error that chown in image

https://mydomain.auth.us-east-1.amazoncognito.com/error?error=redirect_mismatch&client_id=<client_id>

enter image description here

Note that: everything works fine with login

2

There are 2 best solutions below

3
alejandro correa On

you are redirect to localhost, it's not url valid because is not public on internet

0
Chandrabhan Birla On

Please try below URLs

Cognito Setting: Cognito User Pool --> "Sign in and sign out URLs" → "Callback URL(s)" →

Value to be added : ",https://localhost/dashboard,https://localhost/oauth2/idpresponse,"

If this does not work then try adding port as well.