Authentication
inside your app.

Email/password or OIDC sign-in, sessions and API keys. One Rust runtime, embedded in your existing server.

Stargate portal mark
Authentication, in process.
npm install @syntropika/stargate
Runtime
Rust
Storage
Turso
Integrations
4 languages
License
Apache 2.0

Your server.
Your identity.

Mount Stargate in your application. Your application owns the HTTP server, TLS and configuration. Authentication stays close to the code it protects.

Sign in, your way.
Local email/password accounts, your OIDC provider, or both. Keep the choice inside your application.
Give every key a purpose.
Scoped API keys with expiration and revocation. Secrets are shown once and stored as hashes.
A place for every account.
An embedded panel for profiles, keys, sessions and administrator user management, with configurable branding.
Read the configuration & security guide

One runtime.
Your stack.

The same authentication logic, whether you build with Axum, Express, FastAPI or net/http.

Explore the integrations
Your applicationserver.ts
import express from 'express';
import { createAuth, turso } from '@syntropika/stargate';

const app = express();
const auth = await createAuth({
  baseUrl: 'https://app.example.com',
  storage: turso('./stargate.db'),
  local: {},
});

app.use(auth.middleware());
app.get('/private', auth.required(), (req, res) => {
  res.json({ user: req.stargateIdentity.user_id });
});