Hi, just wondering why this wasn't included in the mainline aws-sdk. Is this how you plan on supporting User Pools going forward?
Hi @mikedizon,
I have an open source hack for you. It is far from perfect, but will get the ball rolling. Any PR's are appreciated :)
https://github.com/luckybroman5/amazon-cognito-identity-js/tree/node
User Pools is in beta, it will not be part of mainline until we exit beta as api are expected to change.
@luckybroman5 Thank you for that implementation, after bashing my head against the wall for a few hours it plugged in and worked flawlessly.
@behrooziAWS Any time scale for this?
Due to dependencies, we have chosen to keep the user pools SDK separate. There is no timeline for integration at this point.
Can this be used server side? Should it be? I want to add login to my site, but im not sure how to integrate this into an ExpressJS session.
Victorio, take a look at Admin Authentication Flow on this page. I'm not familiar with ExpressJS so I don't know if it will work for sure, but the page describes the process of calling AdminInitiateAuth from your backend to obtain tokens.
@behrooziAWS I think thats exactly what I need. I also stumbled upon a similar answer here https://github.com/aws/amazon-cognito-identity-js/issues/101 basically I can do ADMIN_NO_SRP_AUTH and fire adminInitiateAuth from my back-end to make things super easy.
Most helpful comment
Hi @mikedizon,
I have an open source hack for you. It is far from perfect, but will get the ball rolling. Any PR's are appreciated :)
https://github.com/luckybroman5/amazon-cognito-identity-js/tree/node