Add comprehensive remote authentication system allowing users to log in from one device by authenticating from another trusted device. Features include: - Proof of Work (PoW) protection using PBKDF2-SHA512 to prevent abuse - Simple pairing codes (3 words) protected by dynamic PoW difficulty - Autocomplete pairing code input with error checking - Real-time WebSocket communication between devices Unlike device addition links and reset links with QR codes that only allow adding an authentication method, and that work offline over the duration of several days, this mechanism is strictly online, with 5 minute time limit.
Paskia
An easy to install passkey-based authentication service that protects any web application with strong passwordless login.
What is Paskia?
- Easy to use fully featured auth&auth system (login and permissions)
- Organization and role-based access control (optional)
- Org admins control their users and roles
- Master admin can create multiple independent orgs
- Master admin makes permissions available for orgs to assign
- User Profile and Administration by API and web interface.
under
/auth/orauth.example.com - Reset tokens and additional device linking via QR code or codewords.
- Pure Python, FastAPI, packaged with prebuilt Vue frontend
Two interfaces:
- API fetch: auth checks and login without leaving your app
- Forward-auth proxy: protect any unprotected site or service (Caddy, Nginx)
The API mode is useful for applications that can be customized to run with Paskia. Forward auth can also protect your javascript and other assets. Each provides fine-grained permission control and reauthentication requests where needed, and both can be mixed where needed.
Single Sign-On (SSO): Users register once and authenticate across all applications under your domain name (configured rp-id).
Quick Start
Install UV and run:
uvx paskia serve --rp-id example.com
On the first run it downloads the software and prints a registration link for the Admin. If you are going to be connecting localhost directly, for testing, leave out the rp-id.
The server will start up on localhost:4401 "for authentication required", serving for *.example.com.
Otherwise you will need a web server such as Caddy to serve HTTPS on your actual domain names and proxy requests to Paskia and your backend apps.
A quick example without any config file:
sudo caddy reverse-proxy --from example.com --to :4401
For a permanent install of paskia CLI command, not needing uvx:
uv tool install paskia
Configuration
There is no config file. Pass only the options on CLI:
paskia serve [options]
Optional options:
- Listen address (one of):
[host]:port: Address and port (default:localhost:4401)unix:/path.sock: Unix socket
--rp-id <domain>: Main domain (required for production)--rp-name "<text>": Name of your company or site (default: same as rp-id)--origin <url>: Explicit single site (default:https://<rp-id>)--auth-host <domain>: Dedicated authentication site (e.g.,auth.example.com)
Documentation
API.md: Complete HTTP and WebSocket API referenceCaddy.md: Caddy configuration examplesHeaders.md: HTTP headers passed to protected applications