{
  "name": "scorpiox-identity-server-native",
  "version": "1.1.0",
  "engine": "scorpiox-server.dll (SX_SERVER_DLL_BUILD)",
  "routes": [
    { "path": "/.well-known/openid-configuration", "handler": "wellknown / _fallback", "method": "GET", "description": "OpenID Connect discovery document" },
    { "path": "/authorize", "handler": "authorize", "method": "GET|POST", "description": "OAuth 2.0 / OIDC Authorization Code Flow with PKCE (S256 / plain)" },
    { "path": "/token", "handler": "token", "method": "POST", "description": "Token exchange: grant_type=authorization_code and grant_type=refresh_token" },
    { "path": "/userinfo", "handler": "userinfo", "method": "GET|POST", "description": "User profile claims via Bearer access_token" },
    { "path": "/jwks", "handler": "jwks", "method": "GET", "description": "JSON Web Key Set metadata (HS256)" },
    { "path": "/login", "handler": "login", "method": "GET|POST", "description": "User login HTML form / JSON authentication -> session cookie" },
    { "path": "/logout", "handler": "logout", "method": "GET|POST", "description": "Session termination & refresh token revocation" },
    { "path": "/api", "handler": "api", "method": "GET|POST", "description": "Admin API: ?r=status, ?r=users, ?r=clients, ?r=tokens" },
    { "path": "/", "handler": "index / _fallback", "method": "GET", "description": "HTML dashboard landing page" }
  ],
  "server_exports": [
    { "name": "web_server_start", "args": ["int port", "const char* config_json"], "return": "int" },
    { "name": "web_server_stop", "args": [], "return": "void" },
    { "name": "web_server_status", "args": [], "return": "int" },
    { "name": "web_server_get_config", "args": [], "return": "const char*" }
  ],
  "crypto": {
    "jwt": "HS256 (embedded HMAC-SHA256)",
    "password_hashing": "PBKDF2-HMAC-SHA256 (100,000 iterations, 16-byte salt, 32-byte key)",
    "pkce": ["S256", "plain"]
  }
}
