mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-16 22:26:16 -08:00
405 lines
15 KiB
JSON
405 lines
15 KiB
JSON
{
|
|
"description": "Synthetic status two profile requires do auth before the second profile.",
|
|
"entry": {
|
|
"origin": "portal",
|
|
"path": "/c/"
|
|
},
|
|
"expectedEndpoint": {
|
|
"origin": "portal",
|
|
"path": "/portal.php"
|
|
},
|
|
"failOnUnexpectedRequest": true,
|
|
"initialState": "start",
|
|
"origins": {
|
|
"portal": {}
|
|
},
|
|
"phases": [
|
|
{
|
|
"expectations": [
|
|
{
|
|
"cardinality": {
|
|
"max": 1,
|
|
"min": 1
|
|
},
|
|
"id": "anonymous-probe",
|
|
"method": "GET",
|
|
"operation": "anonymous-probe",
|
|
"origin": "portal",
|
|
"path": "/c/",
|
|
"request": {
|
|
"body": {
|
|
"kind": "absent"
|
|
},
|
|
"cookies": {
|
|
"absent": [
|
|
"mac",
|
|
"session"
|
|
],
|
|
"attributes": {},
|
|
"exact": {},
|
|
"present": []
|
|
},
|
|
"headers": {
|
|
"absent": [
|
|
"authorization",
|
|
"cookie"
|
|
],
|
|
"exact": {},
|
|
"present": []
|
|
},
|
|
"query": {
|
|
"absent": [
|
|
"device_id",
|
|
"device_id2",
|
|
"mac",
|
|
"password",
|
|
"signature",
|
|
"signature2",
|
|
"sn",
|
|
"token",
|
|
"username"
|
|
],
|
|
"exact": {},
|
|
"present": []
|
|
}
|
|
},
|
|
"response": {
|
|
"body": {
|
|
"kind": "empty"
|
|
},
|
|
"headers": {},
|
|
"status": 204
|
|
}
|
|
},
|
|
{
|
|
"cardinality": {
|
|
"max": 1,
|
|
"min": 1
|
|
},
|
|
"id": "handshake",
|
|
"method": "GET",
|
|
"operation": "handshake",
|
|
"origin": "portal",
|
|
"path": "/portal.php",
|
|
"request": {
|
|
"body": {
|
|
"kind": "absent"
|
|
},
|
|
"cookies": {
|
|
"absent": [
|
|
"session"
|
|
],
|
|
"attributes": {},
|
|
"exact": {
|
|
"mac": {
|
|
"kind": "ref",
|
|
"symbol": "mac"
|
|
}
|
|
},
|
|
"present": []
|
|
},
|
|
"headers": {
|
|
"absent": [
|
|
"authorization"
|
|
],
|
|
"exact": {},
|
|
"present": []
|
|
},
|
|
"query": {
|
|
"absent": [
|
|
"password",
|
|
"token",
|
|
"username"
|
|
],
|
|
"exact": {
|
|
"action": "handshake",
|
|
"type": "stb"
|
|
},
|
|
"present": []
|
|
}
|
|
},
|
|
"response": {
|
|
"body": {
|
|
"kind": "json",
|
|
"value": {
|
|
"js": {
|
|
"random": {
|
|
"kind": "generate",
|
|
"symbol": "challenge",
|
|
"valueKind": "random"
|
|
},
|
|
"token": {
|
|
"kind": "generate",
|
|
"symbol": "session-token",
|
|
"valueKind": "token"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"headers": {
|
|
"content-type": [
|
|
"application/json"
|
|
]
|
|
},
|
|
"status": 200
|
|
}
|
|
},
|
|
{
|
|
"cardinality": {
|
|
"max": 1,
|
|
"min": 1
|
|
},
|
|
"id": "profile-first",
|
|
"method": "GET",
|
|
"operation": "profile-first",
|
|
"origin": "portal",
|
|
"path": "/portal.php",
|
|
"request": {
|
|
"body": {
|
|
"kind": "absent"
|
|
},
|
|
"cookies": {
|
|
"absent": [
|
|
"session"
|
|
],
|
|
"attributes": {},
|
|
"exact": {
|
|
"mac": {
|
|
"kind": "ref",
|
|
"symbol": "mac"
|
|
}
|
|
},
|
|
"present": []
|
|
},
|
|
"headers": {
|
|
"absent": [],
|
|
"exact": {
|
|
"authorization": {
|
|
"kind": "parts",
|
|
"parts": [
|
|
{
|
|
"kind": "literal",
|
|
"value": "Bearer "
|
|
},
|
|
{
|
|
"kind": "ref",
|
|
"symbol": "session-token"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"present": []
|
|
},
|
|
"query": {
|
|
"absent": [
|
|
"password",
|
|
"username"
|
|
],
|
|
"exact": {
|
|
"action": "get_profile",
|
|
"auth_second_step": "0",
|
|
"type": "stb"
|
|
},
|
|
"present": []
|
|
}
|
|
},
|
|
"response": {
|
|
"body": {
|
|
"kind": "json",
|
|
"value": {
|
|
"js": {
|
|
"status": 2
|
|
}
|
|
}
|
|
},
|
|
"headers": {
|
|
"content-type": [
|
|
"application/json"
|
|
]
|
|
},
|
|
"status": 200
|
|
}
|
|
},
|
|
{
|
|
"cardinality": {
|
|
"max": 1,
|
|
"min": 1
|
|
},
|
|
"id": "do-auth",
|
|
"method": "GET",
|
|
"operation": "do-auth",
|
|
"origin": "portal",
|
|
"path": "/portal.php",
|
|
"request": {
|
|
"body": {
|
|
"kind": "absent"
|
|
},
|
|
"cookies": {
|
|
"absent": [
|
|
"session"
|
|
],
|
|
"attributes": {},
|
|
"exact": {
|
|
"mac": {
|
|
"kind": "ref",
|
|
"symbol": "mac"
|
|
}
|
|
},
|
|
"present": []
|
|
},
|
|
"headers": {
|
|
"absent": [],
|
|
"exact": {
|
|
"authorization": {
|
|
"kind": "parts",
|
|
"parts": [
|
|
{
|
|
"kind": "literal",
|
|
"value": "Bearer "
|
|
},
|
|
{
|
|
"kind": "ref",
|
|
"symbol": "session-token"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"present": []
|
|
},
|
|
"query": {
|
|
"absent": [],
|
|
"exact": {
|
|
"action": "do_auth",
|
|
"login": {
|
|
"kind": "ref",
|
|
"symbol": "username"
|
|
},
|
|
"password": {
|
|
"kind": "ref",
|
|
"symbol": "password"
|
|
},
|
|
"type": "stb"
|
|
},
|
|
"present": []
|
|
}
|
|
},
|
|
"response": {
|
|
"body": {
|
|
"kind": "json",
|
|
"value": {
|
|
"js": true
|
|
}
|
|
},
|
|
"headers": {
|
|
"content-type": [
|
|
"application/json"
|
|
]
|
|
},
|
|
"status": 200
|
|
}
|
|
},
|
|
{
|
|
"cardinality": {
|
|
"max": 1,
|
|
"min": 1
|
|
},
|
|
"id": "profile-second",
|
|
"method": "GET",
|
|
"operation": "profile-second",
|
|
"origin": "portal",
|
|
"path": "/portal.php",
|
|
"request": {
|
|
"body": {
|
|
"kind": "absent"
|
|
},
|
|
"cookies": {
|
|
"absent": [
|
|
"session"
|
|
],
|
|
"attributes": {},
|
|
"exact": {
|
|
"mac": {
|
|
"kind": "ref",
|
|
"symbol": "mac"
|
|
}
|
|
},
|
|
"present": []
|
|
},
|
|
"headers": {
|
|
"absent": [],
|
|
"exact": {
|
|
"authorization": {
|
|
"kind": "parts",
|
|
"parts": [
|
|
{
|
|
"kind": "literal",
|
|
"value": "Bearer "
|
|
},
|
|
{
|
|
"kind": "ref",
|
|
"symbol": "session-token"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"present": []
|
|
},
|
|
"query": {
|
|
"absent": [
|
|
"password",
|
|
"username"
|
|
],
|
|
"exact": {
|
|
"action": "get_profile",
|
|
"auth_second_step": "1",
|
|
"type": "stb"
|
|
},
|
|
"present": []
|
|
}
|
|
},
|
|
"response": {
|
|
"body": {
|
|
"kind": "json",
|
|
"value": {
|
|
"js": {
|
|
"status": 0
|
|
}
|
|
}
|
|
},
|
|
"headers": {
|
|
"content-type": [
|
|
"application/json"
|
|
]
|
|
},
|
|
"status": 200
|
|
}
|
|
}
|
|
],
|
|
"mode": "ordered",
|
|
"name": "conditional-second-step",
|
|
"nextState": "complete",
|
|
"state": "start"
|
|
}
|
|
],
|
|
"scenarioId": "authentication-status2-second-step",
|
|
"schemaVersion": 1,
|
|
"symbols": [
|
|
{
|
|
"kind": "generate",
|
|
"symbol": "mac",
|
|
"valueKind": "mac"
|
|
},
|
|
{
|
|
"kind": "generate",
|
|
"symbol": "username",
|
|
"valueKind": "credential"
|
|
},
|
|
{
|
|
"kind": "generate",
|
|
"symbol": "password",
|
|
"valueKind": "credential"
|
|
}
|
|
],
|
|
"terminalState": "complete"
|
|
}
|