I'm trying to use Confluence with AWS Cognito.
I configured the client ID and secret, I added the full URL of my Cognito domain and pasted the callback URL to my settings.

When I save all the settings, I get the following error:

I'm not sure how to fix this. I followed the documentation and I Googled this error and found no solution.
Any help would be appreciated.