OpenId Connect with AWS Cognito

Hello,

I didn’t succeed to implement a connection between Cognito and WeWeb.
I tried to use the cognito domain in the Domain configutation of the plugin but i had a 404 error.
Then i searched a bit on internet and use this url instead of https://cognito-idp.{region}.amazonaws.com/{user pool id}/

It almost works but i have a error “An error was encountered with the requested page.” and “error?error=invalid_request” in the url.

I put my page url in the allowed callback URLs :

Does someone already succeed to connect Cognito with your OpenId Connect Plugin ?

Thank you for your help !

image

Hi @guemgM3u :wave:

Can you tell me a bit more about where the flow gets stuck? i.e. what’s working so far and what is not?

Based on your screenshots, I’m thinking:

  • you’re able to trigger a signup or login call from WeWeb to AWS Cognito via the OpenID plugin
  • this triggers a redirect to an amazon cognito signup or login page
  • you are able to enter your signup or login information
  • but the redirect to a post-login page on WeWeb fails

Is that correct?

Hello Joyce, thank you for your message!

Yes it’s true you understood my problem:

I click on my login button on WeWeb and I am redirected to the Amazon Cognito login page but with an error (you see in my previous message “An error was encountered with the requested page.”) on the Cognito page before I can actually log in and be redirected to my page editor on WeWeb