Custom OpenID Connect identity provider -- "attributes required: [email]"

0

Hi, I'm attempting to write a custom OpenID Connect identity provider, and I think I've got everything in place. The login flow works up until Cognito calls my userinfo route, where it invokes my callback (configured in App Integration > App client settings) with an error "attributes required: email" (email is in square brackets, the amazon forum software changes that).

I've confirmed that my userinfo API is returning an "email" field in the response JSON, and the identity provider has scopes "email openid", and the app client has allowed oauth scopes "email" and "openid" selected.

I'm kind of stuck as to what to attempt next. Everything else appears to be working, but this last step is failing.

Edited by: caseypoint on Aug 30, 2021 3:37 PM

feita há 3 anos388 visualizações
1 Resposta
0

Solved! What was missing was a mapping between the email attribute from the userInfo to Email in Cognito.

respondido há 3 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas