Auth
Auth0
A managed authentication and authorization service: sign-in, SSO, MFA and API access with no identity server of your own.
What it is
Auth0 is a cloud identity provider you connect through SDKs for React, Next.js, mobile and server platforms. It has a ready login page (Universal Login), social providers, MFA and passkeys.
The service is based on OAuth 2.0 and OIDC. It lets you configure rules and Actions on login events, manage roles and connect enterprise IdPs (SAML, Entra ID).
Okta acquired the company in 2021. Pricing is per active user: convenient at the start, but cost grows quickly with scale.
Use it when
- You need ready sign-in fast, without hosting a server.
- B2B SaaS with enterprise SSO for customers.
- The team does not want to run identity security itself.
Avoid it when
- A very large number of users with low revenue per user: the cost can be too high.
- A requirement to keep all identity data on your own infrastructure: Keycloak.
Key concepts
- Universal Login
- A hosted login page that you only style.
- Tenant
- Your account space in Auth0 with apps and users.
- Actions
- Server code that runs on login or signup events.
- Connections
- User sources: database, social, SAML.
Example
Interview questions
1. Why not write authentication yourself?
Safe password storage, MFA, resets, brute-force protection and compliance are hard to get right. A managed provider takes that on.
2. What are Auth0 Actions?
Small Node.js functions that run on events such as post-login. They add claims to tokens or block suspicious logins.
3. What are the vendor lock-in risks?
Users, password hashes and Actions logic are tied to the provider. Export is possible, but migration needs planning.
Related technologies
- OAuth 2.0A delegated authorization standard: an app gets limited access to a user's resources without their password.
- OpenID ConnectAn authentication layer on top of OAuth 2.0: the client receives an ID token with user information.
- KeycloakAn open source identity and access management solution with SSO, OIDC, SAML and roles.
- ClerkA managed authentication service with ready React components for sign-in, profile and organizations.
- Auth.jsAn open source authentication library for web apps (formerly NextAuth.js), with OAuth providers and sessions.
Logos belong to their owners and are used for identification only. Icons: Simple Icons (CC0), Devicon (MIT).