Skip to content

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 years ago729 views
1 Answer
1
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 years ago
EXPERT
reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.