{
  "id": "api/oauth2-invalid-token-type-hint",
  "signature": "OAuth2 error: invalid_token_type_hint",
  "signature_zh": "OAuth2 错误：invalid_token_type_hint",
  "regex": "OAuth2\\s+error:\\s+invalid_token_type_hint",
  "domain": "api",
  "category": "auth_error",
  "subcategory": null,
  "root_cause": "The token type hint parameter in the token revocation or introspection request is not recognized by the authorization server, often due to a typo or unsupported value.",
  "root_cause_type": "generic",
  "root_cause_zh": "令牌撤销或内省请求中的令牌类型提示参数未被授权服务器识别，通常由于拼写错误或不支持的值。",
  "versions": [
    {
      "version": "OAuth 2.0 RFC 7009",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Keycloak 23.0.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Auth0 (2024)",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Okta 2024.01.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Some servers require the hint for revocation; without it, the request may fail or return an error.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The server only recognizes standard token type hints; custom values are rejected.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "OAuth2 token revocation endpoints typically expect application/x-www-form-urlencoded format, not JSON.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Ensure the token_type_hint parameter uses one of the standard values: 'access_token' or 'refresh_token'. Example: `POST /revoke HTTP/1.1\\nContent-Type: application/x-www-form-urlencoded\\ntoken=abc123&token_type_hint=access_token`.",
      "success_rate": 0.9,
      "how": "Ensure the token_type_hint parameter uses one of the standard values: 'access_token' or 'refresh_token'. Example: `POST /revoke HTTP/1.1\\nContent-Type: application/x-www-form-urlencoded\\ntoken=abc123&token_type_hint=access_token`.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Check the authorization server's documentation for supported token type hints. For Keycloak, also try 'id_token' if using OpenID Connect.",
      "success_rate": 0.85,
      "how": "Check the authorization server's documentation for supported token type hints. For Keycloak, also try 'id_token' if using OpenID Connect.",
      "condition": "",
      "sources": []
    },
    {
      "action": "If unsure, omit the token_type_hint parameter and let the server infer the type. Some servers (e.g., Auth0) support this gracefully.",
      "success_rate": 0.7,
      "how": "If unsure, omit the token_type_hint parameter and let the server infer the type. Some servers (e.g., Auth0) support this gracefully.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Ensure the token_type_hint parameter uses one of the standard values: 'access_token' or 'refresh_token'. Example: `POST /revoke HTTP/1.1\\nContent-Type: application/x-www-form-urlencoded\\ntoken=abc123&token_type_hint=access_token`.",
    "Check the authorization server's documentation for supported token type hints. For Keycloak, also try 'id_token' if using OpenID Connect.",
    "If unsure, omit the token_type_hint parameter and let the server infer the type. Some servers (e.g., Auth0) support this gracefully."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://tools.ietf.org/html/rfc7009#section-2.1",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.84,
  "fix_success_rate": 0.8,
  "resolvable": "partial",
  "first_seen": "2024-01-10",
  "last_confirmed": "2024-06-01",
  "last_updated": "2025-02-15",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}