Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 30 additions & 46 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,71 +1,55 @@
# auth-engine-dashboard

Next.js dashboard for **AuthEngine** — platform and tenant administration, user self-service, MFA and passkeys.
Production-ready admin dashboard for **AuthEngine** — platform operations, tenant management, user self-service, MFA, and passkeys.

**Documentation:** [auth-engine-docs](https://github.com/auth-engine/auth-engine-docs) · published at [docs.authengine.org](https://docs.authengine.org)
Built with Next.js. Talks to the API via `NEXT_PUBLIC_API_URL`.

| Guide | Link |
|-------|------|
| Quick Start | [quick-start.md](https://docs.authengine.org/quick-start/) |
| OAuth2 / OIDC | [oauth2-oidc-guides.md](https://docs.authengine.org/oauth2-oidc-guides/) |
| API Reference | [api-reference.md](https://docs.authengine.org/api-reference/) |
| Architecture | [architecture.md](https://docs.authengine.org/architecture/) |
| Deployment | [deployment.md](https://docs.authengine.org/deployment/) |
| Security | [security-overview.md](https://docs.authengine.org/security-overview/) |
## Development

## What this repository is
### 1. Local

Next.js 16 admin UI for platform administration (`/platform/*`), tenant administration (`/tenant/*`), and user self-service (`/me/*`). It talks to the API via `NEXT_PUBLIC_API_URL`. Docker Compose manifests live in **[auth-engine-infra](https://github.com/auth-engine/auth-engine-infra)**.

## Local development
Requires Node **20+** and a running API.

```bash
cd auth-engine-dashboard
cp .env.example .env.local
npm ci && npm run dev
npm ci
npm run dev
```

Minimum `.env.local` values:

```env
NEXT_PUBLIC_API_URL=http://localhost:8000/api/v1
NEXT_PUBLIC_APP_URL=http://localhost:3000
```

Point `NEXT_PUBLIC_API_URL` at a running API (local or remote). For the full stack, use Compose from `auth-engine-infra`.

## Production

| Host | Role |
|------|------|
| [api.authengine.org](https://api.authengine.org) | API + Swagger |
| [auth.authengine.org](https://auth.authengine.org) | OIDC / login UI |
| [app.authengine.org](https://app.authengine.org) | Admin dashboard |
| [docs.authengine.org](https://docs.authengine.org) | Documentation |
Open [http://localhost:3000](http://localhost:3000). Default API: `http://localhost:8000/api/v1`.

## Docker
### 2. Compose

Dockerfile only — compose files live in **[auth-engine-infra/compose](https://github.com/auth-engine/auth-engine-infra/tree/main/compose)**.
Runs automatically with the full stack — no separate dashboard setup:

```bash
cd auth-engine-infra/compose
docker compose up -d --build
cp env.local.example .env
docker compose up -d
```

Pre-built production images: [Deployment guide](https://docs.authengine.org/deployment/).
Open [http://localhost:3000](http://localhost:3000). Migrate and seed per [Quick Start](https://docs.authengine.org/quick-start/).

## Production

**CI/CD:** merge to `main` runs lint/build and pushes `DOCKERHUB_USERNAME/authengine-dashboard:latest`. Redeploy the `dashboard` workload in Rancher after a new image is available.
| Path | Guide |
|------|-------|
| Local VM + Cloudflare Tunnel | [deploy-local-vm.sh](https://github.com/auth-engine/auth-engine-infra/blob/main/scripts/deploy-local-vm.sh) |
| AWS EC2 or any cloud VM | [deploy-aws.sh](https://github.com/auth-engine/auth-engine-infra/blob/main/scripts/deploy-aws.sh) |

## Contributing
Docker image: `qniranjan01/authengine-dashboard:latest`

See [Contributing](https://docs.authengine.org/contributing/) or [CONTRIBUTING.md](CONTRIBUTING.md). Report security issues per [Security Policy](https://docs.authengine.org/security-policy/) — not via public issues.
## Documentation

| Guide | Link |
|-------|------|
| Quick Start | [docs.authengine.org/quick-start](https://docs.authengine.org/quick-start/) |
| Deployment | [docs.authengine.org/deployment](https://docs.authengine.org/deployment/) |
| API Reference | [docs.authengine.org/api-reference](https://docs.authengine.org/api-reference/) |
| OAuth2 / OIDC | [docs.authengine.org/oauth2-oidc-guides](https://docs.authengine.org/oauth2-oidc-guides/) |
| Architecture | [docs.authengine.org/architecture](https://docs.authengine.org/architecture/) |

## Related repositories

| Repository | Role |
|------------|------|
| [auth-engine](https://github.com/auth-engine/auth-engine) | FastAPI backend — IAM, OIDC, introspection |
| [auth-engine-data](https://github.com/auth-engine/auth-engine-data) | Roles, permissions & super-admin seeding |
| [auth-engine-docs](https://github.com/auth-engine/auth-engine-docs) | Platform documentation |
| [auth-engine-infra](https://github.com/auth-engine/auth-engine-infra) | Terraform & Docker Compose |
| [.github](https://github.com/auth-engine/.github) | Org profile, contributing & security policy |
[auth-engine](https://github.com/auth-engine/auth-engine) · [auth-engine-data](https://github.com/auth-engine/auth-engine-data) · [auth-engine-infra](https://github.com/auth-engine/auth-engine-infra) · [auth-engine-docs](https://github.com/auth-engine/auth-engine-docs)
Loading