AI-Powered Setup
Rampart ships with built-in Claude Code skills that can set up authentication in any application in seconds. Just type a slash command and the skill auto-detects your project, installs the right SDK, and wires up auth end-to-end.
No other IAM product offers AI-powered setup. This is a unique Rampart differentiator.
How It Works
- Open your project in Claude Code
- Type the skill command (e.g.,
/rampart-react-setup) - The skill scans your project, detects your framework, and applies the correct configuration
- You get a fully working auth integration with OAuth 2.0 PKCE, JWT validation, protected routes, and more
Each skill creates production-ready code — not scaffolding. You get proper error handling, typed claims, environment variable configuration, and Rampart-compatible error responses out of the box.
Available Skills
Stack-Specific Setup
| Command | What It Does |
|---|---|
/rampart-react-setup | Adds OAuth 2.0 PKCE login flow to a React SPA. Creates AuthProvider, useAuth() hook, ProtectedRoute component, and OAuth callback handler using @rampart-auth/react. |
/rampart-node-setup | Adds JWT validation middleware to an Express app. Installs @rampart-auth/node, protects routes, and provides typed req.auth claims. |
/rampart-nextjs-setup | Sets up server-side JWT validation, Next.js middleware auth guards, API route protection, and client-side auth context using jose. |
/rampart-go-setup | Adds JWKS-based JWT middleware to a Go backend (net/http, chi, gin, or fiber). Creates typed claims and Rampart-compatible error responses. |
/rampart-python-setup | Adds JWT verification to FastAPI or Flask. Auto-detects your framework, creates auth dependencies/decorators, and sets up JWKS validation. |
/rampart-spring-setup | Configures Spring Security OAuth2 Resource Server with Rampart's JWKS. Sets up SecurityFilterChain, claims helper, and @PreAuthorize support. |
Infrastructure & Operations
| Command | What It Does |
|---|---|
/rampart-docker-quickstart | Creates a docker-compose.yml with Rampart and PostgreSQL. Configures health checks, creates an admin user, and registers an OAuth client. |
/rampart-fullstack-secure | The all-in-one skill. Auto-detects your entire stack (frontend + backend), spins up Rampart if needed, and wires up authentication end-to-end across all layers. |
/rampart-ci-check | Runs the full CI pipeline locally before pushing. Executes lint, test, vet, security scan, and cross-compile checks — exactly as GitHub Actions would. |
Example Usage
Adding auth to a React app
> /rampart-react-setup http://localhost:8080
The skill will:
- Install
@rampart-auth/react(orjoseas a fallback) - Create
src/auth/config.tswith your issuer URL - Create
src/auth/AuthProvider.tsxwith login/logout/token state - Create
src/auth/Callback.tsxto handle the OAuth redirect - Create
src/auth/ProtectedRoute.tsxfor guarding routes - Wire everything into your app's router
- Add environment variables to
.env
Adding auth to an Express backend
> /rampart-node-setup http://localhost:8080
The skill will:
- Install
@rampart-auth/nodeandjose - Add
rampartAuth()middleware to your Express app - Give you typed
req.authwith user claims (sub, email, org_id, etc.) - Configure Rampart-standard 401 JSON error responses
Securing an entire full-stack app
> /rampart-fullstack-secure
The skill will:
- Scan your project for
package.json,go.mod,pom.xml,requirements.txt, etc. - Detect your frontend and backend frameworks
- Spin up Rampart with Docker Compose if no instance is running
- Apply the correct backend skill (Node, Go, Python, Spring, Next.js)
- Apply the correct frontend skill (React, Next.js, or adapted patterns)
- Register an OAuth client and configure environment variables
- Provide a summary with test instructions
Optional Argument
Most skills accept an optional issuer URL argument:
> /rampart-react-setup https://auth.mycompany.com
If omitted, skills default to http://localhost:8080 or read from environment variables (RAMPART_ISSUER).
Requirements
- Claude Code installed and running
- The Rampart repository cloned (skills are loaded from
.claude/skills/) - For Docker skills: Docker and Docker Compose installed
- For stack-specific skills: the relevant package manager (npm, pip, go, maven/gradle)