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...
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.