← All templates · Passwords and sign-in
Deploy Authorizer in one click
Sign-in for your own apps, with OAuth 2 and OpenID Connect
A self-hosted alternative to Auth0, Clerk, and Firebase Authentication.
What is Authorizer?
Authorizer is an open-source authentication and authorization server, a self-hosted alternative to Auth0 for adding sign-in to your own apps. It speaks OAuth 2 and OpenID Connect, so any app that supports them can sign people in through it, and it ships a built-in login page and SDKs for JavaScript, React, Go and Python. People sign in with a password, a magic link, a passkey or one of ten social logins, and can add a second factor. An admin dashboard covers users, webhooks, email templates and audit logs.
Running Authorizer yourself keeps your users' accounts in your own database, with no fee per user as an app grows. It suits a side project or a small product that needs proper sign-in without handing its users to a vendor. The catch: email verification, password resets and magic links work only once you give it an SMTP server to send mail through.
Hosting Authorizer on Pethost
- You sign in to Pethost with a passkey, GitHub or Google. No machine yet? You pick a plan, and the link waits until it is ready.
- New project opens at Authorizer. You fill in what it asks for and click Create project: Admin password.
- In a minute or two Authorizer is live at its own address with HTTPS. Its secrets are made at random, and its data is in the nightly backup.
- It is a project like any other: you or your agent can change it, roll it back or restore it.
Questions about Authorizer
Is Authorizer free and open source?
Yes. Authorizer is released under the Apache-2.0 license, which lets you use, change and run it commercially at no cost. You pay only for the server it runs on.
Which social logins does Authorizer support?
Ten: Google, GitHub, Facebook, LinkedIn, Apple, Discord, Twitter, Twitch, Roblox and Microsoft. Each one needs a key and secret that you get from that provider.
Does Authorizer support MFA and passkeys?
Yes. The second factor can be a TOTP authenticator app, a one-time code by email or an SMS code through Twilio. Passkeys work through WebAuthn, with FIDO2 security keys, Touch ID, Face ID or Windows Hello.
Which databases does Authorizer support?
More than a dozen, including Postgres, MySQL, MariaDB, SQLite, SQL Server, MongoDB, ArangoDB, Cassandra, DynamoDB and Couchbase. The --database-type and --database-url flags pick one when the server starts.
Does Authorizer need Redis?
No. Without Redis, Authorizer keeps sessions in memory, so people stay signed in only until the server restarts. Pointing it at a Redis server with --redis-url keeps sessions across restarts.
How much memory and disk does Authorizer need?
Authorizer is very light: under 100 MB of memory, and many thousands of users take little disk. On Pethost the Starter plan is enough for it, with room for other apps beside it.
Authorizer Docker Compose file
The template is this compose.yaml and the variables written into the project’s .env as it is created. Pethost runs the file as it is written.
Containers: authorizer (quay.io/authorizer/authorizer:2.4.2).
Volumes, in the nightly backup: data.
services:
authorizer:
image: quay.io/authorizer/authorizer:2.4.2
restart: unless-stopped
# A volume comes up owned by root, and the image's own user could not write to it
# (Authorizer's README, "Docker").
user: root
# Authorizer reads its settings from its arguments alone.
command:
- --database-type=sqlite
- --database-url=/authorizer/data/data.db
- --url=${URL}
- --client-id=${CLIENT_ID}
- --client-secret=${CLIENT_SECRET}
- --admin-secret=${ADMIN_PASSWORD}
- --jwt-type=HS256
- --jwt-secret=${JWT_SECRET}
- --encryption-key=${ENCRYPTION_KEY}
volumes:
- data:/authorizer/data
volumes:
data:
More in Passwords and sign-in
- VaultwardenA password manager server for the Bitwarden apps
- Password PusherShare passwords and secrets by links that expire
- authentikAn identity provider for single sign-on to your apps: OpenID Connect, SAML, LDAP, MFA and passkeys
- FusionAuthCustomer identity and access management: sign-in, registration, single sign-on and MFA for your apps
- KeycloakOpen-source identity and access management: single sign-on for your apps with OpenID Connect and SAML
