Disclaimer: I am the co-founder of Cerbos[0] Auth is actually a combination of two things: authentication and authorization. Whatever you do, please do not build either by yourself. It always starts simple and it is guaranteed to get more complex than anyone is willing to maintain (unless you have a dedicated security engineering team) There are many providers for each. Authentication is about the user's identity and…
How does this compare to Keycloak?
Ask HN: What do you use to build auth?
81–90 of 141 posts
Re: Ask HN: What do you use to build auth?
#82Re: Ask HN: What do you use to build auth?
#83https://github.com/irrelevelephant/nextjs-hello
Its interface is essentially just a login button component, and functions to retrieve the user session state on both the client/server.
If you're not using Next.js, you may want to use Hellō directly - it's a simple OIDC provider with some convenient benefits.
Re: Ask HN: What do you use to build auth?
#84Django-auth-ldap with python-ldap when I need to use ldap.
Django-allauth when I need oauth providers (google github etc)
Requests-oauthlib integrated with django auth when I need a more customized solution.
I've never understood the reason to use anything else ...
Re: Ask HN: What do you use to build auth?
#85Re: Ask HN: What do you use to build auth?
#86I too have seen the articles proclaiming that devs should stop implementing auth themselves and instead use some Auth as a service product. After all Authentication is hard to get right, right? Actually the basics are really easy. Using a short-term JWT and bcrypt to salt passwords is like maybe 10 lines of code. The thing is, most of the truly hard Auth problems I've had to solve in my career took a highly custom ap…
Re: Ask HN: What do you use to build auth?
#87I'm the founder of Hellō[0], and if you are targeting consumers or individual professionals and want to give them choice, check it out.
As some background, I cofounded the OpenID Foundation, drove creation of OAuth 2.0 and what became JWT, and gave a popular Identity 2.0[1] talk years ago.
[0] https://hello.coop & https://hello.dev [1] https://www.youtube.com/watch?v=RrpajcAgR1E
Re: Ask HN: What do you use to build auth?
#88I too have seen the articles proclaiming that devs should stop implementing auth themselves and instead use some Auth as a service product. After all Authentication is hard to get right, right? Actually the basics are really easy. Using a short-term JWT and bcrypt to salt passwords is like maybe 10 lines of code. The thing is, most of the truly hard Auth problems I've had to solve in my career took a highly custom ap…
Defeating credential stuffing attacks is HARD. That is where services such as Auth0 shine.
Re: Ask HN: What do you use to build auth?
#89Your question is missing a couple key inputs. Q: Is your SaaS app targeting enterprise use cases, where the customer will want to enable SSO and centralized provisioning? Keybase is a reasonable choice in this case because of the SAML and SCIM support. Q: What is your expected revenue per user? Auth0 solves many problems out of the box, but is priced on MAU which can be prohibitive if your revenue per user is low, bu…
Re: Ask HN: What do you use to build auth?
#90Well, I wrote one with rust and actix-web for exact same purpose. In my opinion, writing basic auth is simple and safe if you keep OWASP guidelines and other best practices in mind but adding features like SSO and MFA etc is complicated. With that said, almost everything else I tried feels so heavy and slow that I'm sticking with mine for now. If I've to use prebuilt solutions, I'll pick one that is open source and c…
Basic auth is easy.
The hardest parts are OAuth, SSO, MFA, OWASP Security, tracking metrics correctly. Good lord.