Cognito google login error on redirect. "username attribute mapping required"

0

Trying to setup a cognito user pool with google sign in. When testing with hosted UI. The google sign in page appears and lets you sign in using google. The redirect happens the url on the browser shows "https://www.example.com/?error_description=username+attribute+mapping+required&error=invalid_request#"

I have already mapped user name and email to google sub and email respectively

Please can you someone with knowledge on this help me solve this

asked 2 months ago281 views
1 Answer
0
Accepted Answer

This happened because on cognito -> Sing in experience - > Indentity provider google should have openid profile email which I didn't have

answered 2 months ago
profile picture
EXPERT
A_J
reviewed 2 months ago