{
  "name": "scorpiox-identity-server-native",
  "version": "1.3.2",
  "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 only — plain dropped in v1.2.0)"
    },
    {
      "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 — real RSA-2048 public keys (kty/use/alg/kid/n/e), no private material"
    },
    {
      "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 (role-gated): ?r=status (public), ?r=users, ?r=clients, ?r=tokens, ?r=keys"
    },
    {
      "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": "RS256 (RSA-2048, vendored BearSSL; kid in JWT header; keys in keys.json) + legacy HS256 verify for v1.2.x tokens",
    "password_hashing": "PBKDF2-HMAC-SHA256 (100,000 iterations, 16-byte salt, 32-byte key)",
    "pkce": [
      "S256"
    ]
  }
}
