News for hackers. Stuff that matters.
Re:Ask HN: How do you currently solve authentication? by cs02rm0 on Monday January 27, 2020 @01:57AM (#22157340)
Last time AWS Cognito, and at least initially, Amplify.

I'd never write it from scratch. It's always a PITA, there's always significant compromises - do you make people sign up, do you let them use Google/every other available federated login provider, what 2FA options, will it work on a locked down network, etc.

Re:Ask HN: How do you currently solve authentication? by thephyber on Monday January 27, 2020 @02:25AM (#22157465)
AWS Cognito web interface is a dumpster fire if you expose it to people outside a small team. A little buggy, but terrible if your brand is associated with their out-of-the-box web flow. Password resets, username collision issues due to capitalization, login flow state can throw error messages that users can’t comprehend or fix, etc will all bleed customer support time.

The APIs seem fine, but you still need to build a GUI to replace all of the flows.

Okta is a far more mature solution for something directly customer facing and supports better 2FA options.

Re:Ask HN: How do you currently solve authentication? by friedman23 on Monday January 27, 2020 @02:07AM (#22157395)
I want to use cognito but the documentation is not good. For example, how do I use cognito to authorize against an api I wrote? It's not clear from the documentation.
Re:Ask HN: How do you currently solve authentication? by stephenemslie on Monday January 27, 2020 @03:05AM (#22157629)
You'd probably use a custom workflow backed by lambda functions that interact with your api: https://docs.aws.amazon.com/cognito/latest/developerguide/co...
Re:Ask HN: How do you currently solve authentication? by cs02rm0 on Monday January 27, 2020 @02:33AM (#22157508)
As a rule I think if you feel you're outside the sweet spot of an AWS service before you start using it, I'd take that as a steer that it's probably not the right route to go.
Re:Ask HN: How do you currently solve authentication? by mazatta on Monday January 27, 2020 @02:45PM (#22163008)
It feels like someone's hackathon project that was accidentally deployed to production, and has been running ever since.