🔑 Jailkey Authentication API v2.1

JWT-based stateless authentication service. Supports HS256 token signing. All admin routes require a valid admin-role token.

Endpoints

POST /api.php?action=login

Authenticate and receive a JWT. Body: {"user":"...","pass":"..."}

GET /api.php?action=profile

View your decoded token claims. Header: Authorization: Bearer <token>

GET /api.php?action=admin

Admin-only endpoint. Requires a token with role: admin. Returns maintenance credentials.

Guest Access

Use the credentials below to get started:

user : guest
pass : Gu3stP4ss!

Quick Login Test

(response will appear here)

Example — Fetch Profile

curl -s 'http://TARGET/api.php?action=profile' \
  -H 'Authorization: Bearer YOUR_TOKEN_HERE'

Jailkey v2.1 — Internal Auth Service — Powered by custom JWT library
Contact: auth-team@corp.local