I’m Implementing SSO at my startup and deciding between Cognito and Auth0.
So far I’ve started with Auth0, and while the experience has been fine, I want to make sure I consider alternatives before I make the plunge.
Much of our infrastructure is otherwise AWS, and we deploy our resources using CDK. Plus, Cognito has better pricing and it’s my understanding Auth0 recently tripled their price.
But I’ve also heard a lot of hate for Cognito, that the documentation is lacking, it’s not feature-rich, etc. What do you guys think? I’m especially curious how your experience with Cognito and MFA has been.
For internal apps you could probably get away with cognito. Where it really falls apart is multi-tenant and UX. That said, I’d consider federating your app directly to AD or Identity Center.
I love cognito. Never had any issues with it. I like the lambda triggers it offers. I’ve never had any issues with documentation for cognito, or any aws service for that matter. I find aws documentation to be very good.
Cognito has a lot of hidden magic / knowhow needed to make it useful but I’d still choose cognito. The native integration with ALB is just a game changer.
It’s pretty annoying to use. There’s a lot of stuff that I presume is first class support in a lot of other auth Saas offerings that just is not supported well.
The one I ran into recently was making api keys. The cognito solution to this is super hacky, and results in ridiculously long api keys. Also, it’s not documented anywhere.
That’s an excellent point, unfortunately I don’t know.
That being said many of my coworkers were interested in trying what you were describing to avoid the black magic cognito SDK espouses so your approach might be more sensible.
I also would argue Cognito is not that bad if you know what you’re doing - the downside is that you need to customize basically anything using lambdas.
The only thing which really sucks for us is the lack of refresh token rotation - it’s already 2024 and it seems that AWS just doesn’t want to add significant features to Cognito anymore…
We built a consumer app on Cognito for four years. I’m now doing a contract project based around Auth0.
Auth0 is much simpler, has better options but gets expensive fast if you scale users. Cognito, while cheaper, takes a lot more development resources to “get right” and then you better hope you don’t need to change anything later.
Currently evaluating WorkOS for another project (https://workos.com/user-management). Looks very good feature wise and free up to one million users.
If it’s just for internal use and you expect small numbers of users just stick with Auth0.
Try not to use the hosted ui (maybe because you need something that respects corporate branding, can be customized or is multilanguage) and you will find that you have to do pretty much everything from scratch, not only on the FE side, but also on the BE side using apigw, 40 lambdas and dozens if not hundreds of hours of testing.
I think we’re mixing customer and workforce type of identity here. I’d give the opposite advice where if it’s an internal app then AD or IDC would be good for.
And cognito (or something similar like Auth0) for customer identity. (Assuming it’s B2C)