logoalt Hacker News

solatictoday at 2:10 PM5 repliesview on HN

> Next time, I’m picking a tool based on developer experience first, not AWS service integration convenience. The time we lost debugging Cognito issues could have paid for several years of a paid auth provider.

How many paid auth providers let you export user password hashes so that you can seamlessly migrate to another vendor, if you want to?

The whole problem with auth is that both (a) login screens are shown to unauthenticated users, which is a superset that includes attackers, who will do everything from DDoS to crafted malicious input to try to grab user secrets, so you really want to pick something that is already running at large production scale and with all the production battle-scars, and (b) that need to go with a managed vendor is very much in tension against local development, vendor independence, data portability, and other Good Engineering Practices (TM).

Sure, AWS Cognito sucks. In many ways, the product feels stuck. Making compromises to get stuff shipped, working, and stable sucks. But honestly, unless you're going to prefer (b) over (a) (and there are times to do so, in particular with intranet applications behind a firewall that aren't really susceptble to those kinds of attacks) and pick something like Keycloak, you could do a lot worse than Cognito (shudder, Okta, shudder).


Replies

leetrouttoday at 3:06 PM

Counter point: How many paid auth providers force you to create an entirely new deployment and then use a lambda to migrate within their own system? Especially for something as seemingly simple like adding another metadata field?

I think they allow export because they drew some interesting lines around their own mutability concerns.

I also would never use cognito again.

https://docs.aws.amazon.com/cognito/latest/developerguide/co...

voxic11today at 3:07 PM

Auth0 and Firebase both let you export user password hashes (though I believe you need to open a support ticket in order to do it in Auth0's case at least).

I think Cognito is actually one of the few with absolutely no path to achieving this.

show 1 reply
sandeepkdtoday at 4:44 PM

Personally I feel the password migration feature should never be supported. Its ripe for abuse once you open up a pathway to it. SCIM as a protocol was meant to solve this problem, if everyone could just implement it.

goosejuicetoday at 2:12 PM

Ory let's you do this I believe.

show 1 reply