19 lines
750 B
JSON
19 lines
750 B
JSON
{
|
|
"pipeName": "duordp-auth-pipe",
|
|
"protocolVersion": 2,
|
|
"messages": {
|
|
"GetPolicy": {
|
|
"request": {"username": "string", "groups": ["string"]},
|
|
"response": {"required": "bool", "failClosed": "bool", "configured": "bool", "verified": "bool"}
|
|
},
|
|
"RequestOtp": {
|
|
"request": {"username": "string", "challenge_id": "string (optional for legacy clients)", "groups": ["string"]},
|
|
"response": {"required": "bool", "status": "sent|skipped|error", "reason": "string?", "ttl": "int?"}
|
|
},
|
|
"VerifyOtp": {
|
|
"request": {"username": "string", "code": "string", "challenge_id": "string (optional for legacy clients)"},
|
|
"response": {"ok": "bool", "reason": "string?", "attempts_left": "int?"}
|
|
}
|
|
}
|
|
}
|