{
  "name": "auth_required",
  "device": {
    "portalUrl": "https://portal.example.com/c",
    "macAddress": "",
    "authMode": "CREDENTIALS_ONLY",
    "username": "alice",
    "password": "secret"
  },
  "responses": [
    { "action": "handshake", "body": "{\"js\":{\"token\":\"token-456\"}}" },
    { "action": "do_auth", "method": "POST", "body": "{\"js\":{\"status\":1}}" },
    { "action": "get_profile", "body": "{\"js\":{\"id\":\"88\",\"name\":\"Bedroom\",\"status\":\"1\",\"auth_access\":true}}" },
    { "action": "get_main_info", "body": "{\"js\":{\"id\":\"88\",\"name\":\"Bedroom\",\"status\":\"1\",\"auth_access\":true}}" }
  ],
  "expected": {
    "authMode": "CREDENTIALS_ONLY",
    "portalProfile": "AUTH_REQUIRED",
    "portalFingerprint": "AUTH_ONLY",
    "magPreset": "GENERIC_SAFE",
    "bootstrapRecipe": "AUTH_ONLY",
    "bootstrapEvidence": ["handshake", "do_auth", "get_profile", "get_account_info"],
    "requestOrder": ["handshake", "do_auth", "get_profile", "get_main_info"]
  }
}
