Lockspire

Lockspire is an embedded OAuth/OIDC authorization server for Phoenix applications.

It lets a Phoenix SaaS team become an OAuth/OIDC provider inside its existing app without moving accounts, login UX, branding, or product policy into a separate auth service.

What v0.1 includes

What v0.1 does not include

Canonical install path

  1. Add :lockspire to your Phoenix app.
  2. Run mix lockspire.install.
  3. Import the generated config and router snippets into your host app.
  4. Implement the generated AccountResolver and interaction handoff modules.
  5. Run migrations, register a client, and complete an auth-code + PKCE flow.

The canonical proof for that path lives in:

Secure defaults

Guides

Release discipline

Lockspire ships as an Apache-2.0 library with versioned docs, CI gates, changelog automation, and Hex dry-run validation in-repo.