{
  "name": "scorpiox-identity-server-native",
  "version": "1.5.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 only \u2014 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": "/revoke",
      "handler": "revoke",
      "method": "POST",
      "description": "RFC 7009 token revocation \u2014 client-authenticated, always 200 with an empty body; revokes a refresh rotation family or deny-lists an access-token jti"
    },
    {
      "path": "/introspect",
      "handler": "introspect",
      "method": "POST",
      "description": "RFC 7662 token introspection \u2014 client-authenticated; active tokens return the RFC 7662 claim set, everything else returns exactly {\"active\":false}"
    },
    {
      "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 \u2014 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": "/end_session",
      "handler": "end_session",
      "method": "GET|POST",
      "description": "OIDC RP-Initiated Logout 1.0 \u2014 ends the local session and revokes the user's refresh tokens; with a verified id_token_hint and a post_logout_redirect_uri registered on that client's redirect_uris, 302s there with state (+ iss per RFC 9207); otherwise 302s to /login. An unregistered URI is silently ignored (open-redirect guard). No front/back-channel logout, no logout-token store (redirect_uris is reused, there is no separate post_logout_redirect_uris field)."
    },
    {
      "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"
    ]
  }
}
