amazon-archives / amazon-cognito-auth-js

The Amazon Cognito Auth SDK for JavaScript simplifies adding sign-up, sign-in with user profile functionality to web apps.
Apache License 2.0
424 stars 232 forks source link

Attribute required for federated login #222

Open qkhanhpro opened 4 years ago

qkhanhpro commented 4 years ago

Hello everyone,

I would like to open an issue in that: When an user pool is created with a required attribute, and used in federated login with Google/Facebook... 1/ There is no way to remove the required attribute 2/ There is no way to fill that attribute with some data just so the whole signup/login do not fail

I already tried Pre sign-up, Pre Authentication and Migration trigger. All of them triggered correctly when a normal user signup / auth None of them get triggered and the user is rejected in the case user from federated identity did not have the required attribute

Is there any solution for this apart from migrating the whole UserPool ?

qkhanhpro commented 4 years ago

Close ( but not the same) issue as reported here for anyone interested https://github.com/aws/amazon-cognito-auth-js/issues/54